From patchwork Thu Apr 20 06:55:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 9689695 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 78E1B600C8 for ; Thu, 20 Apr 2017 06:55:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68B152839C for ; Thu, 20 Apr 2017 06:55:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A8E42845B; Thu, 20 Apr 2017 06:55:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD01E2839C for ; Thu, 20 Apr 2017 06:55:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967412AbdDTGyp (ORCPT ); Thu, 20 Apr 2017 02:54:45 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:44269 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S942511AbdDTGyl (ORCPT ); Thu, 20 Apr 2017 02:54:41 -0400 Received: from trochilidae.lan (unknown [IPv6:2601:602:8801:c3e0::edf]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 298605C1BA7; Thu, 20 Apr 2017 08:54:24 +0200 (CEST) From: Stefan Agner To: johannes@sipsolutions.net Cc: davem@davemloft.net, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH] nl80211: fix enumeration type Date: Wed, 19 Apr 2017 23:55:13 -0700 Message-Id: <20170420065513.1930-1-stefan@agner.ch> X-Mailer: git-send-email 2.12.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1492671265; bh=ecO8DMrjdm9mjTceeWN37IAnr8zFcq0TCCfBNF/GJK0=; h=From:To:Cc:Subject:Date:Message-Id; b=CLYsuaEBzdtwY+5AuR86AijGiddfEkVM3yeqVwnePuWMkM3M4RkPWTECWIDiM09kHqYfbG/E2ZHie3fFx24eBIhbPxbkKJtUg1Mb75pXqtPyR1Eb3o4Lf1aU3womPen3wJhw3x+yfJP36aqj7ReV050WQ2XTjtLKoFxF/lOJkSs= Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use type enum nl80211_rate_info for bitrate information. This fixes a warning when compiling with clang: warning: implicit conversion from enumeration type 'enum nl80211_rate_info' to different enumeration type 'enum nl80211_attrs' Signed-off-by: Stefan Agner --- net/wireless/nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 2312dc2ffdb9..9af21a21ea6b 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -4151,7 +4151,7 @@ static bool nl80211_put_sta_rate(struct sk_buff *msg, struct rate_info *info, struct nlattr *rate; u32 bitrate; u16 bitrate_compat; - enum nl80211_attrs rate_flg; + enum nl80211_rate_info rate_flg; rate = nla_nest_start(msg, attr); if (!rate)