[linux-stable-rc:queue/4.9 956/9999] include/linux/bits.h:6:19: error: initialized field overwritten
From: kernel test robot
Date: Wed Mar 02 2022 - 20:16:14 EST
Hi Will,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/4.9
head: 443d6630b05c3eaff71448a86e4b776194f317ef
commit: b995196b9da4e2486d50e132539c848a60ea88da [956/9999] locking/atomics, asm-generic: Move some macros from <linux/bitops.h> to a new <linux/bits.h> file
config: i386-randconfig-a016-20211101 (https://download.01.org/0day-ci/archive/20220303/202203030955.LTwFROCM-lkp@xxxxxxxxx/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=b995196b9da4e2486d50e132539c848a60ea88da
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc queue/4.9
git checkout b995196b9da4e2486d50e132539c848a60ea88da
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/i915/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/i915_pci.c:69:15: error: initialized field overwritten [-Werror=override-init]
.num_pipes = 2, /* legal, last one wins */
^
drivers/gpu/drm/i915/i915_pci.c:69:15: note: (near initialization for 'intel_i830_info.num_pipes')
drivers/gpu/drm/i915/i915_pci.c:79:15: error: initialized field overwritten [-Werror=override-init]
.num_pipes = 2, /* legal, last one wins */
^
drivers/gpu/drm/i915/i915_pci.c:79:15: note: (near initialization for 'intel_i85x_info.num_pipes')
In file included from include/linux/bitops.h:4:0,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/io.h:23,
from include/video/vga.h:21,
from include/linux/vgaarb.h:34,
from drivers/gpu/drm/i915/i915_pci.c:26:
>> include/linux/bits.h:6:19: error: initialized field overwritten [-Werror=override-init]
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:161:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING,
^~~~~~~~~~~
include/linux/bits.h:6:19: note: (near initialization for 'intel_g45_info.ring_mask')
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:161:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING,
^~~~~~~~~~~
>> include/linux/bits.h:6:19: error: initialized field overwritten [-Werror=override-init]
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:170:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING,
^~~~~~~~~~~
include/linux/bits.h:6:19: note: (near initialization for 'intel_gm45_info.ring_mask')
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:170:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING,
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:248:15: error: initialized field overwritten [-Werror=override-init]
.num_pipes = 0, /* legal, last one wins */
^
drivers/gpu/drm/i915/i915_pci.c:248:15: note: (near initialization for 'intel_ivybridge_q_info.num_pipes')
In file included from include/linux/bitops.h:4:0,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/io.h:23,
from include/video/vga.h:21,
from include/linux/vgaarb.h:34,
from drivers/gpu/drm/i915/i915_pci.c:26:
>> include/linux/bits.h:6:19: error: initialized field overwritten [-Werror=override-init]
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:283:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES,
^~~~~~~~~~~~
include/linux/bits.h:6:19: note: (near initialization for 'intel_haswell_info.ring_mask')
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:283:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: error: initialized field overwritten [-Werror=override-init]
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:283:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: note: (near initialization for 'intel_haswell_info.has_rc6p')
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:283:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES,
^~~~~~~~~~~~
In file included from include/linux/bitops.h:4:0,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/io.h:23,
from include/video/vga.h:21,
from include/linux/vgaarb.h:34,
from drivers/gpu/drm/i915/i915_pci.c:26:
>> include/linux/bits.h:6:19: error: initialized field overwritten [-Werror=override-init]
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:294:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
include/linux/bits.h:6:19: note: (near initialization for 'intel_broadwell_info.ring_mask')
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:294:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: error: initialized field overwritten [-Werror=override-init]
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:294:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: note: (near initialization for 'intel_broadwell_info.has_rc6p')
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:294:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:295:9: error: initialized field overwritten [-Werror=override-init]
.gen = 8,
^
drivers/gpu/drm/i915/i915_pci.c:295:9: note: (near initialization for 'intel_broadwell_info.gen')
In file included from include/linux/bitops.h:4:0,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/io.h:23,
from include/video/vga.h:21,
from include/linux/vgaarb.h:34,
from drivers/gpu/drm/i915/i915_pci.c:26:
>> include/linux/bits.h:6:19: error: initialized field overwritten [-Werror=override-init]
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:300:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
include/linux/bits.h:6:19: note: (near initialization for 'intel_broadwell_gt3_info.ring_mask')
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:300:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: error: initialized field overwritten [-Werror=override-init]
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:300:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: note: (near initialization for 'intel_broadwell_gt3_info.has_rc6p')
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:300:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:301:9: error: initialized field overwritten [-Werror=override-init]
.gen = 8,
^
drivers/gpu/drm/i915/i915_pci.c:301:9: note: (near initialization for 'intel_broadwell_gt3_info.gen')
In file included from include/linux/bitops.h:4:0,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/io.h:23,
from include/video/vga.h:21,
from include/linux/vgaarb.h:34,
from drivers/gpu/drm/i915/i915_pci.c:26:
>> include/linux/bits.h:6:19: error: initialized field overwritten [-Werror=override-init]
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:303:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING,
^~~~~~~~~~~
include/linux/bits.h:6:19: note: (near initialization for 'intel_broadwell_gt3_info.ring_mask')
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:303:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING,
^~~~~~~~~~~
>> include/linux/bits.h:6:19: error: initialized field overwritten [-Werror=override-init]
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:326:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
include/linux/bits.h:6:19: note: (near initialization for 'intel_skylake_info.ring_mask')
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:326:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: error: initialized field overwritten [-Werror=override-init]
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:326:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: note: (near initialization for 'intel_skylake_info.has_rc6p')
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:326:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:328:9: error: initialized field overwritten [-Werror=override-init]
.gen = 9,
^
drivers/gpu/drm/i915/i915_pci.c:328:9: note: (near initialization for 'intel_skylake_info.gen')
In file included from include/linux/bitops.h:4:0,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/io.h:23,
from include/video/vga.h:21,
from include/linux/vgaarb.h:34,
from drivers/gpu/drm/i915/i915_pci.c:26:
>> include/linux/bits.h:6:19: error: initialized field overwritten [-Werror=override-init]
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:335:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
include/linux/bits.h:6:19: note: (near initialization for 'intel_skylake_gt3_info.ring_mask')
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:335:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: error: initialized field overwritten [-Werror=override-init]
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:335:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: note: (near initialization for 'intel_skylake_gt3_info.has_rc6p')
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:335:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:337:9: error: initialized field overwritten [-Werror=override-init]
.gen = 9,
^
drivers/gpu/drm/i915/i915_pci.c:337:9: note: (near initialization for 'intel_skylake_gt3_info.gen')
In file included from include/linux/bitops.h:4:0,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/io.h:23,
from include/video/vga.h:21,
from include/linux/vgaarb.h:34,
from drivers/gpu/drm/i915/i915_pci.c:26:
>> include/linux/bits.h:6:19: error: initialized field overwritten [-Werror=override-init]
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:341:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING,
^~~~~~~~~~~
include/linux/bits.h:6:19: note: (near initialization for 'intel_skylake_gt3_info.ring_mask')
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:341:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING,
^~~~~~~~~~~
>> include/linux/bits.h:6:19: error: initialized field overwritten [-Werror=override-init]
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:370:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
include/linux/bits.h:6:19: note: (near initialization for 'intel_kabylake_info.ring_mask')
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:370:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: error: initialized field overwritten [-Werror=override-init]
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:370:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: note: (near initialization for 'intel_kabylake_info.has_rc6p')
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:370:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:372:9: error: initialized field overwritten [-Werror=override-init]
.gen = 9,
^
drivers/gpu/drm/i915/i915_pci.c:372:9: note: (near initialization for 'intel_kabylake_info.gen')
In file included from include/linux/bitops.h:4:0,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/io.h:23,
from include/video/vga.h:21,
from include/linux/vgaarb.h:34,
from drivers/gpu/drm/i915/i915_pci.c:26:
>> include/linux/bits.h:6:19: error: initialized field overwritten [-Werror=override-init]
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:379:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
include/linux/bits.h:6:19: note: (near initialization for 'intel_kabylake_gt3_info.ring_mask')
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:273:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING, \
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:379:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: error: initialized field overwritten [-Werror=override-init]
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:379:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:279:14: note: (near initialization for 'intel_kabylake_gt3_info.has_rc6p')
.has_rc6p = 0 /* RC6p removed-by HSW */, \
^
drivers/gpu/drm/i915/i915_pci.c:289:2: note: in expansion of macro 'HSW_FEATURES'
HSW_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:379:2: note: in expansion of macro 'BDW_FEATURES'
BDW_FEATURES,
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:381:9: error: initialized field overwritten [-Werror=override-init]
.gen = 9,
^
drivers/gpu/drm/i915/i915_pci.c:381:9: note: (near initialization for 'intel_kabylake_gt3_info.gen')
In file included from include/linux/bitops.h:4:0,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/io.h:23,
from include/video/vga.h:21,
from include/linux/vgaarb.h:34,
from drivers/gpu/drm/i915/i915_pci.c:26:
>> include/linux/bits.h:6:19: error: initialized field overwritten [-Werror=override-init]
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:385:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING,
^~~~~~~~~~~
include/linux/bits.h:6:19: note: (near initialization for 'intel_kabylake_gt3_info.ring_mask')
#define BIT(nr) (1UL << (nr))
^
drivers/gpu/drm/i915/i915_drv.h:2732:25: note: in expansion of macro 'BIT'
#define ENGINE_MASK(id) BIT(id)
^~~
drivers/gpu/drm/i915/i915_drv.h:2733:21: note: in expansion of macro 'ENGINE_MASK'
#define RENDER_RING ENGINE_MASK(RCS)
^~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:385:15: note: in expansion of macro 'RENDER_RING'
.ring_mask = RENDER_RING | BSD_RING | BLT_RING | VEBOX_RING | BSD2_RING,
^~~~~~~~~~~
cc1: all warnings being treated as errors
vim +6 include/linux/bits.h
5
> 6 #define BIT(nr) (1UL << (nr))
7 #define BIT_ULL(nr) (1ULL << (nr))
8 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
9 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
10 #define BIT_ULL_MASK(nr) (1ULL << ((nr) % BITS_PER_LONG_LONG))
11 #define BIT_ULL_WORD(nr) ((nr) / BITS_PER_LONG_LONG)
12 #define BITS_PER_BYTE 8
13
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx