From patchwork Fri Sep 19 15:29:38 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: 4938351 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 0F533BEEA5 for ; Fri, 19 Sep 2014 15:30:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C897C20200 for ; Fri, 19 Sep 2014 15:30:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 14073201F5 for ; Fri, 19 Sep 2014 15:30:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756741AbaISPaQ (ORCPT ); Fri, 19 Sep 2014 11:30:16 -0400 Received: from mga09.intel.com ([134.134.136.24]:49352 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756738AbaISPaQ (ORCPT ); Fri, 19 Sep 2014 11:30:16 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 19 Sep 2014 08:23:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,555,1406617200"; d="scan'208";a="605437220" 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:50 -0700 From: Jeff Kirsher To: sparse@chrisli.org Cc: Mark Rustad , linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org, Oleg Nesterov , Andrew Morton , Geert Uytterhoeven , Richard Weinberger , Brian Norris , Jeff Kirsher Subject: [PATCH 5/7] signal: Silence nested-externs warnings Date: Fri, 19 Sep 2014 08:29:38 -0700 Message-Id: <1411140580-20909-6-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 Silence nested-externs warnings for these, as these nested externs are truly wanted. CC: Oleg Nesterov CC: Andrew Morton CC: Geert Uytterhoeven CC: Richard Weinberger CC: Brian Norris Signed-off-by: Mark Rustad Signed-off-by: Jeff Kirsher --- include/linux/signal.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/signal.h b/include/linux/signal.h index 750196f..e68ae6b 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h @@ -67,7 +67,9 @@ static inline int sigismember(sigset_t *set, int _sig) static inline int sigisemptyset(sigset_t *set) { + DIAG_PUSH DIAG_IGNORE(nested-externs) extern void _NSIG_WORDS_is_unsupported_size(void); + DIAG_POP switch (_NSIG_WORDS) { case 4: return (set->sig[3] | set->sig[2] | @@ -90,7 +92,9 @@ static inline int sigisemptyset(sigset_t *set) #define _SIG_SET_BINOP(name, op) \ static inline void name(sigset_t *r, const sigset_t *a, const sigset_t *b) \ { \ + DIAG_PUSH DIAG_IGNORE(nested-externs) \ extern void _NSIG_WORDS_is_unsupported_size(void); \ + DIAG_POP \ unsigned long a0, a1, a2, a3, b0, b1, b2, b3; \ \ switch (_NSIG_WORDS) { \ @@ -128,7 +132,9 @@ _SIG_SET_BINOP(sigandnsets, _sig_andn) #define _SIG_SET_OP(name, op) \ static inline void name(sigset_t *set) \ { \ + DIAG_PUSH DIAG_IGNORE(nested-externs) \ extern void _NSIG_WORDS_is_unsupported_size(void); \ + DIAG_POP \ \ switch (_NSIG_WORDS) { \ case 4: set->sig[3] = op(set->sig[3]); \