From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933290AbcI1QaB (ORCPT ); Wed, 28 Sep 2016 12:30:01 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33778 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932882AbcI1Q3L (ORCPT ); Wed, 28 Sep 2016 12:29:11 -0400 From: Sergio Paracuellos To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/87] staging: wlang-ng: avoid new typedef: hfa384x_bytestr32_t Date: Wed, 28 Sep 2016 18:27:43 +0200 Message-Id: <1475080149-16658-2-git-send-email-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475080149-16658-1-git-send-email-sergio.paracuellos@gmail.com> References: <1475080149-16658-1-git-send-email-sergio.paracuellos@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the following checkpatch.pl warning in hfa384x.h: WARNING: do not add new typedefs It applies for typedef hfa384x_bytestr32_t Signed-off-by: Sergio Paracuellos Signed-off-by: Sergio Paracuellos --- drivers/staging/wlan-ng/hfa384x.h | 10 +++++----- drivers/staging/wlan-ng/prism2sta.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h index 4cf4796..5df4e1f 100644 --- a/drivers/staging/wlan-ng/hfa384x.h +++ b/drivers/staging/wlan-ng/hfa384x.h @@ -356,10 +356,10 @@ struct hfa384x_bytestr { u8 data[0]; } __packed; -typedef struct hfa384x_bytestr32 { +struct hfa384x_bytestr32 { u16 len; u8 data[32]; -} __packed hfa384x_bytestr32_t; +} __packed; /*-------------------------------------------------------------------- Configuration Record Structures: @@ -398,7 +398,7 @@ struct hfa384x_bytestr { typedef struct hfa384x_HostScanRequest_data { u16 channelList; u16 txRate; - hfa384x_bytestr32_t ssid; + struct hfa384x_bytestr32 ssid; } __packed hfa384x_HostScanRequest_data_t; /*-- Configuration Record: JoinRequest (data portion only) --*/ @@ -643,7 +643,7 @@ struct hfa384x_bytestr { u8 bssid[WLAN_BSSID_LEN]; u16 bcnint; u16 capinfo; - hfa384x_bytestr32_t ssid; + struct hfa384x_bytestr32 ssid; u8 supprates[10]; /* 802.11 info element */ u16 proberesp_rate; } __packed hfa384x_ScanResultSub_t; @@ -678,7 +678,7 @@ struct hfa384x_bytestr { u8 bssid[WLAN_BSSID_LEN]; u16 bcnint; u16 capinfo; - hfa384x_bytestr32_t ssid; + struct hfa384x_bytestr32 ssid; u8 supprates[10]; /* 802.11 info element */ u16 proberesp_rate; u16 atim; diff --git a/drivers/staging/wlan-ng/prism2sta.c b/drivers/staging/wlan-ng/prism2sta.c index a39b294..ec51db2 100644 --- a/drivers/staging/wlan-ng/prism2sta.c +++ b/drivers/staging/wlan-ng/prism2sta.c @@ -1171,7 +1171,7 @@ void prism2sta_processing_defer(struct work_struct *data) { hfa384x_t *hw = container_of(data, struct hfa384x, link_bh); struct wlandevice *wlandev = hw->wlandev; - hfa384x_bytestr32_t ssid; + struct hfa384x_bytestr32 ssid; int result; /* First let's process the auth frames */ @@ -1914,7 +1914,7 @@ void prism2sta_commsqual_defer(struct work_struct *data) { hfa384x_t *hw = container_of(data, struct hfa384x, commsqual_bh); struct wlandevice *wlandev = hw->wlandev; - hfa384x_bytestr32_t ssid; + struct hfa384x_bytestr32 ssid; struct p80211msg_dot11req_mibget msg; struct p80211item_uint32 *mibitem = (struct p80211item_uint32 *) &msg.mibattribute.data; -- 1.9.1