linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mmotm:master 446/499] kernel/power/main.c:27:8: warning: excess elements in struct initializer
@ 2014-05-17  2:41 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2014-05-17  2:41 UTC (permalink / raw)
  To: Davidlohr Bueso
  Cc: Linux Memory Management List, Andrew Morton, Tim Chen,
	Johannes Weiner, kbuild-all

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   ff35dad6205c66d96feda494502753e5ed1b10f1
commit: 67039d034b422b074af336ebf8101346b6b5d441 [446/499] rwsem: Support optimistic spinning
config: make ARCH=arm marzen_defconfig

All warnings:

>> kernel/power/main.c:27:8: warning: excess elements in struct initializer [enabled by default]
>> kernel/power/main.c:27:8: warning: (near initialization for 'pm_chain_head.rwsem') [enabled by default]
>> kernel/power/main.c:27:8: warning: excess elements in struct initializer [enabled by default]
>> kernel/power/main.c:27:8: warning: (near initialization for 'pm_chain_head.rwsem') [enabled by default]
--
>> drivers/base/power/qos.c:52:8: warning: excess elements in struct initializer [enabled by default]
>> drivers/base/power/qos.c:52:8: warning: (near initialization for 'dev_pm_notifiers.rwsem') [enabled by default]
>> drivers/base/power/qos.c:52:8: warning: excess elements in struct initializer [enabled by default]
>> drivers/base/power/qos.c:52:8: warning: (near initialization for 'dev_pm_notifiers.rwsem') [enabled by default]
--
>> drivers/leds/led-core.c:21:1: warning: excess elements in struct initializer [enabled by default]
>> drivers/leds/led-core.c:21:1: warning: (near initialization for 'leds_list_lock') [enabled by default]
>> drivers/leds/led-core.c:21:1: warning: excess elements in struct initializer [enabled by default]
>> drivers/leds/led-core.c:21:1: warning: (near initialization for 'leds_list_lock') [enabled by default]
--
>> drivers/leds/led-triggers.c:28:8: warning: excess elements in struct initializer [enabled by default]
>> drivers/leds/led-triggers.c:28:8: warning: (near initialization for 'triggers_list_lock') [enabled by default]
>> drivers/leds/led-triggers.c:28:8: warning: excess elements in struct initializer [enabled by default]
>> drivers/leds/led-triggers.c:28:8: warning: (near initialization for 'triggers_list_lock') [enabled by default]

vim +27 kernel/power/main.c

6e5fdeedc Paul Gortmaker    2011-05-26  11  #include <linux/export.h>
^1da177e4 Linus Torvalds    2005-04-16  12  #include <linux/kobject.h>
^1da177e4 Linus Torvalds    2005-04-16  13  #include <linux/string.h>
c5c6ba4e0 Rafael J. Wysocki 2006-09-25  14  #include <linux/resume-trace.h>
5e928f77a Rafael J. Wysocki 2009-08-18  15  #include <linux/workqueue.h>
2a77c46de ShuoX Liu         2011-08-10  16  #include <linux/debugfs.h>
2a77c46de ShuoX Liu         2011-08-10  17  #include <linux/seq_file.h>
^1da177e4 Linus Torvalds    2005-04-16  18  
^1da177e4 Linus Torvalds    2005-04-16  19  #include "power.h"
^1da177e4 Linus Torvalds    2005-04-16  20  
a6d709806 Stephen Hemminger 2006-12-06  21  DEFINE_MUTEX(pm_mutex);
^1da177e4 Linus Torvalds    2005-04-16  22  
cd51e61cf Rafael J. Wysocki 2011-02-11  23  #ifdef CONFIG_PM_SLEEP
cd51e61cf Rafael J. Wysocki 2011-02-11  24  
825257569 Alan Stern        2007-11-19  25  /* Routines for PM-transition notifications */
825257569 Alan Stern        2007-11-19  26  
825257569 Alan Stern        2007-11-19 @27  static BLOCKING_NOTIFIER_HEAD(pm_chain_head);
825257569 Alan Stern        2007-11-19  28  
825257569 Alan Stern        2007-11-19  29  int register_pm_notifier(struct notifier_block *nb)
825257569 Alan Stern        2007-11-19  30  {
825257569 Alan Stern        2007-11-19  31  	return blocking_notifier_chain_register(&pm_chain_head, nb);
825257569 Alan Stern        2007-11-19  32  }
825257569 Alan Stern        2007-11-19  33  EXPORT_SYMBOL_GPL(register_pm_notifier);
825257569 Alan Stern        2007-11-19  34  
825257569 Alan Stern        2007-11-19  35  int unregister_pm_notifier(struct notifier_block *nb)

:::::: The code at line 27 was first introduced by commit
:::::: 825257569350e913bee3bc918508c0aa6e3398cd PM: Convert PM notifiers to out-of-line code

:::::: TO: Alan Stern <stern@rowland.harvard.edu>
:::::: CC: Len Brown <len.brown@intel.com>

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-17  2:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-17  2:41 [mmotm:master 446/499] kernel/power/main.c:27:8: warning: excess elements in struct initializer kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox