[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202301181834.Ey30y20B-lkp@intel.com>
Date: Wed, 18 Jan 2023 18:18:29 +0800
From: kernel test robot <lkp@...el.com>
To: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
linux-kernel@...r.kernel.org, Lee Jones <lee@...nel.org>
Subject: drivers/mfd/twl-core.c:651:30: warning: unused function 'add_child'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c1649ec55708ae42091a2f1bca1ab49ecd722d55
commit: 4a346a03a63cb45f7766d9d6559cf3fee783e926 mfd: twl: Remove platform data support
date: 6 months ago
config: x86_64-randconfig-a004-20230116
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4a346a03a63cb45f7766d9d6559cf3fee783e926
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4a346a03a63cb45f7766d9d6559cf3fee783e926
# 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 drivers/mfd/ lib/ mm/kasan/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/mfd/twl-core.c:651:30: warning: unused function 'add_child' [-Wunused-function]
static inline struct device *add_child(unsigned mod_no, const char *name,
^
1 warning generated.
vim +/add_child +651 drivers/mfd/twl-core.c
a603a7fa8717fb drivers/mfd/twl4030-core.c David Brownell 2008-10-15 650
3c3302794cc79b drivers/mfd/twl-core.c Peter Ujfalusi 2013-01-16 @651 static inline struct device *add_child(unsigned mod_no, const char *name,
dad759ff8ba799 drivers/mfd/twl4030-core.c David Brownell 2008-12-01 652 void *pdata, unsigned pdata_len,
dad759ff8ba799 drivers/mfd/twl4030-core.c David Brownell 2008-12-01 653 bool can_wakeup, int irq0, int irq1)
dad759ff8ba799 drivers/mfd/twl4030-core.c David Brownell 2008-12-01 654 {
3c3302794cc79b drivers/mfd/twl-core.c Peter Ujfalusi 2013-01-16 655 return add_numbered_child(mod_no, name, -1, pdata, pdata_len,
dad759ff8ba799 drivers/mfd/twl4030-core.c David Brownell 2008-12-01 656 can_wakeup, irq0, irq1);
dad759ff8ba799 drivers/mfd/twl4030-core.c David Brownell 2008-12-01 657 }
dad759ff8ba799 drivers/mfd/twl4030-core.c David Brownell 2008-12-01 658
:::::: The code at line 651 was first introduced by commit
:::::: 3c3302794cc79b363779a762051ebe8670812791 mfd: twl-core: Use the lookup table to find the correct subchip for the modules
:::::: TO: Peter Ujfalusi <peter.ujfalusi@...com>
:::::: CC: Samuel Ortiz <sameo@...ux.intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
View attachment "config" of type "text/plain" (134379 bytes)
Powered by blists - more mailing lists