Thread (15 messages) 15 messages, 4 authors, 2022-06-15

Re: 回复: [PATCH 2/2] uio:powerpc:mpc85xx: l2-cache-sram uio driver implementation

From: Christophe Leroy <hidden>
Date: 2022-06-15 06:04:12
Also in: lkml


Le 14/06/2022 à 08:09, Wenhu Wang a écrit :
quoted
quoted
+
+static const struct vm_operations_struct uio_cache_sram_vm_ops = {
+#ifdef CONFIG_HAVE_IOREMAP_PROT
Same here.
I tried to eliminate it in mainline
See: [PATCH v2] mm: eliminate ifdef of HAVE_IOREMAP_PROT in .c files
https://lkml.org/lkml/2022/6/10/695
quoted
quoted
+     .access = generic_access_phys,
+#endif
+};
Another solution is to do:


static const struct vm_operations_struct uio_cache_sram_vm_ops = {
	.access = IS_ENABLED(CONFIG_HAVE_IOREMAP_PROT) ? generic_access_phys : 
NULL,
};


Christophe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help