Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752758AbbD0F12 (ORCPT ); Mon, 27 Apr 2015 01:27:28 -0400 Received: from mail1.windriver.com ([147.11.146.13]:49542 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751490AbbD0F1Y (ORCPT ); Mon, 27 Apr 2015 01:27:24 -0400 From: Paul Gortmaker To: CC: Greg Kroah-Hartman , Larry Finger , Florian Schilhabel , Jes Sorensen , Paul Gortmaker Subject: [PATCH 0/8] staging/rtl8xxx: delete ieee80211 constant duplication Date: Mon, 27 Apr 2015 01:25:33 -0400 Message-ID: <1430112341-21402-1-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.2.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3095 Lines: 60 While looking at a non-staging wifi driver, I was searching for a constant definition for an error code, and in addition to the expected one living in the main include dir, I found a whole bunch of local copies in the staging dir rtl8xxx wifi drivers. This duplication covers the families of WLAN_STATUS_ and WLAN_REASON_ values. While one can understand that these things were wholesale copied at one point to simplify out of tree building, we don't want duplicated stuff for drivers that are in tree. Even if they are in staging, they will need cleanups like this if they ever want to get out of staging. Some could be removed and trivially replaced with the associated include of but for a couple of others a couple of struct fields had to be renamed to align with the main include first, and a struct namespace collision between the main include and the local ones had to be resolved to allow the duplicate constant removal as well. Compile tested only, but the changes seem trivial enough so as to be presumably zero runtime impact (famous last words....) --- Paul Gortmaker (8): rtl8188eu: don't duplicate ieee80211 constants for status/reason rtl8712: don't duplicate ieee80211 constants for status/reason rtl8192u: don't trample on struct namespace rtl8192u: promote auth_mode to a full 8 bits rtl8192u: align local ieee80211_wmm_ac_param struct fields with global rtl8192u: don't duplicate ieee80211 constants for status/auth/reason rtl8192u: delete another embedded instance of generic reason codes rtl8192e: delete local copy of iee80211 reason codes. drivers/staging/rtl8188eu/core/rtw_ap.c | 2 + drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 10 +- drivers/staging/rtl8188eu/core/rtw_recv.c | 2 + drivers/staging/rtl8188eu/include/ieee80211.h | 29 +--- drivers/staging/rtl8188eu/include/wifi.h | 77 ---------- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 2 + drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 3 +- drivers/staging/rtl8192e/rtllib.h | 39 ----- drivers/staging/rtl8192e/rtllib_softmac.c | 3 +- drivers/staging/rtl8192u/ieee80211/ieee80211.h | 171 +++------------------ .../rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 10 +- .../rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 26 ++-- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 76 ++++----- .../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 32 ++-- drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c | 14 +- .../staging/rtl8192u/ieee80211/rtl819x_BAProc.c | 48 +++--- drivers/staging/rtl8192u/r8192U_core.c | 12 +- drivers/staging/rtl8712/ieee80211.h | 29 ---- 18 files changed, 150 insertions(+), 435 deletions(-) -- 2.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/