All of lore.kernel.org
 help / color / mirror / Atom feed
* [djwong-xfs:btree-private-unions 52/72] include/linux/mm.h:526:22: error: missing initializer for field 'open' of 'const struct vm_operations_struct'
@ 2020-03-12 14:32 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-12 14:32 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 18524 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git btree-private-unions
head:   30d91fbcef11ed07350f943fd3f695e0fb0635dd
commit: 35137236b91e958ca683fd4a045a29c0b5310938 [52/72] xfs: don't crash with assfail
config: x86_64-randconfig-s1-20200312 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
        git checkout 35137236b91e958ca683fd4a045a29c0b5310938
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

   In file included from fs///attr.c:11:0:
   include/linux/mm.h: In function 'vma_init':
>> include/linux/mm.h:526:22: warning: missing initializer for field 'open' of 'const struct vm_operations_struct' [-Wmissing-field-initializers]
     static const struct vm_operations_struct dummy_vm_ops = {};
                         ^
   include/linux/mm.h:463:9: note: 'open' declared here
     void (*open)(struct vm_area_struct * area);
            ^
   In file included from include/linux/fs.h:9:0,
                    from include/linux/huge_mm.h:8,
                    from include/linux/mm.h:567,
                    from fs///attr.c:11:
   include/linux/path.h: In function 'path_put_init':
>> include/linux/path.h:24:18: warning: missing initializer for field 'mnt' of 'struct path' [-Wmissing-field-initializers]
     *path = (struct path) { };
                     ^
   include/linux/path.h:9:19: note: 'mnt' declared here
     struct vfsmount *mnt;
                      ^
--
   In file included from include/linux/bvec.h:13:0,
                    from include/linux/blk_types.h:10,
                    from include/linux/iomap.h:7,
                    from fs///iomap/trace.c:5:
   include/linux/mm.h: In function 'vma_init':
>> include/linux/mm.h:526:22: error: missing initializer for field 'open' of 'const struct vm_operations_struct' [-Werror=missing-field-initializers]
     static const struct vm_operations_struct dummy_vm_ops = {};
                         ^
   include/linux/mm.h:463:9: note: 'open' declared here
     void (*open)(struct vm_area_struct * area);
            ^
   In file included from include/linux/fs.h:9:0,
                    from include/linux/huge_mm.h:8,
                    from include/linux/mm.h:567,
                    from include/linux/bvec.h:13,
                    from include/linux/blk_types.h:10,
                    from include/linux/iomap.h:7,
                    from fs///iomap/trace.c:5:
   include/linux/path.h: In function 'path_put_init':
>> include/linux/path.h:24:18: error: missing initializer for field 'mnt' of 'struct path' [-Werror=missing-field-initializers]
     *path = (struct path) { };
                     ^
   include/linux/path.h:9:19: note: 'mnt' declared here
     struct vfsmount *mnt;
                      ^
   In file included from include/linux/bpf-cgroup.h:5:0,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/perf_event.h:57,
                    from include/linux/trace_events.h:10,
                    from include/trace/trace_events.h:21,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/bpf.h: In function 'check_and_init_map_lock':
>> include/linux/bpf.h:144:11: error: missing initializer for field 'val' of 'struct bpf_spin_lock' [-Werror=missing-field-initializers]
      (struct bpf_spin_lock){};
              ^
   In file included from include/linux/bpf.h:7:0,
                    from include/linux/bpf-cgroup.h:5,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/perf_event.h:57,
                    from include/linux/trace_events.h:10,
                    from include/trace/trace_events.h:21,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/uapi/linux/bpf.h:3741:8: note: 'val' declared here
     __u32 val;
           ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   fs///iomap/./trace.h: At top level:
>> include/trace/trace_events.h:442:15: error: missing initializer for field 'size' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
>> fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:202:15: note: 'size' declared here
       const int  size;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
>> include/trace/trace_events.h:442:15: error: missing initializer for field 'align' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
>> fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:203:15: note: 'align' declared here
       const int  align;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
>> include/trace/trace_events.h:442:15: error: missing initializer for field 'is_signed' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
>> fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:204:15: note: 'is_signed' declared here
       const int  is_signed;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
>> include/trace/trace_events.h:442:15: error: missing initializer for field 'filter_type' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
>> fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:205:15: note: 'filter_type' declared here
       const int  filter_type;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
>> include/trace/trace_events.h:442:15: error: missing initializer for field 'size' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
>> fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:202:15: note: 'size' declared here
       const int  size;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
>> include/trace/trace_events.h:442:15: error: missing initializer for field 'align' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
>> fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:203:15: note: 'align' declared here
       const int  align;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
>> include/trace/trace_events.h:442:15: error: missing initializer for field 'is_signed' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
>> fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:204:15: note: 'is_signed' declared here
       const int  is_signed;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
>> include/trace/trace_events.h:442:15: error: missing initializer for field 'filter_type' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
>> fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:205:15: note: 'filter_type' declared here
       const int  filter_type;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
>> include/trace/trace_events.h:442:15: error: missing initializer for field 'size' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
   fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:202:15: note: 'size' declared here
       const int  size;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/trace/trace_events.h:442:15: error: missing initializer for field 'align' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
   fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:203:15: note: 'align' declared here
       const int  align;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/trace/trace_events.h:442:15: error: missing initializer for field 'is_signed' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
   fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:204:15: note: 'is_signed' declared here
       const int  is_signed;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/trace/trace_events.h:442:15: error: missing initializer for field 'filter_type' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
   fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:205:15: note: 'filter_type' declared here
       const int  filter_type;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/trace/trace_events.h:442:15: error: missing initializer for field 'type' of 'struct trace_event_fields' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
   fs///iomap/./trace.h:18:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_readpage_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:198:14: note: 'type' declared here
     const char *type;
                 ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/trace/trace_events.h:442:15: error: missing initializer for field 'size' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
   fs///iomap/./trace.h:44:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_page_class,
    ^
   In file included from include/trace/trace_events.h:21:0,
                    from include/trace/define_trace.h:102,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/linux/trace_events.h:202:15: note: 'size' declared here
       const int  size;
                  ^
   In file included from include/trace/define_trace.h:102:0,
                    from fs///iomap/trace.h:191,
                    from fs///iomap/trace.c:12:
   include/trace/trace_events.h:442:15: error: missing initializer for field 'align' of 'struct <anonymous>' [-Werror=missing-field-initializers]
    static struct trace_event_fields trace_event_fields_##call[] = { \
                  ^
   fs///iomap/./trace.h:44:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
    DECLARE_EVENT_CLASS(iomap_page_class,
..

vim +526 include/linux/mm.h

^1da177e4c3f415 Linus Torvalds     2005-04-16  523  
027232da7c7c1c7 Kirill A. Shutemov 2018-07-26  524  static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm)
027232da7c7c1c7 Kirill A. Shutemov 2018-07-26  525  {
bfd40eaff5abb9f Kirill A. Shutemov 2018-07-26 @526  	static const struct vm_operations_struct dummy_vm_ops = {};
bfd40eaff5abb9f Kirill A. Shutemov 2018-07-26  527  
a670468f5e0b5fa Andrew Morton      2018-08-21  528  	memset(vma, 0, sizeof(*vma));
027232da7c7c1c7 Kirill A. Shutemov 2018-07-26  529  	vma->vm_mm = mm;
bfd40eaff5abb9f Kirill A. Shutemov 2018-07-26  530  	vma->vm_ops = &dummy_vm_ops;
027232da7c7c1c7 Kirill A. Shutemov 2018-07-26  531  	INIT_LIST_HEAD(&vma->anon_vma_chain);
027232da7c7c1c7 Kirill A. Shutemov 2018-07-26  532  }
027232da7c7c1c7 Kirill A. Shutemov 2018-07-26  533  

:::::: The code at line 526 was first introduced by commit
:::::: bfd40eaff5abb9f62c8ef94ca13ed0d94a560f10 mm: fix vma_is_anonymous() false-positives

:::::: TO: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38767 bytes --]

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

only message in thread, other threads:[~2020-03-12 14:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-12 14:32 [djwong-xfs:btree-private-unions 52/72] include/linux/mm.h:526:22: error: missing initializer for field 'open' of 'const struct vm_operations_struct' kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.