linux-m68k.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [m68k:m68k-queue 3/8] drivers/usb/host/isp116x.h:370:87: note: in expansion of macro 'isa_rom_writew_raw'
@ 2020-05-19 22:26 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-19 22:26 UTC (permalink / raw)
  To: Michael Schmitz; +Cc: kbuild-all, linux-m68k, Geert Uytterhoeven

[-- Attachment #1: Type: text/plain, Size: 10251 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git m68k-queue
head:   4684d38e4d478644c6c5c9cc484d45fe747bfced
commit: 8cee9aeb5f09293c2e2a5e75f2f54186cb04c65e [3/8] m68k: atari: usb: Add ISP1160 USB host controller support
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 8cee9aeb5f09293c2e2a5e75f2f54186cb04c65e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from arch/m68k/include/asm/io_mm.h:25,
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:13,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/usb.h:16,
from drivers/usb/host/isp116x-hcd.c:66:
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsb':
arch/m68k/include/asm/raw_io.h:83:7: warning: variable '__w' set but not used [-Wunused-but-set-variable]
83 |  ({u8 __w, __v = (b);  u32 _addr = ((u32) (addr));          |       ^~~
arch/m68k/include/asm/raw_io.h:430:3: note: in expansion of macro 'rom_out_8'
430 |   rom_out_8(port, *buf++);
|   ^~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw':
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 |  ({u16 __w, __v = (w); u32 _addr = ((u32) (addr));          |        ^~~
arch/m68k/include/asm/raw_io.h:448:3: note: in expansion of macro 'rom_out_be16'
448 |   rom_out_be16(port, *buf++);
|   ^~~~~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw_swapw':
arch/m68k/include/asm/raw_io.h:90:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
90 |  ({u16 __w, __v = (w); u32 _addr = ((u32) (addr));          |        ^~~
arch/m68k/include/asm/raw_io.h:466:3: note: in expansion of macro 'rom_out_le16'
466 |   rom_out_le16(port, *buf++);
|   ^~~~~~~~~~~~
drivers/usb/host/isp116x.h: In function 'isp116x_write_addr':
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 |  ({u16 __w, __v = (w); u32 _addr = ((u32) (addr));          |        ^~~
arch/m68k/include/asm/io_mm.h:246:37: note: in expansion of macro 'rom_out_be16'
246 | #define isa_rom_writew_raw(val, p)  rom_out_be16(isa_mtw((unsigned long)(p)), (val))
|                                     ^~~~~~~~~~~~
>> drivers/usb/host/isp116x.h:370:87: note: in expansion of macro 'isa_rom_writew_raw'
370 | #define isp_writew(v, p) ((((unsigned long)(__pa(p)) & 0x00000F00) == 0x00000300UL) ? isa_rom_writew_raw((v), __pa(p)) : __raw_writew((v), (p)))
|                                                                                       ^~~~~~~~~~~~~~~~~~
>> drivers/usb/host/isp116x.h:391:2: note: in expansion of macro 'isp_writew'
391 |  isp_writew(reg & 0xff, isp116x->addr_reg);
|  ^~~~~~~~~~
drivers/usb/host/isp116x.h: In function 'isp116x_write_data16':
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 |  ({u16 __w, __v = (w); u32 _addr = ((u32) (addr));          |        ^~~
arch/m68k/include/asm/io_mm.h:246:37: note: in expansion of macro 'rom_out_be16'
246 | #define isa_rom_writew_raw(val, p)  rom_out_be16(isa_mtw((unsigned long)(p)), (val))
|                                     ^~~~~~~~~~~~
>> drivers/usb/host/isp116x.h:370:87: note: in expansion of macro 'isa_rom_writew_raw'
370 | #define isp_writew(v, p) ((((unsigned long)(__pa(p)) & 0x00000F00) == 0x00000300UL) ? isa_rom_writew_raw((v), __pa(p)) : __raw_writew((v), (p)))
|                                                                                       ^~~~~~~~~~~~~~~~~~
drivers/usb/host/isp116x.h:397:2: note: in expansion of macro 'isp_writew'
397 |  isp_writew(val, isp116x->data_reg);
|  ^~~~~~~~~~
drivers/usb/host/isp116x.h: In function 'isp116x_raw_write_data16':
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 |  ({u16 __w, __v = (w); u32 _addr = ((u32) (addr));          |        ^~~
arch/m68k/include/asm/io_mm.h:241:13: note: in expansion of macro 'rom_out_be16'
241 |  (ISA_SEX ? rom_out_be16(isa_mtw((unsigned long)(p)), (val))          |             ^~~~~~~~~~~~
>> drivers/usb/host/isp116x.h:372:91: note: in expansion of macro 'isa_rom_writew'
372 | #define isp_raw_writew(v, p) ((((unsigned long)(__pa(p)) & 0x00000F00) == 0x00000300UL) ? isa_rom_writew((v), __pa(p)) : writew((v), (p)))
|                                                                                           ^~~~~~~~~~~~~~
>> drivers/usb/host/isp116x.h:403:2: note: in expansion of macro 'isp_raw_writew'
403 |  isp_raw_writew(val, isp116x->data_reg);
|  ^~~~~~~~~~~~~~
arch/m68k/include/asm/raw_io.h:90:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
90 |  ({u16 __w, __v = (w); u32 _addr = ((u32) (addr));          |        ^~~
arch/m68k/include/asm/io_mm.h:242:6: note: in expansion of macro 'rom_out_le16'
242 |    : rom_out_le16(isa_mtw((unsigned long)(p)), (val)))
|      ^~~~~~~~~~~~
>> drivers/usb/host/isp116x.h:372:91: note: in expansion of macro 'isa_rom_writew'
372 | #define isp_raw_writew(v, p) ((((unsigned long)(__pa(p)) & 0x00000F00) == 0x00000300UL) ? isa_rom_writew((v), __pa(p)) : writew((v), (p)))
|                                                                                           ^~~~~~~~~~~~~~
>> drivers/usb/host/isp116x.h:403:2: note: in expansion of macro 'isp_raw_writew'
403 |  isp_raw_writew(val, isp116x->data_reg);
|  ^~~~~~~~~~~~~~
drivers/usb/host/isp116x.h: In function 'isp116x_write_data32':
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 |  ({u16 __w, __v = (w); u32 _addr = ((u32) (addr));          |        ^~~
arch/m68k/include/asm/io_mm.h:246:37: note: in expansion of macro 'rom_out_be16'
246 | #define isa_rom_writew_raw(val, p)  rom_out_be16(isa_mtw((unsigned long)(p)), (val))
|                                     ^~~~~~~~~~~~
>> drivers/usb/host/isp116x.h:370:87: note: in expansion of macro 'isa_rom_writew_raw'
370 | #define isp_writew(v, p) ((((unsigned long)(__pa(p)) & 0x00000F00) == 0x00000300UL) ? isa_rom_writew_raw((v), __pa(p)) : __raw_writew((v), (p)))
|                                                                                       ^~~~~~~~~~~~~~~~~~
drivers/usb/host/isp116x.h:427:2: note: in expansion of macro 'isp_writew'
427 |  isp_writew(val & 0xffff, isp116x->data_reg);
|  ^~~~~~~~~~
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 |  ({u16 __w, __v = (w); u32 _addr = ((u32) (addr));          |        ^~~
arch/m68k/include/asm/io_mm.h:246:37: note: in expansion of macro 'rom_out_be16'
246 | #define isa_rom_writew_raw(val, p)  rom_out_be16(isa_mtw((unsigned long)(p)), (val))
|                                     ^~~~~~~~~~~~
>> drivers/usb/host/isp116x.h:370:87: note: in expansion of macro 'isa_rom_writew_raw'
370 | #define isp_writew(v, p) ((((unsigned long)(__pa(p)) & 0x00000F00) == 0x00000300UL) ? isa_rom_writew_raw((v), __pa(p)) : __raw_writew((v), (p)))
|                                                                                       ^~~~~~~~~~~~~~~~~~
drivers/usb/host/isp116x.h:429:2: note: in expansion of macro 'isp_writew'
429 |  isp_writew(val >> 16, isp116x->data_reg);
|  ^~~~~~~~~~

vim +/isa_rom_writew_raw +370 drivers/usb/host/isp116x.h

   357	
   358	
   359	#ifdef CONFIG_ATARI_ROM_ISA
   360	  /*
   361	   * 16 bit data bus byte swapped in hardware on both Atari variants.
   362	   * EtherNAT variant of ISP1160 integration is memory mapped at 0x800000XX,
   363	   * and uses regular readw/__raw_readw (but semantics swapped).
   364	   * NetUSBee variant is hooked up through ROM port and uses ROM port
   365	   * IO access, with fake IO address of 0x3XX.
   366	   * Selection of the appropriate accessors relies on ioremapped addresses still
   367	   * retaining the 0x3XX bit.
   368	   */
   369	#define isp_readw(p)		((((unsigned long)(__pa(p)) & 0x00000F00) == 0x00000300UL) ? isa_rom_readw_raw(__pa(p)) : __raw_readw((p)))
 > 370	#define isp_writew(v, p)	((((unsigned long)(__pa(p)) & 0x00000F00) == 0x00000300UL) ? isa_rom_writew_raw((v), __pa(p)) : __raw_writew((v), (p)))
   371	#define isp_raw_readw(p)	((((unsigned long)(__pa(p)) & 0x00000F00) == 0x00000300UL) ? isa_rom_readw(__pa(p)) : readw((p)))
 > 372	#define isp_raw_writew(v, p)	((((unsigned long)(__pa(p)) & 0x00000F00) == 0x00000300UL) ? isa_rom_writew((v), __pa(p)) : writew((v), (p)))
   373	#elif defined(CONFIG_ATARI)
   374	  /*
   375	   * 16 bit data bus byte swapped in hardware on EtherNAT only.
   376	   */
   377	#define isp_readw		__raw_readw
   378	#define isp_writew		__raw_writew
   379	#define isp_raw_readw		readw
   380	#define isp_raw_writew		writew
   381	#else
   382	  /* sane hardware */
   383	#define isp_readw		readw
   384	#define isp_writew		writew
   385	#define isp_raw_readw		__raw_readw
   386	#define isp_raw_writew		__raw_writew
   387	#endif
   388	
   389	static inline void isp116x_write_addr(struct isp116x *isp116x, unsigned reg)
   390	{
 > 391		isp_writew(reg & 0xff, isp116x->addr_reg);
   392		isp116x_delay(isp116x, 300);
   393	}
   394	
   395	static inline void isp116x_write_data16(struct isp116x *isp116x, u16 val)
   396	{
   397		isp_writew(val, isp116x->data_reg);
   398		isp116x_delay(isp116x, 150);
   399	}
   400	
   401	static inline void isp116x_raw_write_data16(struct isp116x *isp116x, u16 val)
   402	{
 > 403		isp_raw_writew(val, isp116x->data_reg);
   404		isp116x_delay(isp116x, 150);
   405	}
   406	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 53952 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-19 23:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19 22:26 [m68k:m68k-queue 3/8] drivers/usb/host/isp116x.h:370:87: note: in expansion of macro 'isa_rom_writew_raw' kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).