[mmotm:master 446/499] init/init_task.c:14:44: warning: excess elements in struct initializer

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

 



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

All warnings:

>> init/init_task.c:14:44: warning: excess elements in struct initializer [enabled by default]
>> init/init_task.c:14:44: warning: (near initialization for 'init_signals.group_rwsem') [enabled by default]
>> init/init_task.c:14:44: warning: excess elements in struct initializer [enabled by default]
>> init/init_task.c:14:44: warning: (near initialization for 'init_signals.group_rwsem') [enabled by default]
--
>> kernel/profile.c:133:8: warning: excess elements in struct initializer [enabled by default]
>> kernel/profile.c:133:8: warning: (near initialization for 'task_exit_notifier.rwsem') [enabled by default]
>> kernel/profile.c:133:8: warning: excess elements in struct initializer [enabled by default]
>> kernel/profile.c:133:8: warning: (near initialization for 'task_exit_notifier.rwsem') [enabled by default]
>> kernel/profile.c:135:8: warning: excess elements in struct initializer [enabled by default]
>> kernel/profile.c:135:8: warning: (near initialization for 'munmap_notifier.rwsem') [enabled by default]
>> kernel/profile.c:135:8: warning: excess elements in struct initializer [enabled by default]
>> kernel/profile.c:135:8: warning: (near initialization for 'munmap_notifier.rwsem') [enabled by default]
--
>> kernel/cgroup.c:90:8: warning: excess elements in struct initializer [enabled by default]
>> kernel/cgroup.c:90:8: warning: (near initialization for 'css_set_rwsem') [enabled by default]
>> kernel/cgroup.c:90:8: warning: excess elements in struct initializer [enabled by default]
>> kernel/cgroup.c:90:8: warning: (near initialization for 'css_set_rwsem') [enabled by default]
   kernel/cgroup.c: In function 'cgroup_mount':
   kernel/cgroup.c:1749:13: warning: 'root' may be used uninitialized in this function [-Wuninitialized]

vim +14 init/init_task.c

a4a2eb490 Thomas Gleixner 2012-05-03   1  #include <linux/init_task.h>
a4a2eb490 Thomas Gleixner 2012-05-03   2  #include <linux/export.h>
a4a2eb490 Thomas Gleixner 2012-05-03   3  #include <linux/mqueue.h>
a4a2eb490 Thomas Gleixner 2012-05-03   4  #include <linux/sched.h>
cf4aebc29 Clark Williams  2013-02-07   5  #include <linux/sched/sysctl.h>
8bd75c77b Clark Williams  2013-02-07   6  #include <linux/sched/rt.h>
a4a2eb490 Thomas Gleixner 2012-05-03   7  #include <linux/init.h>
a4a2eb490 Thomas Gleixner 2012-05-03   8  #include <linux/fs.h>
a4a2eb490 Thomas Gleixner 2012-05-03   9  #include <linux/mm.h>
a4a2eb490 Thomas Gleixner 2012-05-03  10  
a4a2eb490 Thomas Gleixner 2012-05-03  11  #include <asm/pgtable.h>
a4a2eb490 Thomas Gleixner 2012-05-03  12  #include <asm/uaccess.h>
a4a2eb490 Thomas Gleixner 2012-05-03  13  
a4a2eb490 Thomas Gleixner 2012-05-03 @14  static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
a4a2eb490 Thomas Gleixner 2012-05-03  15  static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
a4a2eb490 Thomas Gleixner 2012-05-03  16  
a4a2eb490 Thomas Gleixner 2012-05-03  17  /* Initial task structure */
a4a2eb490 Thomas Gleixner 2012-05-03  18  struct task_struct init_task = INIT_TASK(init_task);
a4a2eb490 Thomas Gleixner 2012-05-03  19  EXPORT_SYMBOL(init_task);
a4a2eb490 Thomas Gleixner 2012-05-03  20  
a4a2eb490 Thomas Gleixner 2012-05-03  21  /*
a4a2eb490 Thomas Gleixner 2012-05-03  22   * Initial thread structure. Alignment of this is handled by a special

:::::: The code at line 14 was first introduced by commit
:::::: a4a2eb490e38aaff61eafcb8cde6725ad1be22ab init_task: Create generic init_task instance

:::::: TO: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

---
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@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




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