lkml.org 
[lkml]   [2021]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/memory/ti-emif-pm.c:238:34: warning: unused variable 'ti_emif_of_match'
Hi Krzysztof,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 61556703b610a104de324e4f061dc6cf7b218b46
commit: ea0c0ad6b6eb36726088991d97a55b99cae456d0 memory: Enable compile testing for most of the drivers
date: 6 months ago
config: arm-randconfig-r016-20210206 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ea0c0ad6b6eb36726088991d97a55b99cae456d0
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout ea0c0ad6b6eb36726088991d97a55b99cae456d0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm

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

All warnings (new ones prefixed by >>):

>> drivers/memory/ti-emif-pm.c:238:34: warning: unused variable 'ti_emif_of_match' [-Wunused-const-variable]
static const struct of_device_id ti_emif_of_match[] = {
^
1 warning generated.


vim +/ti_emif_of_match +238 drivers/memory/ti-emif-pm.c

8428e5ad750d48 Dave Gerlach 2015-06-17 237
8428e5ad750d48 Dave Gerlach 2015-06-17 @238 static const struct of_device_id ti_emif_of_match[] = {
8428e5ad750d48 Dave Gerlach 2015-06-17 239 { .compatible = "ti,emif-am3352", .data =
8428e5ad750d48 Dave Gerlach 2015-06-17 240 (void *)EMIF_SRAM_AM33_REG_LAYOUT, },
8428e5ad750d48 Dave Gerlach 2015-06-17 241 { .compatible = "ti,emif-am4372", .data =
8428e5ad750d48 Dave Gerlach 2015-06-17 242 (void *)EMIF_SRAM_AM43_REG_LAYOUT, },
8428e5ad750d48 Dave Gerlach 2015-06-17 243 {},
8428e5ad750d48 Dave Gerlach 2015-06-17 244 };
8428e5ad750d48 Dave Gerlach 2015-06-17 245 MODULE_DEVICE_TABLE(of, ti_emif_of_match);
8428e5ad750d48 Dave Gerlach 2015-06-17 246

:::::: The code at line 238 was first introduced by commit
:::::: 8428e5ad750d482bdf077e81a1e9357332b3278c memory: ti-emif-sram: introduce relocatable suspend/resume handlers

:::::: TO: Dave Gerlach <d-gerlach@ti.com>
:::::: CC: Santosh Shilimkar <santosh.shilimkar@oracle.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-02-06 05:29    [W:0.032 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site