lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 26 May 2020 12:28:36 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Neil Armstrong <narmstrong@...libre.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Mark Brown <broonie@...nel.org>
Subject: drivers/spi/spi-meson-spicc.c:363:6: warning: variable 'data' set
 but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9cb1fd0efd195590b828b9b865421ad345a4a145
commit: 0eb707ac7dd7a4329d93d47feada6c9bb5ea8ee9 spi: meson-spicc: adapt burst handling for G12A support
date:   2 months ago
config: h8300-randconfig-r006-20200526 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.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 checkout 0eb707ac7dd7a4329d93d47feada6c9bb5ea8ee9
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

drivers/spi/spi-meson-spicc.c: In function 'meson_spicc_reset_fifo':
>> drivers/spi/spi-meson-spicc.c:363:6: warning: variable 'data' set but not used [-Wunused-but-set-variable]
363 |  u32 data;
|      ^~~~

vim +/data +363 drivers/spi/spi-meson-spicc.c

   360	
   361	static void meson_spicc_reset_fifo(struct meson_spicc_device *spicc)
   362	{
 > 363		u32 data;
   364	
   365		if (spicc->data->has_oen)
   366			writel_bits_relaxed(SPICC_ENH_MAIN_CLK_AO,
   367					    SPICC_ENH_MAIN_CLK_AO,
   368					    spicc->base + SPICC_ENH_CTL0);
   369	
   370		writel_bits_relaxed(SPICC_FIFORST_W1_MASK, SPICC_FIFORST_W1_MASK,
   371				    spicc->base + SPICC_TESTREG);
   372	
   373		while (meson_spicc_rxready(spicc))
   374			data = readl_relaxed(spicc->base + SPICC_RXDATA);
   375	
   376		if (spicc->data->has_oen)
   377			writel_bits_relaxed(SPICC_ENH_MAIN_CLK_AO, 0,
   378					    spicc->base + SPICC_ENH_CTL0);
   379	}
   380	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (33653 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ