CC: kbuild-all(a)lists.01.org CC: linux-kernel(a)vger.kernel.org TO: Chen Zhou CC: Ben Skeggs tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 commit: ee8642162a9edd40daafd3fb894e3fd3f909e361 drm/nouveau: fix build error without CONFIG_IOMMU_API date: 12 months ago :::::: branch date: 2 days ago :::::: commit date: 12 months ago config: xtensa-randconfig-m031-20210106 (attached as .config) compiler: xtensa-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter New smatch warnings: include/asm-generic/io.h:997 ioport_map() warn: impossible condition '(port > (~0 - 0)) => (0-u32max > u32max)' Old smatch warnings: arch/xtensa/include/asm/thread_info.h:87 current_thread_info() warn: inconsistent indenting drivers/vfio/pci/vfio_pci_rdwr.c:208 vfio_pci_bar_rw() error: testing array offset 'bar' after use. vim +997 include/asm-generic/io.h e97133959ad294 Christoph Hellwig 2019-08-13 989 ce816fa88cca08 Uwe Kleine-König 2014-04-07 990 #ifdef CONFIG_HAS_IOPORT_MAP 3f7e212df82ca0 Arnd Bergmann 2009-05-13 991 #ifndef CONFIG_GENERIC_IOMAP 9216efafc52ff9 Thierry Reding 2014-10-01 992 #ifndef ioport_map 9216efafc52ff9 Thierry Reding 2014-10-01 993 #define ioport_map ioport_map 3f7e212df82ca0 Arnd Bergmann 2009-05-13 994 static inline void __iomem *ioport_map(unsigned long port, unsigned int nr) 3f7e212df82ca0 Arnd Bergmann 2009-05-13 995 { 500dd232449e7c Andrew Murray 2018-09-13 996 port &= IO_SPACE_LIMIT; 500dd232449e7c Andrew Murray 2018-09-13 @997 return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; 3f7e212df82ca0 Arnd Bergmann 2009-05-13 998 } 9216efafc52ff9 Thierry Reding 2014-10-01 999 #endif 3f7e212df82ca0 Arnd Bergmann 2009-05-13 1000 :::::: The code at line 997 was first introduced by commit :::::: 500dd232449e7c07500e713dc6970aa713f8e4f1 asm-generic: io: Fix ioport_map() for !CONFIG_GENERIC_IOMAP && CONFIG_INDIRECT_PIO :::::: TO: Andrew Murray :::::: CC: Will Deacon --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org