All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [intel-tdx:guest-hardening-rebased 15/38] lib/iomap.c:62:29: warning: unused function 'iomap_readb'
Date: Thu, 19 Jan 2023 13:16:22 +0800	[thread overview]
Message-ID: <202301191312.VT4FdfJD-lkp@intel.com> (raw)

:::::: 
:::::: 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

                 reply	other threads:[~2023-01-19  5:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202301191312.VT4FdfJD-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.