lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 18 Apr 2017 05:27:44 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Anna-Maria Gleixner <anna-maria@...utronix.de>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        tipbuild@...or.com, Thomas Gleixner <tglx@...utronix.de>
Subject: [tip:WIP.timers 8/10] kernel/time/timer_migration.h:26:1: warning:
 no return statement in function returning non-void

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.timers
head:   c0b7a5dbb870d1660aa5e566c5ce9972290a2bed
commit: 6a3164fa4cd35a587b5bb2e4bd86b75900af8286 [8/10] timer: Implement the hierarchical pull model
config: x86_64-randconfig-x012-201716 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 6a3164fa4cd35a587b5bb2e4bd86b75900af8286
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from kernel/time/timer.c:54:0:
   kernel/time/timer_migration.h: In function 'tmigr_cpu_idle':
>> kernel/time/timer_migration.h:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
    static inline u64 tmigr_cpu_idle(u64 nextevt) { }
    ^~~~~~

vim +26 kernel/time/timer_migration.h

    10	#define _KERNEL_TIME_MIGRATION_H
    11	
    12	#ifdef CONFIG_NO_HZ_COMMON
    13	extern bool tmigr_enabled;
    14	void tmigr_init(void);
    15	#else
    16	static inline void tmigr_init(void) { }
    17	#endif
    18	
    19	#if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ_COMMON)
    20	extern void tmigr_handle_remote(void);
    21	extern u64 tmigr_cpu_idle(u64 nextevt);
    22	extern void tmigr_cpu_activate(void);
    23	extern void timer_expire_remote(unsigned int cpu);
    24	#else
    25	static inline void tmigr_handle_remote(void) { }
  > 26	static inline u64 tmigr_cpu_idle(u64 nextevt) { }
    27	static inline void tmigr_cpu_activate(void) { }
    28	#endif
    29	
    30	#define TMIGR_NONE		(~0U)
    31	
    32	/**
    33	 * struct tmigr_event - A timer event associated to a CPU or a group
    34	 * @nextevt:	The node to enqueue an event in the group queue

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

Download attachment ".config.gz" of type "application/gzip" (32493 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ