Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1490896

[PATCH v2 16/17] staging: wlan-ng: avoid new typedef: p80211item_unk4096_t

From Sergio Paracuellos <sergio.paracuellos@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v2 16/17] staging: wlan-ng: avoid new typedef: p80211item_unk4096_t
Date 2016-09-25 15:40 +0200
Message-ID <slhOV-7ag-13@gated-at.bofh.it> (permalink)
References <slf0K-5rI-7@gated-at.bofh.it> <slhOV-7ag-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This patch fixes the following checkpatch.pl warning in p80211types.h:
WARNING: do not add new typedefs

It applies for typedef p80211item_unk4096_t

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/wlan-ng/p80211metastruct.h | 4 ++--
 drivers/staging/wlan-ng/p80211types.h      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/wlan-ng/p80211metastruct.h b/drivers/staging/wlan-ng/p80211metastruct.h
index 0b18c19..850d897 100644
--- a/drivers/staging/wlan-ng/p80211metastruct.h
+++ b/drivers/staging/wlan-ng/p80211metastruct.h
@@ -246,7 +246,7 @@ struct p80211msg_p2req_ramdl_write {
 	u8 devname[WLAN_DEVNAMELEN_MAX];
 	struct p80211item_uint32 addr;
 	struct p80211item_uint32 len;
-	p80211item_unk4096_t data;
+	struct p80211item_unk4096 data;
 	struct p80211item_uint32 resultcode;
 } __packed;
 
@@ -264,7 +264,7 @@ struct p80211msg_p2req_flashdl_write {
 	u8 devname[WLAN_DEVNAMELEN_MAX];
 	struct p80211item_uint32 addr;
 	struct p80211item_uint32 len;
-	p80211item_unk4096_t data;
+	struct p80211item_unk4096 data;
 	struct p80211item_uint32 resultcode;
 } __packed;
 
diff --git a/drivers/staging/wlan-ng/p80211types.h b/drivers/staging/wlan-ng/p80211types.h
index 921b376..8fc733f 100644
--- a/drivers/staging/wlan-ng/p80211types.h
+++ b/drivers/staging/wlan-ng/p80211types.h
@@ -326,12 +326,12 @@ struct p80211item_unk1024 {
 } __packed;
 
 /* message data item for UNK 4096, namely p2 download chunks */
-typedef struct p80211item_unk4096 {
+struct p80211item_unk4096 {
 	u32 did;
 	u16 status;
 	u16 len;
 	u8 data[4096];
-} __packed p80211item_unk4096_t;
+} __packed;
 
 struct catlistitem;
 
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 04/20] staging: wlan-ng: avoid new typedef: p80211pstrd_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-23 16:00 +0200
  Re: [PATCH 04/20] staging: wlan-ng: avoid new typedef: p80211pstrd_t Greg KH <gregkh@linuxfoundation.org> - 2016-09-25 12:40 +0200
    [PATCH v2 03/17] staging: wlan-ng: avoid new typedef: p80211pstr6_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 14/17] staging: wlan-ng: avoid new typedef: p80211item_unk392_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 08/17] staging: wlan-ng: avoid new typedef: p80211itemd_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 02/17] staging: wlan-ng: avoid new typedef: p80211pstr255_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 16/17] staging: wlan-ng: avoid new typedef: p80211item_unk4096_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 11/17] staging: wlan-ng: avoid new typedef: p80211item_pstr14_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 13/17] staging: wlan-ng: avoid new typedef: p80211item_pstr255_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 10/17] staging: wlan-ng: avoid new typedef: p80211item_pstr6_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 05/17] staging: wlan-ng: avoid new typedef: p80211pstr32_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 06/17] staging: wlan-ng: avoid new typedef: p80211macarray_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 17/17] staging: wlan-ng: fix block comments style errors Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
      Re: [PATCH v2 17/17] staging: wlan-ng: fix block comments style  errors Christoph Carlsen <christoph.carlsen@fff.in.tum.de> - 2016-09-25 16:00 +0200
    [PATCH v2 07/17] staging: wlan-ng: avoid new typedef: p80211item_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 15/17] staging: wlan-ng: avoid new typedef: p80211item_unk1024_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 01/17] staging: wlan-ng: avoid new typedef: p80211pstrd_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
    [PATCH v2 00/17] staging: wlan-ng: fix some style issues in p80211types.h Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
      [PATCH v2 04/17] staging: wlan-ng: avoid new typedef: p80211pstr14_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
      [PATCH v2 09/17] staging: wlan-ng: avoid new typedef: p80211item_uint32_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200
      [PATCH v2 12/17] staging: wlan-ng: avoid new typedef: p80211item_pstr32_t Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-09-25 15:40 +0200

csiph-web