All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-tdx:guest-hardening-rebased 15/38] lib/iomap.c:62:29: warning: unused function 'iomap_readb'
@ 2023-01-19  5:16 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-19  5:16 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "gcc: unused function warning for stub function"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
TO: Andi Kleen <ak@linux.intel.com>
CC: Alexander Shishkin <alexander.shishkin@linux.intel.com>

tree:   https://github.com/intel/tdx.git guest-hardening-rebased
head:   b47a6d251aaad2926b5947a5894556d58c0ba7e2
commit: 2de38c125a97d941d1e1396b035dc3cc40553a0d [15/38] x86/tdx: Enable direct iomap MMIO optimizations
:::::: branch date: 12 hours ago
:::::: commit date: 13 hours ago
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20230119/202301191312.VT4FdfJD-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel/tdx/commit/2de38c125a97d941d1e1396b035dc3cc40553a0d
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest-hardening-rebased
        git checkout 2de38c125a97d941d1e1396b035dc3cc40553a0d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> lib/iomap.c:62:29: warning: unused function 'iomap_readb' [-Wunused-function]
   static inline unsigned char iomap_readb(void __iomem *addr)
                               ^
>> lib/iomap.c:67:30: warning: unused function 'iomap_readw' [-Wunused-function]
   static inline unsigned short iomap_readw(void __iomem *addr)
                                ^
>> lib/iomap.c:72:28: warning: unused function 'iomap_readl' [-Wunused-function]
   static inline unsigned int iomap_readl(void __iomem *addr)
                              ^
>> lib/iomap.c:77:29: warning: unused function 'iomap_readq' [-Wunused-function]
   static inline unsigned long iomap_readq(void __iomem *addr)
                               ^
   4 warnings generated.


vim +/iomap_readb +62 lib/iomap.c

2c2eed3f104d85 Andi Kleen 2021-08-20  55  
2c2eed3f104d85 Andi Kleen 2021-08-20  56  #define COND_MMIO_READ(func, addr)			\
2c2eed3f104d85 Andi Kleen 2021-08-20  57  	(iomap_mmio ? iomap_mmio->i ## func(addr) : func(addr))
2c2eed3f104d85 Andi Kleen 2021-08-20  58  
2c2eed3f104d85 Andi Kleen 2021-08-20  59  #define COND_MMIO_WRITE(func, val, addr)		\
2c2eed3f104d85 Andi Kleen 2021-08-20  60  	(iomap_mmio ? iomap_mmio->i ## func(val, addr) : func(val, addr))
2c2eed3f104d85 Andi Kleen 2021-08-20  61  
2c2eed3f104d85 Andi Kleen 2021-08-20 @62  static inline unsigned char iomap_readb(void __iomem *addr)
2c2eed3f104d85 Andi Kleen 2021-08-20  63  {
2c2eed3f104d85 Andi Kleen 2021-08-20  64  	return COND_MMIO_READ(readb, addr);
2c2eed3f104d85 Andi Kleen 2021-08-20  65  }
2c2eed3f104d85 Andi Kleen 2021-08-20  66  
2c2eed3f104d85 Andi Kleen 2021-08-20 @67  static inline unsigned short iomap_readw(void __iomem *addr)
2c2eed3f104d85 Andi Kleen 2021-08-20  68  {
2c2eed3f104d85 Andi Kleen 2021-08-20  69  	return COND_MMIO_READ(readw, addr);
2c2eed3f104d85 Andi Kleen 2021-08-20  70  }
2c2eed3f104d85 Andi Kleen 2021-08-20  71  
2c2eed3f104d85 Andi Kleen 2021-08-20 @72  static inline unsigned int iomap_readl(void __iomem *addr)
2c2eed3f104d85 Andi Kleen 2021-08-20  73  {
2c2eed3f104d85 Andi Kleen 2021-08-20  74  	return COND_MMIO_READ(readl, addr);
2c2eed3f104d85 Andi Kleen 2021-08-20  75  }
2c2eed3f104d85 Andi Kleen 2021-08-20  76  
2c2eed3f104d85 Andi Kleen 2021-08-20 @77  static inline unsigned long iomap_readq(void __iomem *addr)
2c2eed3f104d85 Andi Kleen 2021-08-20  78  {
2c2eed3f104d85 Andi Kleen 2021-08-20  79  	return COND_MMIO_READ(readq, addr);
2c2eed3f104d85 Andi Kleen 2021-08-20  80  }
2c2eed3f104d85 Andi Kleen 2021-08-20  81  

:::::: The code at line 62 was first introduced by commit
:::::: 2c2eed3f104d85c2cba40ddc00e11f59b351879a iomap: Add support for indirect MMIO

:::::: TO: Andi Kleen <ak@linux.intel.com>
:::::: CC: Alexander Shishkin <alexander.shishkin@linux.intel.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

only message in thread, other threads:[~2023-01-19  5:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19  5:16 [intel-tdx:guest-hardening-rebased 15/38] lib/iomap.c:62:29: warning: unused function 'iomap_readb' 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.