From patchwork Wed Apr 9 01:28:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gang ZHAO X-Patchwork-Id: 3952021 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 AA445BFF02 for ; Wed, 9 Apr 2014 01:28:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D8A3820497 for ; Wed, 9 Apr 2014 01:28:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1E43C20495 for ; Wed, 9 Apr 2014 01:28:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758074AbaDIB2w (ORCPT ); Tue, 8 Apr 2014 21:28:52 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34251 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756235AbaDIB2v (ORCPT ); Tue, 8 Apr 2014 21:28:51 -0400 Received: by mail-pa0-f53.google.com with SMTP id ld10so1787857pab.40 for ; Tue, 08 Apr 2014 18:28:50 -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=DpkLolnT0E6TMUAS+lMn8gzg3LNbHxPhUxEvrfws6FQ=; b=s6LlOmvLg0xUNCbgaj+scnzjx0YTJjZMikq/kfeiTqh7f0hVbMo9Il4S0903Fc0yox 98cSjA1B25mPD8O+YjQ4z4jKEWPtErTkSK/khgvmwIt1jiCt3scLGc1LMiq6q4LewrG/ L2skYbWwTAyYpZyOUqoAy0mt/O9PhrOmEyANBV+JeK0Sj5omi9soxFEdnSXUXq4afcIq 8XQgIwPaI3/BVFzlzMDv2UfrM5gI8DjxQiu5zv5HoVEtKGqZNVn/P6wwPox5RZNxb/T4 r4/rwIajPqQvZjizCgG9ZGcXnxsu8cip2lrzUgRu++roLKaQoS80X2l4wNQylIS4jGbF GRAQ== X-Received: by 10.68.225.164 with SMTP id rl4mr552252pbc.158.1397006930935; Tue, 08 Apr 2014 18:28:50 -0700 (PDT) Received: from localhost.localdomain ([61.157.126.15]) by mx.google.com with ESMTPSA id tu3sm17711799pab.1.2014.04.08.18.28.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Apr 2014 18:28:50 -0700 (PDT) From: "Zhao, Gang" To: Cc: Johannes Berg Subject: [PATCH 2/8] mac80211: fix possible compile warning in debugfs.h Date: Wed, 9 Apr 2014 09:28:07 +0800 Message-Id: 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.h:5:28: warning: ‘struct ieee80211_local’ declared inside parameter list [enabled by default] void debugfs_hw_add(struct ieee80211_local *local); ^ net/mac80211/debugfs.h:5:28: 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.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/mac80211/debugfs.h b/net/mac80211/debugfs.h index 214ed4e..60c35af 100644 --- a/net/mac80211/debugfs.h +++ b/net/mac80211/debugfs.h @@ -1,6 +1,8 @@ #ifndef __MAC80211_DEBUGFS_H #define __MAC80211_DEBUGFS_H +#include "ieee80211_i.h" + #ifdef CONFIG_MAC80211_DEBUGFS void debugfs_hw_add(struct ieee80211_local *local); int __printf(4, 5) mac80211_format_buffer(char __user *userbuf, size_t count,