mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Nathan Chancellor <nathan@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Nick Desaulniers <ndesaulniers@google.com>,
	Michael Ellerman <mpe@ellerman.id.au>
Subject: [linux-stable-rc:queue/5.10 3948/9999] arch/powerpc/platforms/4xx/pci.c:47:19: error: unused function 'ppc440spe_revA'
Date: Sun, 3 Apr 2022 19:33:28 +0800	[thread overview]
Message-ID: <202204031917.yHHLo75R-lkp@intel.com> (raw)

Hi Nathan,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/5.10
head:   852e92a491fd83515d5683537bfdb2d90d483344
commit: a024e88f8ab79a7b7e15337096d4f5f77edc6a49 [3948/9999] powerpc/barrier: Avoid collision with clang's __lwsync macro
config: powerpc-randconfig-c003-20220403 (https://download.01.org/0day-ci/archive/20220403/202204031917.yHHLo75R-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=a024e88f8ab79a7b7e15337096d4f5f77edc6a49
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc queue/5.10
        git checkout a024e88f8ab79a7b7e15337096d4f5f77edc6a49
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/

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

All errors (new ones prefixed by >>):

>> arch/powerpc/platforms/4xx/pci.c:47:19: error: unused function 'ppc440spe_revA' [-Werror,-Wunused-function]
   static inline int ppc440spe_revA(void)
                     ^
   1 error generated.


vim +/ppc440spe_revA +47 arch/powerpc/platforms/4xx/pci.c

a2d2e1ec07a809 arch/powerpc/sysdev/ppc4xx_pci.c Benjamin Herrenschmidt 2007-12-21  41  
8308c54d7e312f arch/powerpc/sysdev/ppc4xx_pci.c Jeremy Fitzhardinge    2008-09-11  42  #define RES_TO_U32_LOW(val)	\
8308c54d7e312f arch/powerpc/sysdev/ppc4xx_pci.c Jeremy Fitzhardinge    2008-09-11  43  	((sizeof(resource_size_t) > sizeof(u32)) ? U64_TO_U32_LOW(val) : (val))
8308c54d7e312f arch/powerpc/sysdev/ppc4xx_pci.c Jeremy Fitzhardinge    2008-09-11  44  #define RES_TO_U32_HIGH(val)	\
8308c54d7e312f arch/powerpc/sysdev/ppc4xx_pci.c Jeremy Fitzhardinge    2008-09-11  45  	((sizeof(resource_size_t) > sizeof(u32)) ? U64_TO_U32_HIGH(val) : (0))
a2d2e1ec07a809 arch/powerpc/sysdev/ppc4xx_pci.c Benjamin Herrenschmidt 2007-12-21  46  
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese           2007-12-21 @47  static inline int ppc440spe_revA(void)
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese           2007-12-21  48  {
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese           2007-12-21  49  	/* Catch both 440SPe variants, with and without RAID6 support */
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese           2007-12-21  50          if ((mfspr(SPRN_PVR) & 0xffefffff) == 0x53421890)
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese           2007-12-21  51                  return 1;
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese           2007-12-21  52          else
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese           2007-12-21  53                  return 0;
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese           2007-12-21  54  }
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese           2007-12-21  55  

:::::: The code at line 47 was first introduced by commit
:::::: accf5ef254b9dd4d3b53040dd73d80875c2cd39b [POWERPC] 4xx: Add 440SPe revA runtime detection to PCIe

:::::: TO: Stefan Roese <sr@denx.de>
:::::: CC: Josh Boyer <jwboyer@linux.vnet.ibm.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-04-03 11:34 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=202204031917.yHHLo75R-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mpe@ellerman.id.au \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®