Re: [PATCH v4] hid-mcp2200: added driver for GPIOs of MCP2200

From: kernel test robot
Date: Thu Aug 17 2023 - 13:14:15 EST


Hi,

kernel test robot noticed the following build warnings:

[auto build test WARNING on hid/for-next]
[also build test WARNING on linus/master v6.5-rc6 next-20230817]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/johannes-gnu-linux-rocks/hid-mcp2200-added-driver-for-GPIOs-of-MCP2200/20230817-172246
base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next
patch link: https://lore.kernel.org/r/20230817091505.213318-1-johannes%40gnu-linux.rocks
patch subject: [PATCH v4] hid-mcp2200: added driver for GPIOs of MCP2200
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230818/202308180056.nB1KSUap-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230818/202308180056.nB1KSUap-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308180056.nB1KSUap-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/hid/hid-mcp2200.c: In function 'mcp2200_remove':
>> drivers/hid/hid-mcp2200.c:395:25: warning: variable 'mcp' set but not used [-Wunused-but-set-variable]
395 | struct mcp2200 *mcp;
| ^~~


vim +/mcp +395 drivers/hid/hid-mcp2200.c

392
393 static void mcp2200_remove(struct hid_device *hdev)
394 {
> 395 struct mcp2200 *mcp;
396
397 mcp = hid_get_drvdata(hdev);
398 }
399

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki