* include/asm-generic/io.h:997 ioport_map() warn: impossible condition '(port > (~0 - 0)) => (0-u32max > u32max)'
@ 2021-01-06 6:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-06 6:55 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2457 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Chen Zhou <chenzhou10@huawei.com>
CC: Ben Skeggs <bskeggs@redhat.com>
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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
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 <andrew.murray@arm.com>
:::::: CC: Will Deacon <will.deacon@arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31737 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-06 6:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 6:55 include/asm-generic/io.h:997 ioport_map() warn: impossible condition '(port > (~0 - 0)) => (0-u32max > u32max)' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.