arch/m68k/include/asm/io_mm.h:375:44: warning: passing argument 1 of 'raw_insb' discards 'const' qualifier from pointer target type
kernel test robot
build botHi Niklas,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git has_ioport_v6 head: bdf22cc780c157a1e80f45396484884452b45b52 commit: 531b0d341d30c864fc2586d7a46d245a28b9ca02 [17/36] m68k: Let GENERIC_IOMAP depend on HAS_IOPORT config: m68k-hp300_defconfig (https://download.01.org/0day-ci/archive/20230925/[email protected]/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230925/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
In file included from arch/m68k/include/asm/io.h:8,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11,
from include/linux/highmem.h:12,
from include/linux/bvec.h:10,
from include/linux/skbuff.h:17,
from include/net/net_namespace.h:43,
from include/linux/inet.h:42,
from fs/smb/client/trace.h:15,
from fs/smb/client/trace.c:8:
include/asm-generic/io.h: In function 'ioread8_rep':
>> arch/m68k/include/asm/io_mm.h:375:44: warning: passing argument 1 of 'raw_insb' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
375 | #define readsb(port, buf, nr) raw_insb((port), (u8 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:916:9: note: in expansion of macro 'readsb'
916 | readsb(addr, buffer, count);
| ^~~~~~
In file included from arch/m68k/include/asm/io_mm.h:25:
arch/m68k/include/asm/raw_io.h:101:50: note: expected 'volatile u8 *' {aka 'volatile unsigned char *'} but argument is of type 'const volatile void *'
101 | static inline void raw_insb(volatile u8 __iomem *port, u8 *buf, unsigned int len)
| ~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread16_rep':
>> arch/m68k/include/asm/io_mm.h:376:44: warning: passing argument 1 of 'raw_insw' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
376 | #define readsw(port, buf, nr) raw_insw((port), (u16 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:925:9: note: in expansion of macro 'readsw'
925 | readsw(addr, buffer, count);
| ^~~~~~
arch/m68k/include/asm/raw_io.h:149:51: note: expected 'volatile u16 *' {aka 'volatile short unsigned int *'} but argument is of type 'const volatile void *'
149 | static inline void raw_insw(volatile u16 __iomem *port, u16 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread32_rep':
>> arch/m68k/include/asm/io_mm.h:377:44: warning: passing argument 1 of 'raw_insl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
377 | #define readsl(port, buf, nr) raw_insl((port), (u32 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:934:9: note: in expansion of macro 'readsl'
934 | readsl(addr, buffer, count);
| ^~~~~~ arch/m68k/include/asm/raw_io.h:228:51: note: expected 'volatile u32 *' {aka 'volatile unsigned int *'} but argument is of type 'const volatile void *'
228 | static inline void raw_insl(volatile u32 __iomem *port, u32 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
--
In file included from arch/m68k/include/asm/io.h:8,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11,
from include/linux/highmem.h:12,
from include/linux/bvec.h:10,
from include/linux/blk_types.h:10,
from include/linux/writeback.h:13,
from include/linux/backing-dev.h:16,
from fs/orangefs/orangefs-kernel.h:25,
from fs/orangefs/acl.c:9:
include/asm-generic/io.h: In function 'ioread8_rep':
>> arch/m68k/include/asm/io_mm.h:375:44: warning: passing argument 1 of 'raw_insb' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
375 | #define readsb(port, buf, nr) raw_insb((port), (u8 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:916:9: note: in expansion of macro 'readsb'
916 | readsb(addr, buffer, count);
| ^~~~~~
In file included from arch/m68k/include/asm/io_mm.h:25:
arch/m68k/include/asm/raw_io.h:101:50: note: expected 'volatile u8 *' {aka 'volatile unsigned char *'} but argument is of type 'const volatile void *'
101 | static inline void raw_insb(volatile u8 __iomem *port, u8 *buf, unsigned int len)
| ~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread16_rep':
>> arch/m68k/include/asm/io_mm.h:376:44: warning: passing argument 1 of 'raw_insw' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
376 | #define readsw(port, buf, nr) raw_insw((port), (u16 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:925:9: note: in expansion of macro 'readsw'
925 | readsw(addr, buffer, count);
| ^~~~~~
arch/m68k/include/asm/raw_io.h:149:51: note: expected 'volatile u16 *' {aka 'volatile short unsigned int *'} but argument is of type 'const volatile void *'
149 | static inline void raw_insw(volatile u16 __iomem *port, u16 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread32_rep':
>> arch/m68k/include/asm/io_mm.h:377:44: warning: passing argument 1 of 'raw_insl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
377 | #define readsl(port, buf, nr) raw_insl((port), (u32 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:934:9: note: in expansion of macro 'readsl'
934 | readsl(addr, buffer, count);
| ^~~~~~ arch/m68k/include/asm/raw_io.h:228:51: note: expected 'volatile u32 *' {aka 'volatile unsigned int *'} but argument is of type 'const volatile void *'
228 | static inline void raw_insl(volatile u32 __iomem *port, u32 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from fs/orangefs/protocol.h:287,
from fs/orangefs/acl.c:8:
fs/orangefs/orangefs-debug.h: At top level:
fs/orangefs/orangefs-debug.h:86:18: warning: 'num_kmod_keyword_mask_map' defined but not used [-Wunused-const-variable=]
86 | static const int num_kmod_keyword_mask_map = (int)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/m68k/include/asm/io.h:8,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11,
from include/linux/highmem.h:12,
from include/linux/bvec.h:10,
from include/linux/blk_types.h:10,
from include/linux/blkdev.h:9,
from fs/xfs/xfs_linux.h:31,
from fs/xfs/xfs.h:22,
from fs/xfs/libxfs/xfs_bmap.c:6:
include/asm-generic/io.h: In function 'ioread8_rep':
>> arch/m68k/include/asm/io_mm.h:375:44: warning: passing argument 1 of 'raw_insb' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
375 | #define readsb(port, buf, nr) raw_insb((port), (u8 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:916:9: note: in expansion of macro 'readsb'
916 | readsb(addr, buffer, count);
| ^~~~~~
In file included from arch/m68k/include/asm/io_mm.h:25:
arch/m68k/include/asm/raw_io.h:101:50: note: expected 'volatile u8 *' {aka 'volatile unsigned char *'} but argument is of type 'const volatile void *'
101 | static inline void raw_insb(volatile u8 __iomem *port, u8 *buf, unsigned int len)
| ~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread16_rep':
>> arch/m68k/include/asm/io_mm.h:376:44: warning: passing argument 1 of 'raw_insw' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
376 | #define readsw(port, buf, nr) raw_insw((port), (u16 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:925:9: note: in expansion of macro 'readsw'
925 | readsw(addr, buffer, count);
| ^~~~~~
arch/m68k/include/asm/raw_io.h:149:51: note: expected 'volatile u16 *' {aka 'volatile short unsigned int *'} but argument is of type 'const volatile void *'
149 | static inline void raw_insw(volatile u16 __iomem *port, u16 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread32_rep':
>> arch/m68k/include/asm/io_mm.h:377:44: warning: passing argument 1 of 'raw_insl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
377 | #define readsl(port, buf, nr) raw_insl((port), (u32 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:934:9: note: in expansion of macro 'readsl'
934 | readsl(addr, buffer, count);
| ^~~~~~
arch/m68k/include/asm/raw_io.h:228:51: note: expected 'volatile u32 *' {aka 'volatile unsigned int *'} but argument is of type 'const volatile void *'
228 | static inline void raw_insl(volatile u32 __iomem *port, u32 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
fs/xfs/libxfs/xfs_bmap.c: In function 'xfs_bmap_del_extent_real':
fs/xfs/libxfs/xfs_bmap.c:5068:41: warning: variable 'bno' set but not used [-Wunused-but-set-variable]
5068 | xfs_fsblock_t bno;
| ^~~
--
In file included from arch/m68k/include/asm/io.h:8,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11,
from include/linux/highmem.h:12,
from include/linux/bvec.h:10,
from include/linux/blk_types.h:10,
from include/linux/blkdev.h:9,
from fs/xfs/xfs_linux.h:31,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_iwalk.c:6:
include/asm-generic/io.h: In function 'ioread8_rep':
>> arch/m68k/include/asm/io_mm.h:375:44: warning: passing argument 1 of 'raw_insb' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
375 | #define readsb(port, buf, nr) raw_insb((port), (u8 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:916:9: note: in expansion of macro 'readsb'
916 | readsb(addr, buffer, count);
| ^~~~~~
In file included from arch/m68k/include/asm/io_mm.h:25:
arch/m68k/include/asm/raw_io.h:101:50: note: expected 'volatile u8 *' {aka 'volatile unsigned char *'} but argument is of type 'const volatile void *'
101 | static inline void raw_insb(volatile u8 __iomem *port, u8 *buf, unsigned int len)
| ~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread16_rep':
>> arch/m68k/include/asm/io_mm.h:376:44: warning: passing argument 1 of 'raw_insw' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
376 | #define readsw(port, buf, nr) raw_insw((port), (u16 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:925:9: note: in expansion of macro 'readsw'
925 | readsw(addr, buffer, count);
| ^~~~~~
arch/m68k/include/asm/raw_io.h:149:51: note: expected 'volatile u16 *' {aka 'volatile short unsigned int *'} but argument is of type 'const volatile void *'
149 | static inline void raw_insw(volatile u16 __iomem *port, u16 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread32_rep':
>> arch/m68k/include/asm/io_mm.h:377:44: warning: passing argument 1 of 'raw_insl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
377 | #define readsl(port, buf, nr) raw_insl((port), (u32 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:934:9: note: in expansion of macro 'readsl'
934 | readsl(addr, buffer, count);
| ^~~~~~
arch/m68k/include/asm/raw_io.h:228:51: note: expected 'volatile u32 *' {aka 'volatile unsigned int *'} but argument is of type 'const volatile void *'
228 | static inline void raw_insl(volatile u32 __iomem *port, u32 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
fs/xfs/xfs_iwalk.c: In function 'xfs_iwalk_run_callbacks':
fs/xfs/xfs_iwalk.c:358:42: warning: variable 'irec' set but not used [-Wunused-but-set-variable]
358 | struct xfs_inobt_rec_incore *irec;
| ^~~~
--
In file included from arch/m68k/include/asm/io.h:8,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11,
from include/linux/highmem.h:12,
from include/linux/bvec.h:10,
from include/linux/blk_types.h:10,
from include/linux/blkdev.h:9,
from fs/xfs/xfs_linux.h:31,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_trans.c:7:
include/asm-generic/io.h: In function 'ioread8_rep':
>> arch/m68k/include/asm/io_mm.h:375:44: warning: passing argument 1 of 'raw_insb' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
375 | #define readsb(port, buf, nr) raw_insb((port), (u8 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:916:9: note: in expansion of macro 'readsb'
916 | readsb(addr, buffer, count);
| ^~~~~~
In file included from arch/m68k/include/asm/io_mm.h:25:
arch/m68k/include/asm/raw_io.h:101:50: note: expected 'volatile u8 *' {aka 'volatile unsigned char *'} but argument is of type 'const volatile void *'
101 | static inline void raw_insb(volatile u8 __iomem *port, u8 *buf, unsigned int len)
| ~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread16_rep':
>> arch/m68k/include/asm/io_mm.h:376:44: warning: passing argument 1 of 'raw_insw' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
376 | #define readsw(port, buf, nr) raw_insw((port), (u16 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:925:9: note: in expansion of macro 'readsw'
925 | readsw(addr, buffer, count);
| ^~~~~~
arch/m68k/include/asm/raw_io.h:149:51: note: expected 'volatile u16 *' {aka 'volatile short unsigned int *'} but argument is of type 'const volatile void *'
149 | static inline void raw_insw(volatile u16 __iomem *port, u16 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread32_rep':
>> arch/m68k/include/asm/io_mm.h:377:44: warning: passing argument 1 of 'raw_insl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
377 | #define readsl(port, buf, nr) raw_insl((port), (u32 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:934:9: note: in expansion of macro 'readsl'
934 | readsl(addr, buffer, count);
| ^~~~~~
arch/m68k/include/asm/raw_io.h:228:51: note: expected 'volatile u32 *' {aka 'volatile unsigned int *'} but argument is of type 'const volatile void *'
228 | static inline void raw_insl(volatile u32 __iomem *port, u32 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
fs/xfs/xfs_trans.c: In function 'xfs_trans_unreserve_and_mod_sb':
fs/xfs/xfs_trans.c:600:33: warning: variable 'error' set but not used [-Wunused-but-set-variable]
600 | int error;
| ^~~~~
--
In file included from arch/m68k/include/asm/io.h:8,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from kernel/panic.c:14:
include/asm-generic/io.h: In function 'ioread8_rep':
>> arch/m68k/include/asm/io_mm.h:375:44: warning: passing argument 1 of 'raw_insb' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
375 | #define readsb(port, buf, nr) raw_insb((port), (u8 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:916:9: note: in expansion of macro 'readsb'
916 | readsb(addr, buffer, count);
| ^~~~~~
In file included from arch/m68k/include/asm/io_mm.h:25:
arch/m68k/include/asm/raw_io.h:101:50: note: expected 'volatile u8 *' {aka 'volatile unsigned char *'} but argument is of type 'const volatile void *'
101 | static inline void raw_insb(volatile u8 __iomem *port, u8 *buf, unsigned int len)
| ~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread16_rep':
>> arch/m68k/include/asm/io_mm.h:376:44: warning: passing argument 1 of 'raw_insw' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
376 | #define readsw(port, buf, nr) raw_insw((port), (u16 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:925:9: note: in expansion of macro 'readsw'
925 | readsw(addr, buffer, count);
| ^~~~~~
arch/m68k/include/asm/raw_io.h:149:51: note: expected 'volatile u16 *' {aka 'volatile short unsigned int *'} but argument is of type 'const volatile void *'
149 | static inline void raw_insw(volatile u16 __iomem *port, u16 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread32_rep':
>> arch/m68k/include/asm/io_mm.h:377:44: warning: passing argument 1 of 'raw_insl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
377 | #define readsl(port, buf, nr) raw_insl((port), (u32 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:934:9: note: in expansion of macro 'readsl'
934 | readsl(addr, buffer, count);
| ^~~~~~
arch/m68k/include/asm/raw_io.h:228:51: note: expected 'volatile u32 *' {aka 'volatile unsigned int *'} but argument is of type 'const volatile void *'
228 | static inline void raw_insl(volatile u32 __iomem *port, u32 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
kernel/panic.c: In function '__warn':
kernel/panic.c:670:17: warning: function '__warn' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
670 | vprintk(args->fmt, args->args);
| ^~~~~~~
--
In file included from arch/m68k/include/asm/io.h:8,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11,
from kernel/irq_work.c:14:
include/asm-generic/io.h: In function 'ioread8_rep':
>> arch/m68k/include/asm/io_mm.h:375:44: warning: passing argument 1 of 'raw_insb' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
375 | #define readsb(port, buf, nr) raw_insb((port), (u8 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:916:9: note: in expansion of macro 'readsb'
916 | readsb(addr, buffer, count);
| ^~~~~~
In file included from arch/m68k/include/asm/io_mm.h:25:
arch/m68k/include/asm/raw_io.h:101:50: note: expected 'volatile u8 *' {aka 'volatile unsigned char *'} but argument is of type 'const volatile void *'
101 | static inline void raw_insb(volatile u8 __iomem *port, u8 *buf, unsigned int len)
| ~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread16_rep':
>> arch/m68k/include/asm/io_mm.h:376:44: warning: passing argument 1 of 'raw_insw' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
376 | #define readsw(port, buf, nr) raw_insw((port), (u16 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:925:9: note: in expansion of macro 'readsw'
925 | readsw(addr, buffer, count);
| ^~~~~~
arch/m68k/include/asm/raw_io.h:149:51: note: expected 'volatile u16 *' {aka 'volatile short unsigned int *'} but argument is of type 'const volatile void *'
149 | static inline void raw_insw(volatile u16 __iomem *port, u16 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread32_rep':
>> arch/m68k/include/asm/io_mm.h:377:44: warning: passing argument 1 of 'raw_insl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
377 | #define readsl(port, buf, nr) raw_insl((port), (u32 *)(buf), (nr))
| ^~~~~~
include/asm-generic/io.h:934:9: note: in expansion of macro 'readsl'
934 | readsl(addr, buffer, count);
| ^~~~~~ arch/m68k/include/asm/raw_io.h:228:51: note: expected 'volatile u32 *' {aka 'volatile unsigned int *'} but argument is of type 'const volatile void *'
228 | static inline void raw_insl(volatile u32 __iomem *port, u32 *buf, unsigned int nr)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
kernel/irq_work.c: At top level:
kernel/irq_work.c:72:13: warning: no previous prototype for 'arch_irq_work_raise' [-Wmissing-prototypes]
72 | void __weak arch_irq_work_raise(void)
| ^~~~~~~~~~~~~~~~~~~
..
vim +375 arch/m68k/include/asm/io_mm.h
^1da177e4c3f41 include/asm-m68k/io.h Linus Torvalds 2005-04-16 374
f5db9c6a3dd940 arch/m68k/include/asm/io_mm.h Geert Uytterhoeven 2012-04-15 @375 #define readsb(port, buf, nr) raw_insb((port), (u8 *)(buf), (nr)) f5db9c6a3dd940 arch/m68k/include/asm/io_mm.h Geert Uytterhoeven 2012-04-15 @376 #define readsw(port, buf, nr) raw_insw((port), (u16 *)(buf), (nr)) f5db9c6a3dd940 arch/m68k/include/asm/io_mm.h Geert Uytterhoeven 2012-04-15 @377 #define readsl(port, buf, nr) raw_insl((port), (u32 *)(buf), (nr)) f5db9c6a3dd940 arch/m68k/include/asm/io_mm.h Geert Uytterhoeven 2012-04-15 378 #define writesb(port, buf, nr) raw_outsb((port), (u8 *)(buf), (nr)) f5db9c6a3dd940 arch/m68k/include/asm/io_mm.h Geert Uytterhoeven 2012-04-15 379 #define writesw(port, buf, nr) raw_outsw((port), (u16 *)(buf), (nr)) f5db9c6a3dd940 arch/m68k/include/asm/io_mm.h Geert Uytterhoeven 2012-04-15 380 #define writesl(port, buf, nr) raw_outsl((port), (u32 *)(buf), (nr))
f5db9c6a3dd940 arch/m68k/include/asm/io_mm.h Geert Uytterhoeven 2012-04-15 381
:::::: The code at line 375 was first introduced by commit
:::::: f5db9c6a3dd94033a113a6bd9ccce9f8c28c70b1 m68k: Make sure {read,write}s[bwl]() are always defined
:::::: TO: Geert Uytterhoeven <[email protected]> :::::: CC: Geert Uytterhoeven <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 29 lines · kernel test robot
All warnings (new ones prefixed by >>):
In file included from arch/m68k/include/asm/io.h:8, from include/linux/io.h:13, from include/linux/irq.h:20, from include/asm-generic/hardirq.h:17, from ./arch/m68k/include/generated/asm/hardirq.h:1, from include/linux/hardirq.h:11, from include/linux/highmem.h:12, from include/linux/bvec.h:10, from include/linux/skbuff.h:17, from include/net/net_namespace.h:43, from include/linux/inet.h:42, from fs/smb/client/trace.h:15, from fs/smb/client/trace.c:8: include/asm-generic/io.h: In function 'ioread8_rep':Quoted 1 line
Quoted 1 line
arch/m68k/include/asm/io_mm.h:375:44: warning: passing argument 1 of 'raw_insb' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]375 | #define readsb(port, buf, nr) raw_insb((port), (u8 *)(buf), (nr)) | ^~~~~~ include/asm-generic/io.h:916:9: note: in expansion of macro 'readsb' 916 | readsb(addr, buffer, count); | ^~~~~~ In file included from arch/m68k/include/asm/io_mm.h:25: arch/m68k/include/asm/raw_io.h:101:50: note: expected 'volatile u8*' {aka 'volatile unsigned char *'} but argument is of type 'const volatile void *'
101 | static inline void raw_insb(volatile u8__iomem*port, u8
*buf, unsigned int len)
Quoted 6 lines
| ~~~~~~~~~~~~~~~~~~~~~^~~~
include/asm-generic/io.h: In function 'ioread16_rep':Quoted 1 line
Quoted 1 line
arch/m68k/include/asm/io_mm.h:376:44: warning: passing argument 1 of 'raw_insw' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]376 | #define readsw(port, buf, nr) raw_insw((port), (u16*)(buf), (nr))
| ^~~~~~
Not sure what caused the warning, but it should be easy to avoid, I'll send a patch.
Arnd