From patchwork Wed Apr 9 01:28:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gang ZHAO X-Patchwork-Id: 3952041 Return-Path: X-Original-To: patchwork-linux-wireless@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 012ECBFF02 for ; Wed, 9 Apr 2014 01:29:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4534B20497 for ; Wed, 9 Apr 2014 01:29:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7ADFE20495 for ; Wed, 9 Apr 2014 01:29:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758082AbaDIB25 (ORCPT ); Tue, 8 Apr 2014 21:28:57 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:58327 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756235AbaDIB24 (ORCPT ); Tue, 8 Apr 2014 21:28:56 -0400 Received: by mail-pb0-f49.google.com with SMTP id jt11so1802509pbb.36 for ; Tue, 08 Apr 2014 18:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references:mime-version:content-type :content-transfer-encoding; bh=Q9AMf/xELuLlJ2FKwOGgkjX31Jpjq7VBOMCcsomqdCs=; b=jrKPaTD/htE1vXYw/evto9BuZ/9OxKZUWuTPcyW0honniXLz4sDpPPLVkqeY3AcAal 1YoYTrjJ4u2VYr07zEqqf4z74ilFQNXay/dWMekV6gKa6/xa52dWGUo7ld5gbcIfGpGc unGZwuT1MwrdXXl3rYnsJS+07oKEOLSU0MeRyLedFtnNZjALWTz2MLZir3QVkjoUoTuM 3n54pqTiZz+jvMFY16UNYPJXJ3ME27+guw4ERm0SnFm6Rz4o4lSFas1MgzH0MIBP2SID BZ9m39PLBUYhW+KI9PcgXw1fHNdECoOWm7nFps2qcaCZ8sRQI7v1RIvVcB5BR8U2nLM+ R7hg== X-Received: by 10.66.122.101 with SMTP id lr5mr8381096pab.130.1397006935908; Tue, 08 Apr 2014 18:28:55 -0700 (PDT) Received: from localhost.localdomain ([61.157.126.15]) by mx.google.com with ESMTPSA id tu3sm17711799pab.1.2014.04.08.18.28.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Apr 2014 18:28:55 -0700 (PDT) From: "Zhao, Gang" To: Cc: Johannes Berg Subject: [PATCH 4/8] mac80211: fix possible compile warning in debugfs_netdev.h Date: Wed, 9 Apr 2014 09:28:09 +0800 Message-Id: <9709360a8341770ec487d9033bfa17fdebbb4bf0.1397006688.git.gamerh2o@gmail.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 The warning doesn't show up due to duplicate including, but it's worth fixing it. net/mac80211//debugfs_netdev.h:7:42: warning: ‘struct ieee80211_sub_if_data’ declared inside parameter list [enabled by default] void ieee80211_debugfs_add_netdev(struct ieee80211_sub_if_data *sdata); ^ net/mac80211//debugfs_netdev.h:7:42: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] Signed-off-by: Zhao, Gang --- net/mac80211/debugfs_netdev.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/mac80211/debugfs_netdev.h b/net/mac80211/debugfs_netdev.h index 79025e7..9f5501a 100644 --- a/net/mac80211/debugfs_netdev.h +++ b/net/mac80211/debugfs_netdev.h @@ -3,6 +3,8 @@ #ifndef __IEEE80211_DEBUGFS_NETDEV_H #define __IEEE80211_DEBUGFS_NETDEV_H +#include "ieee80211_i.h" + #ifdef CONFIG_MAC80211_DEBUGFS void ieee80211_debugfs_add_netdev(struct ieee80211_sub_if_data *sdata); void ieee80211_debugfs_remove_netdev(struct ieee80211_sub_if_data *sdata);