Web lists-archives.com

[tip:timers/core 3/3] kernel/time/tick-broadcast.c:155:13: warning: 'tick_broadcast_setup_oneshot' used but never defined




tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core
head:   f5e38e7c86427bd7c01b259a9655cb6a9aba5cb7
commit: f5e38e7c86427bd7c01b259a9655cb6a9aba5cb7 [3/3] tick/broadcast: Make tick_broadcast_setup_oneshot() static
config: x86_64-randconfig-x012-201711 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout f5e38e7c86427bd7c01b259a9655cb6a9aba5cb7
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

>> kernel/time/tick-broadcast.c:155:13: warning: 'tick_broadcast_setup_oneshot' used but never defined
    static void tick_broadcast_setup_oneshot(struct clock_event_device *bc);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/tick_broadcast_setup_oneshot +155 kernel/time/tick-broadcast.c

   139	static void err_broadcast(const struct cpumask *mask)
   140	{
   141		pr_crit_once("Failed to broadcast timer tick. Some CPUs may be unresponsive.\n");
   142	}
   143	
   144	static void tick_device_setup_broadcast_func(struct clock_event_device *dev)
   145	{
   146		if (!dev->broadcast)
   147			dev->broadcast = tick_broadcast;
   148		if (!dev->broadcast) {
   149			pr_warn_once("%s depends on broadcast, but no broadcast function available\n",
   150				     dev->name);
   151			dev->broadcast = err_broadcast;
   152		}
   153	}
   154	
 > 155	static void tick_broadcast_setup_oneshot(struct clock_event_device *bc);
   156	
   157	/*
   158	 * Check, if the device is disfunctional and a place holder, which
   159	 * needs to be handled by the broadcast device.
   160	 */
   161	int tick_device_uses_broadcast(struct clock_event_device *dev, int cpu)
   162	{
   163		struct clock_event_device *bc = tick_broadcast_device.evtdev;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip