drivers/staging/gpib/fmh_gpib/fmh_gpib.c:1665:3-8: No need to set .owner here. The core will do it.

From: kernel test robot
Date: Thu Jan 23 2025 - 22:59:49 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e0b1f59142746f74476a03040f745329c8355a7e
commit: 80242c4a9d50e71a4df1b7fa19b922ac88aab22b staging: gpib: Workaround for ppc build failure
date: 7 weeks ago
config: arc-randconfig-r051-20250124 (https://download.01.org/0day-ci/archive/20250124/202501241118.cLk6pLFB-lkp@xxxxxxxxx/config)
compiler: arc-elf-gcc (GCC) 13.2.0

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/202501241118.cLk6pLFB-lkp@xxxxxxxxx/

cocci warnings: (new ones prefixed by >>)
>> drivers/staging/gpib/fmh_gpib/fmh_gpib.c:1665:3-8: No need to set .owner here. The core will do it.

vim +1665 drivers/staging/gpib/fmh_gpib/fmh_gpib.c

8e4841a0888c74 Dave Penkler 2024-09-18 1661
8e4841a0888c74 Dave Penkler 2024-09-18 1662 static struct platform_driver fmh_gpib_platform_driver = {
8e4841a0888c74 Dave Penkler 2024-09-18 1663 .driver = {
8e4841a0888c74 Dave Penkler 2024-09-18 1664 .name = "fmh_gpib",
8e4841a0888c74 Dave Penkler 2024-09-18 @1665 .owner = THIS_MODULE,
8e4841a0888c74 Dave Penkler 2024-09-18 1666 .of_match_table = fmh_gpib_of_match,
8e4841a0888c74 Dave Penkler 2024-09-18 1667 },
8e4841a0888c74 Dave Penkler 2024-09-18 1668 .probe = &fmh_gpib_platform_probe
8e4841a0888c74 Dave Penkler 2024-09-18 1669 };
8e4841a0888c74 Dave Penkler 2024-09-18 1670

:::::: The code at line 1665 was first introduced by commit
:::::: 8e4841a0888c74bdcb6ba115d6405206f0c2e8b4 staging: gpib: Add Frank Mori Hess FPGA PCI GPIB driver

:::::: TO: Dave Penkler <dpenkler@xxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

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