From patchwork Fri Sep 19 15:29:37 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: 4938441 Return-Path: X-Original-To: patchwork-linux-sparse@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B79F39F313 for ; Fri, 19 Sep 2014 15:32:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1C69D201F5 for ; Fri, 19 Sep 2014 15:32:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B797201D3 for ; Fri, 19 Sep 2014 15:31:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757311AbaISPaz (ORCPT ); Fri, 19 Sep 2014 11:30:55 -0400 Received: from mga02.intel.com ([134.134.136.20]:47066 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756741AbaISPax (ORCPT ); Fri, 19 Sep 2014 11:30:53 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 19 Sep 2014 08:30:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,555,1406617200"; d="scan'208";a="605437203" 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:47 -0700 From: Jeff Kirsher To: sparse@chrisli.org Cc: Mark Rustad , linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar , Jacob Pan , Srinivas Pandruvada , Peter Zijlstra , "Theodore Ts'o" , Brian Norris , Jeff Kirsher Subject: [PATCH 4/7] bitops: Silence nested-externs warnings Date: Fri, 19 Sep 2014 08:29:37 -0700 Message-Id: <1411140580-20909-5-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 Use the diagnostic control macros to ignore nested-externs warnings in these caes. CC: Ingo Molnar CC: Jacob Pan CC: Srinivas Pandruvada CC: Peter Zijlstra CC: "Theodore Ts'o" CC: Brian Norris Signed-off-by: Mark Rustad Signed-off-by: Jeff Kirsher --- include/linux/bitops.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index cbc5833..0e072bd 100644 --- a/include/linux/bitops.h +++ b/include/linux/bitops.h @@ -36,6 +36,7 @@ extern unsigned long __sw_hweight64(__u64 w); * Provide __deprecated wrappers for the new interface, avoid flag day changes. * We need the ugly external functions to break header recursion hell. */ +DIAG_PUSH DIAG_IGNORE(nested-externs) #ifndef smp_mb__before_clear_bit static inline void __deprecated smp_mb__before_clear_bit(void) { @@ -51,6 +52,7 @@ static inline void __deprecated smp_mb__after_clear_bit(void) __smp_mb__after_atomic(); } #endif +DIAG_POP #define for_each_set_bit(bit, addr, size) \ for ((bit) = find_first_bit((addr), (size)); \