From patchwork Wed Apr 9 01:28:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gang ZHAO X-Patchwork-Id: 3952031 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 E4CDBBFF02 for ; Wed, 9 Apr 2014 01:28:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3566320497 for ; Wed, 9 Apr 2014 01:28:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 605ED20495 for ; Wed, 9 Apr 2014 01:28:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758076AbaDIB2y (ORCPT ); Tue, 8 Apr 2014 21:28:54 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:43998 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756235AbaDIB2x (ORCPT ); Tue, 8 Apr 2014 21:28:53 -0400 Received: by mail-pa0-f42.google.com with SMTP id fb1so1814895pad.29 for ; Tue, 08 Apr 2014 18:28:53 -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=G4zs9yxVYuXt9VPC47O9Zsn+k/pozrRtjYs1fucwE3o=; b=uPWpNkBK4PxiZtZL4dg4B1FvKjH12fraBEXaUNtYS0zoIhh+eKwONrpTN44dg73mXT 3Qgj1ysDOq2QokkimLcPLvHknHOJLxQF/TPdFNb+Md+QGL5gG0zstxMOA5LK4LKVCXXW TARJu9qvChPd4LNkcAX2erBY7J7IRpvuM+sVe/Cir5oIMOiIfvOYD0iEeY9Y82zyEKS0 KnN7tM4Hve9ffQ0MT704A7r/yV+cr1D3dhHukWN6pahh3v5A6HMT2gHCZA1+NY+Z6QM9 E7klLE7GkZef6jgtCjl+XNAx46J00igHHBV5FCtuxzx0eezfsczLM2355SYtuMidHmxT S7WQ== X-Received: by 10.68.228.1 with SMTP id se1mr8330189pbc.43.1397006933452; Tue, 08 Apr 2014 18:28:53 -0700 (PDT) Received: from localhost.localdomain ([61.157.126.15]) by mx.google.com with ESMTPSA id tu3sm17711799pab.1.2014.04.08.18.28.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Apr 2014 18:28:52 -0700 (PDT) From: "Zhao, Gang" To: Cc: Johannes Berg Subject: [PATCH 3/8] mac80211: fix possible compile warning in michael.h Date: Wed, 9 Apr 2014 09:28:08 +0800 Message-Id: <0c2fa5b7a8724d0ee405afd05f393af95e65116c.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//michael.h:22:4: warning: ‘struct ieee80211_hdr’ declared inside parameter list [enabled by default] const u8 *data, size_t data_len, u8 *mic); ^ net/mac80211//michael.h:22:4: 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/michael.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/michael.h b/net/mac80211/michael.h index 3b848da..b259547 100644 --- a/net/mac80211/michael.h +++ b/net/mac80211/michael.h @@ -10,7 +10,7 @@ #ifndef MICHAEL_H #define MICHAEL_H -#include +#include #define MICHAEL_MIC_LEN 8