CC: [email protected]
CC: [email protected]
TO: John Garry <[email protected]>
CC: Wei Xu <[email protected]>

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 <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

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 <[email protected]>
:::::: CC: Will Deacon <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to