[linux-next:master 4653/6165] kernel/watchdog.c:798:12: warning: 'proc_soft_watchdog' defined but not used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   bc63de6e6ba0b16652c5fb4b9c9916b9e7ca1f23
commit: 8dd5ad307974d01065aba1d2d27f6d9d2d6d6661 [4653/6165] watchdog/core: remove sysctl handlers from public header
config: powerpc64-randconfig-002-20231113 (https://download.01.org/0day-ci/archive/20231210/202312102146.ss7blmxP-lkp@xxxxxxxxx/config)
compiler: powerpc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231210/202312102146.ss7blmxP-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/202312102146.ss7blmxP-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> kernel/watchdog.c:798:12: warning: 'proc_soft_watchdog' defined but not used [-Wunused-function]
     798 | static int proc_soft_watchdog(struct ctl_table *table, int write,
         |            ^~~~~~~~~~~~~~~~~~


vim +/proc_soft_watchdog +798 kernel/watchdog.c

   794	
   795	/*
   796	 * /proc/sys/kernel/soft_watchdog
   797	 */
 > 798	static int proc_soft_watchdog(struct ctl_table *table, int write,
   799				void *buffer, size_t *lenp, loff_t *ppos)
   800	{
   801		return proc_watchdog_common(WATCHDOG_SOFTOCKUP_ENABLED,
   802					    table, write, buffer, lenp, ppos);
   803	}
   804	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux