* include/asm-generic/io.h:1014 ioport_map() warn: impossible condition '(port > (~0 - 0)) => (0-u32max > u32max)'
@ 2020-06-07 8:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-07 8:02 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2523 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: John Garry <john.garry@huawei.com>
CC: Wei Xu <xuwei5@hisilicon.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3b69e8b4571125bec1f77f886174fe6cab6b9d75
commit: b8104fda1fff0882e43b7e98832a76d7e98eb3e9 logic_pio: Define PIO_INDIRECT_SIZE for !CONFIG_INDIRECT_PIO
date: 7 months ago
:::::: branch date: 10 hours ago
:::::: commit date: 7 months ago
config: xtensa-randconfig-m031-20200607 (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>
smatch warnings:
include/asm-generic/io.h:1014 ioport_map() warn: impossible condition '(port > (~0 - 0)) => (0-u32max > u32max)'
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b8104fda1fff0882e43b7e98832a76d7e98eb3e9
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout b8104fda1fff0882e43b7e98832a76d7e98eb3e9
vim +1014 include/asm-generic/io.h
d838270e2516db Toshi Kani 2015-06-04 1006
ce816fa88cca08 Uwe Kleine-König 2014-04-07 1007 #ifdef CONFIG_HAS_IOPORT_MAP
3f7e212df82ca0 Arnd Bergmann 2009-05-13 1008 #ifndef CONFIG_GENERIC_IOMAP
9216efafc52ff9 Thierry Reding 2014-10-01 1009 #ifndef ioport_map
9216efafc52ff9 Thierry Reding 2014-10-01 1010 #define ioport_map ioport_map
3f7e212df82ca0 Arnd Bergmann 2009-05-13 1011 static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
3f7e212df82ca0 Arnd Bergmann 2009-05-13 1012 {
500dd232449e7c Andrew Murray 2018-09-13 1013 port &= IO_SPACE_LIMIT;
500dd232449e7c Andrew Murray 2018-09-13 @1014 return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
3f7e212df82ca0 Arnd Bergmann 2009-05-13 1015 }
9216efafc52ff9 Thierry Reding 2014-10-01 1016 #endif
3f7e212df82ca0 Arnd Bergmann 2009-05-13 1017
:::::: The code at line 1014 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: 21666 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-07 8:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-07 8:02 include/asm-generic/io.h:1014 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.