From patchwork Fri Sep 19 15:29:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kirsher, Jeffrey T" X-Patchwork-Id: 4938601 Return-Path: X-Original-To: patchwork-linux-sparse@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 19185BEEA5 for ; Fri, 19 Sep 2014 15:36:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6EB5A20108 for ; Fri, 19 Sep 2014 15:35:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F6C220142 for ; Fri, 19 Sep 2014 15:35:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756553AbaISPc0 (ORCPT ); Fri, 19 Sep 2014 11:32:26 -0400 Received: from mga02.intel.com ([134.134.136.20]:60855 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757219AbaISPav (ORCPT ); Fri, 19 Sep 2014 11:30:51 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 19 Sep 2014 08:30:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,555,1406617200"; d="scan'208";a="605437166" Received: from skhowaja-mobl2.amr.corp.intel.com (HELO jtkirshe-mobl.amr.corp.intel.com) ([10.254.77.155]) by orsmga002.jf.intel.com with ESMTP; 19 Sep 2014 08:29:44 -0700 From: Jeff Kirsher To: sparse@chrisli.org Cc: Mark Rustad , linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , , Brian Norris , 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> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1411140580-20909-1-git-send-email-jeffrey.t.kirsher@intel.com> References: <1411140580-20909-1-git-send-email-jeffrey.t.kirsher@intel.com> Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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