All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-lts:5.15/linux 16/16] drivers/i2c/busses/i2c-designware-pcidrv.c:75:12: warning: 'dw_reg_write' defined but not used
@ 2023-01-19  4:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-19  4:55 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "gcc: unused function warning for stub function"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: "D, Lakshmi Sowjanya" <lakshmi.sowjanya.d@intel.com>
CC: nanli2x <nanx.li@intel.com>

tree:   https://github.com/intel/linux-intel-lts.git 5.15/linux
head:   4e26912f977bc8d60339bfcd56a777a08ded493d
commit: 1ec5959a8f6dbfbb47057317bc935924cd8d6977 [16/16] i2c: Add read and write functions in pcidrv
:::::: branch date: 7 days ago
:::::: commit date: 8 months ago
config: x86_64-randconfig-a013-20230116 (https://download.01.org/0day-ci/archive/20230119/202301191228.UkOxHkfK-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/linux-intel-lts/commit/1ec5959a8f6dbfbb47057317bc935924cd8d6977
        git remote add intel-lts https://github.com/intel/linux-intel-lts.git
        git fetch --no-tags intel-lts 5.15/linux
        git checkout 1ec5959a8f6dbfbb47057317bc935924cd8d6977
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

>> drivers/i2c/busses/i2c-designware-pcidrv.c:75:12: warning: 'dw_reg_write' defined but not used [-Wunused-function]
      75 | static int dw_reg_write(struct dw_i2c_dev *dev, unsigned int reg, unsigned int val)
         |            ^~~~~~~~~~~~
>> drivers/i2c/busses/i2c-designware-pcidrv.c:69:12: warning: 'dw_reg_read' defined but not used [-Wunused-function]
      69 | static int dw_reg_read(struct dw_i2c_dev *dev, unsigned int reg, unsigned int *val)
         |            ^~~~~~~~~~~


vim +/dw_reg_write +75 drivers/i2c/busses/i2c-designware-pcidrv.c

fe20ff5c7e9ca7 Dirk Brandewie      2011-10-06  68  
1ec5959a8f6dbf D, Lakshmi Sowjanya 2022-03-03 @69  static int dw_reg_read(struct dw_i2c_dev *dev, unsigned int reg, unsigned int *val)
1ec5959a8f6dbf D, Lakshmi Sowjanya 2022-03-03  70  {
1ec5959a8f6dbf D, Lakshmi Sowjanya 2022-03-03  71  	*val = readl_relaxed(dev->base + reg);
1ec5959a8f6dbf D, Lakshmi Sowjanya 2022-03-03  72  	return 0;
1ec5959a8f6dbf D, Lakshmi Sowjanya 2022-03-03  73  }
1ec5959a8f6dbf D, Lakshmi Sowjanya 2022-03-03  74  
1ec5959a8f6dbf D, Lakshmi Sowjanya 2022-03-03 @75  static int dw_reg_write(struct dw_i2c_dev *dev, unsigned int reg, unsigned int val)
1ec5959a8f6dbf D, Lakshmi Sowjanya 2022-03-03  76  {
1ec5959a8f6dbf D, Lakshmi Sowjanya 2022-03-03  77  	writel_relaxed(val, dev->base + reg);
1ec5959a8f6dbf D, Lakshmi Sowjanya 2022-03-03  78  	return 0;
1ec5959a8f6dbf D, Lakshmi Sowjanya 2022-03-03  79  }
1ec5959a8f6dbf D, Lakshmi Sowjanya 2022-03-03  80  

-- 
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-01-19  4:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-19  4:55 [intel-lts:5.15/linux 16/16] drivers/i2c/busses/i2c-designware-pcidrv.c:75:12: warning: 'dw_reg_write' defined but not used kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.