From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Kirsher Subject: [PATCH 2/7] x86: Silence initializer-overrides warnings Date: Fri, 19 Sep 2014 08:29:35 -0700 Message-ID: <1411140580-20909-3-git-send-email-jeffrey.t.kirsher@intel.com> References: <1411140580-20909-1-git-send-email-jeffrey.t.kirsher@intel.com> Return-path: In-Reply-To: <1411140580-20909-1-git-send-email-jeffrey.t.kirsher@intel.com> Sender: linux-kernel-owner@vger.kernel.org To: sparse@chrisli.org Cc: Mark Rustad , linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Brian Norris , Jeff Kirsher List-Id: linux-sparse@vger.kernel.org From: Mark Rustad Since the syscall table intentionally uses override initialization, simply silence those warnings. CC: Thomas Gleixner CC: Ingo Molnar CC: "H. Peter Anvin" CC: CC: Brian Norris Signed-off-by: Mark Rustad Signed-off-by: Jeff Kirsher --- arch/x86/ia32/syscall_ia32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/ia32/syscall_ia32.c b/arch/x86/ia32/syscall_ia32.c index 4754ba0..7bc553b 100644 --- a/arch/x86/ia32/syscall_ia32.c +++ b/arch/x86/ia32/syscall_ia32.c @@ -15,6 +15,7 @@ typedef void (*sys_call_ptr_t)(void); extern void compat_ni_syscall(void); +DIAG_PUSH DIAG_CLANG_IGNORE(initializer-overrides) const sys_call_ptr_t ia32_sys_call_table[__NR_ia32_syscall_max+1] = { /* * Smells like a compiler bug -- it doesn't work @@ -23,3 +24,4 @@ const sys_call_ptr_t ia32_sys_call_table[__NR_ia32_syscall_max+1] = { [0 ... __NR_ia32_syscall_max] = &compat_ni_syscall, #include }; +DIAG_POP -- 1.9.3