oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [ti:ti-rt-linux-5.10.y-cicd 21413/21416] drivers/crypto/ti/mcrc.c:124:13: warning: variable 'signature' set but not used
@ 2023-02-14 12:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-14 12:56 UTC (permalink / raw)
  To: Kamlesh Gurudasani
  Cc: oe-kbuild-all, vigneshr, nm, Praneeth Bajjuri, Jai Luthra

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y-cicd
head:   4a7db47d71b74437702af44195a198c322fd41d5
commit: fc4bdbf200506631decc9000f9466af382ff2bc7 [21413/21416] crypto: Add driver for MCRC engine
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230214/202302142031.0j2qoadA-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.0
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
        git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
        git fetch --no-tags ti ti-rt-linux-5.10.y-cicd
        git checkout fc4bdbf200506631decc9000f9466af382ff2bc7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302142031.0j2qoadA-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/crypto/ti/mcrc.c: In function 'mcrc_calculate_crc':
>> drivers/crypto/ti/mcrc.c:124:13: warning: variable 'signature' set but not used [-Wunused-but-set-variable]
     124 |         u64 signature;
         |             ^~~~~~~~~


vim +/signature +124 drivers/crypto/ti/mcrc.c

   119	
   120	static int mcrc_calculate_crc(void __iomem *regs, u32 channel,
   121				      u32 pattern, const u8 *d8, size_t length)
   122	{
   123		void __iomem *psa_reg;
 > 124		u64 signature;
   125	
   126		if (channel <= 0 || channel >= MCRC_CHANNEL_INVALID)
   127			return -EINVAL;
   128	
   129		psa_reg = regs + PSA_SIGREGL(channel);
   130	
   131		for (; length >= sizeof(u64); d8 += sizeof(u64), length -= sizeof(u64)) {
   132			writeq_relaxed(*((u64 *)d8), psa_reg);
   133			signature = readq_relaxed(psa_reg);
   134		}
   135	
   136		if (length) {
   137			u64 leftover = 0;
   138	
   139			while (length--)
   140				leftover =  (*d8++) << 8  | leftover;
   141			writeq_relaxed(leftover, psa_reg);
   142			signature = readq_relaxed(psa_reg);
   143		}
   144	
   145		return 0;
   146	}
   147	

-- 
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-02-14 12:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-14 12:56 [ti:ti-rt-linux-5.10.y-cicd 21413/21416] drivers/crypto/ti/mcrc.c:124:13: warning: variable 'signature' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).