linux-staging.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] staging: rtl8188eu: remove DBG_88E_LEVEL and MSG_88E macros
@ 2021-06-23 23:48 Phillip Potter
  2021-06-23 23:48 ` [PATCH 1/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from os_dep/ioctl_linux.c Phillip Potter
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Phillip Potter @ 2021-06-23 23:48 UTC (permalink / raw)
  To: gregkh; +Cc: Larry.Finger, dan.carpenter, linux-kernel, linux-staging

This patch set removes all callers of the DBG_88E_LEVEL and MSG_88E
macros, then removes the macro definitions themselves. This code does
not follow kernel coding conventions/best practices and it is better
to remove it and ultimately rely upon pre-existing kernel debugging
and logging functionality.

With these macros gone, there is only RT_TRACE to go (and the other
definitions in include/rtw_debug.h) and then the file can be entirely
removed.

Phillip Potter (9):
  staging: rtl8188eu: remove all DBG_88E_LEVEL calls from
    os_dep/ioctl_linux.c
  staging: rtl8188eu: remove all DBG_88E_LEVEL calls from
    core/rtw_mlmw_ext.c
  staging: rtl8188eu: remove all DBG_88E_LEVEL calls from
    core/rtw_ioctl_set.c
  staging: rtl8188eu: remove all DBG_88E_LEVEL calls from
    core/rtw_pwrctrl.c
  staging: rtl8188eu: remove all DBG_88E_LEVEL calls from
    core/rtw_xmit.c
  staging: rtl8188eu: remove DBG_88E_LEVEL macro from
    include/rtw_debug.h
  staging: rtl8188eu: remove MSG_88E call from hal/odm.c
  staging: rtl8188eu: remove MSG_88E calls from hal/usb_halinit.c
  staging: rtl8188eu: remove MSG_88E macro from include/rtw_debug.h

 .../staging/rtl8188eu/core/rtw_ioctl_set.c    |  5 -----
 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 21 -------------------
 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c  |  9 +-------
 drivers/staging/rtl8188eu/core/rtw_xmit.c     |  2 --
 drivers/staging/rtl8188eu/hal/odm.c           |  1 -
 drivers/staging/rtl8188eu/hal/usb_halinit.c   |  7 -------
 drivers/staging/rtl8188eu/include/rtw_debug.h | 12 -----------
 .../staging/rtl8188eu/os_dep/ioctl_linux.c    |  2 --
 8 files changed, 1 insertion(+), 58 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 1/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from os_dep/ioctl_linux.c
  2021-06-23 23:48 [PATCH 0/9] staging: rtl8188eu: remove DBG_88E_LEVEL and MSG_88E macros Phillip Potter
@ 2021-06-23 23:48 ` Phillip Potter
  2021-06-23 23:48 ` [PATCH 2/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_mlmw_ext.c Phillip Potter
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Phillip Potter @ 2021-06-23 23:48 UTC (permalink / raw)
  To: gregkh; +Cc: Larry.Finger, dan.carpenter, linux-kernel, linux-staging

Remove all DBG_88E_LEVEL calls from os_dep/ioctl_linux.c as this macro is
unnecessary, and these calls are dubious in terms of necessity.
Removing all calls will ultimately allow the removal of the macro
itself.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
---
 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
index 3b8386245017..7ab7706cf29c 100644
--- a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
+++ b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
@@ -71,7 +71,6 @@ void rtw_indicate_wx_assoc_event(struct adapter *padapter)
 
 	memcpy(wrqu.ap_addr.sa_data, pmlmepriv->cur_network.network.MacAddress, ETH_ALEN);
 
-	DBG_88E_LEVEL(_drv_always_, "assoc success\n");
 	wireless_send_event(padapter->pnetdev, SIOCGIWAP, &wrqu, NULL);
 }
 
@@ -84,7 +83,6 @@ void rtw_indicate_wx_disassoc_event(struct adapter *padapter)
 	wrqu.ap_addr.sa_family = ARPHRD_ETHER;
 	eth_zero_addr(wrqu.ap_addr.sa_data);
 
-	DBG_88E_LEVEL(_drv_always_, "indicate disassoc\n");
 	wireless_send_event(padapter->pnetdev, SIOCGIWAP, &wrqu, NULL);
 }
 
-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 2/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_mlmw_ext.c
  2021-06-23 23:48 [PATCH 0/9] staging: rtl8188eu: remove DBG_88E_LEVEL and MSG_88E macros Phillip Potter
  2021-06-23 23:48 ` [PATCH 1/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from os_dep/ioctl_linux.c Phillip Potter
@ 2021-06-23 23:48 ` Phillip Potter
  2021-06-23 23:48 ` [PATCH 3/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_ioctl_set.c Phillip Potter
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Phillip Potter @ 2021-06-23 23:48 UTC (permalink / raw)
  To: gregkh; +Cc: Larry.Finger, dan.carpenter, linux-kernel, linux-staging

Remove all DBG_88E_LEVEL calls from core/rtw_mlmw_ext.c as this macro is
unnecessary, and these calls are dubious in terms of necessity.
Removing all calls will ultimately allow the removal of the macro
itself.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
---
 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 21 -------------------
 1 file changed, 21 deletions(-)

diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
index c6410030dcbf..2c5f9ee2cf82 100644
--- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
@@ -2190,7 +2190,6 @@ static void start_clnt_auth(struct adapter *padapter)
 	/*	For the Win8 P2P connection, it will be hard to have a successful connection if this Wi-Fi doesn't connect to it. */
 	issue_deauth(padapter, (&pmlmeinfo->network)->MacAddress, WLAN_REASON_DEAUTH_LEAVING);
 
-	DBG_88E_LEVEL(_drv_info_, "start auth\n");
 	issue_auth(padapter, NULL, 0);
 
 	set_link_timer(pmlmeext, REAUTH_TO);
@@ -2481,7 +2480,6 @@ static unsigned int OnBeacon(struct adapter *padapter,
 			if (psta) {
 				ret = rtw_check_bcn_info(padapter, pframe, len);
 				if (!ret) {
-					DBG_88E_LEVEL(_drv_info_, "ap has changed, disconnect now\n ");
 					receive_disconnect(padapter, pmlmeinfo->network.MacAddress, 65535);
 					return _SUCCESS;
 				}
@@ -2738,7 +2736,6 @@ static unsigned int OnAuthClient(struct adapter *padapter,
 	}
 
 	if (go2asoc) {
-		DBG_88E_LEVEL(_drv_info_, "auth success, start assoc\n");
 		start_clnt_assoc(padapter);
 		return _SUCCESS;
 	}
@@ -3248,9 +3245,6 @@ static unsigned int OnDeAuth(struct adapter *padapter,
 		struct sta_info *psta;
 		struct sta_priv *pstapriv = &padapter->stapriv;
 
-		DBG_88E_LEVEL(_drv_always_, "ap recv deauth reason code(%d) sta:%pM\n",
-			      reason, GetAddr2Ptr(pframe));
-
 		psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe));
 		if (psta) {
 			u8 updated = 0;
@@ -3269,9 +3263,6 @@ static unsigned int OnDeAuth(struct adapter *padapter,
 		return _SUCCESS;
 	}
 #endif
-	DBG_88E_LEVEL(_drv_always_, "sta recv deauth reason code(%d) sta:%pM\n",
-		      reason, GetAddr3Ptr(pframe));
-
 	receive_disconnect(padapter, GetAddr3Ptr(pframe), reason);
 
 	pmlmepriv->LinkDetectInfo.bBusyTraffic = false;
@@ -3299,9 +3290,6 @@ static unsigned int OnDisassoc(struct adapter *padapter,
 		struct sta_info *psta;
 		struct sta_priv *pstapriv = &padapter->stapriv;
 
-		DBG_88E_LEVEL(_drv_always_, "ap recv disassoc reason code(%d) sta:%pM\n",
-			      reason, GetAddr2Ptr(pframe));
-
 		psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe));
 		if (psta) {
 			u8 updated = 0;
@@ -3320,9 +3308,6 @@ static unsigned int OnDisassoc(struct adapter *padapter,
 		return _SUCCESS;
 	}
 #endif
-	DBG_88E_LEVEL(_drv_always_, "ap recv disassoc reason code(%d) sta:%pM\n",
-		      reason, GetAddr3Ptr(pframe));
-
 	receive_disconnect(padapter, GetAddr3Ptr(pframe), reason);
 
 	pmlmepriv->LinkDetectInfo.bBusyTraffic = false;
@@ -4461,8 +4446,6 @@ void linked_status_chk(struct adapter *padapter)
 			if (rx_chk == _FAIL) {
 				pmlmeext->retry++;
 				if (pmlmeext->retry > rx_chk_limit) {
-					DBG_88E_LEVEL(_drv_always_, FUNC_ADPT_FMT" disconnect or roaming\n",
-						      FUNC_ADPT_ARG(padapter));
 					receive_disconnect(padapter, pmlmeinfo->network.MacAddress,
 							   WLAN_REASON_EXPIRATION_CHK);
 					return;
@@ -4976,8 +4959,6 @@ u8 setkey_hdl(struct adapter *padapter, u8 *pbuf)
 	/* write cam */
 	ctrl = BIT(15) | ((pparm->algorithm) << 2) | pparm->keyid;
 
-	DBG_88E_LEVEL(_drv_info_, "set group key to hw: alg:%d(WEP40-1 WEP104-5 TKIP-2 AES-4) "
-			"keyid:%d\n", pparm->algorithm, pparm->keyid);
 	write_cam(padapter, pparm->keyid, ctrl, null_sta, pparm->key);
 
 	return H2C_SUCCESS;
@@ -5006,8 +4987,6 @@ u8 set_stakey_hdl(struct adapter *padapter, u8 *pbuf)
 
 	cam_id = 4;
 
-	DBG_88E_LEVEL(_drv_info_, "set pairwise key to hw: alg:%d(WEP40-1 WEP104-5 TKIP-2 AES-4) camid:%d\n",
-		      pparm->algorithm, cam_id);
 	if ((pmlmeinfo->state & 0x03) == WIFI_FW_AP_STATE) {
 		struct sta_info *psta;
 		struct sta_priv *pstapriv = &padapter->stapriv;
-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 3/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_ioctl_set.c
  2021-06-23 23:48 [PATCH 0/9] staging: rtl8188eu: remove DBG_88E_LEVEL and MSG_88E macros Phillip Potter
  2021-06-23 23:48 ` [PATCH 1/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from os_dep/ioctl_linux.c Phillip Potter
  2021-06-23 23:48 ` [PATCH 2/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_mlmw_ext.c Phillip Potter
@ 2021-06-23 23:48 ` Phillip Potter
  2021-06-23 23:48 ` [PATCH 4/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_pwrctrl.c Phillip Potter
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Phillip Potter @ 2021-06-23 23:48 UTC (permalink / raw)
  To: gregkh; +Cc: Larry.Finger, dan.carpenter, linux-kernel, linux-staging

Remove all DBG_88E_LEVEL calls from core/rtw_ioctl_set.c as this macro is
unnecessary, and these calls are dubious in terms of necessity.
Removing all calls will ultimately allow the removal of the macro
itself.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
---
 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c b/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c
index c8b8346adbee..adf772e7bac0 100644
--- a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c
+++ b/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c
@@ -131,8 +131,6 @@ u8 rtw_set_802_11_bssid(struct adapter *padapter, u8 *bssid)
 	u32 cur_time = 0;
 	struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
 
-	DBG_88E_LEVEL(_drv_info_, "set bssid:%pM\n", bssid);
-
 	if ((bssid[0] == 0x00 && bssid[1] == 0x00 && bssid[2] == 0x00 &&
 	     bssid[3] == 0x00 && bssid[4] == 0x00 && bssid[5] == 0x00) ||
 	    (bssid[0] == 0xFF && bssid[1] == 0xFF && bssid[2] == 0xFF &&
@@ -214,9 +212,6 @@ u8 rtw_set_802_11_ssid(struct adapter *padapter, struct ndis_802_11_ssid *ssid)
 	struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
 	struct wlan_network *pnetwork = &pmlmepriv->cur_network;
 
-	DBG_88E_LEVEL(_drv_info_, "set ssid [%s] fw_state=0x%08x\n",
-		      ssid->ssid, get_fwstate(pmlmepriv));
-
 	if (!padapter->hw_init_completed) {
 		RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_,
 			 ("set_ssid: hw_init_completed == false =>exit!!!\n"));
-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 4/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_pwrctrl.c
  2021-06-23 23:48 [PATCH 0/9] staging: rtl8188eu: remove DBG_88E_LEVEL and MSG_88E macros Phillip Potter
                   ` (2 preceding siblings ...)
  2021-06-23 23:48 ` [PATCH 3/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_ioctl_set.c Phillip Potter
@ 2021-06-23 23:48 ` Phillip Potter
  2021-06-23 23:48 ` [PATCH 5/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_xmit.c Phillip Potter
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Phillip Potter @ 2021-06-23 23:48 UTC (permalink / raw)
  To: gregkh; +Cc: Larry.Finger, dan.carpenter, linux-kernel, linux-staging

Remove all DBG_88E_LEVEL calls from core/rtw_pwrctrl.c as this macro is
unnecessary, and these calls are dubious in terms of necessity.
Removing all calls will ultimately allow the removal of the macro
itself.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
---
 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c b/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c
index f6fe43e0965d..95e2eea23e42 100644
--- a/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c
+++ b/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c
@@ -112,12 +112,8 @@ void ips_enter(struct adapter *padapter)
 		return;
 
 	if (pxmit_priv->free_xmitbuf_cnt != NR_XMITBUFF ||
-	    pxmit_priv->free_xmit_extbuf_cnt != NR_XMIT_EXTBUFF) {
-		DBG_88E_LEVEL(_drv_info_, "There are some pkts to transmit\n");
-		DBG_88E_LEVEL(_drv_info_, "free_xmitbuf_cnt: %d, free_xmit_extbuf_cnt: %d\n",
-			      pxmit_priv->free_xmitbuf_cnt, pxmit_priv->free_xmit_extbuf_cnt);
+	    pxmit_priv->free_xmit_extbuf_cnt != NR_XMIT_EXTBUFF)
 		return;
-	}
 
 	mutex_lock(&pwrpriv->mutex_lock);
 
@@ -129,7 +125,6 @@ void ips_enter(struct adapter *padapter)
 	pwrpriv->ips_enter_cnts++;
 	if (rf_off == pwrpriv->change_rfpwrstate) {
 		pwrpriv->bpower_saving = true;
-		DBG_88E_LEVEL(_drv_info_, "nolinked power save enter\n");
 
 		if (pwrpriv->ips_mode == IPS_LEVEL_2)
 			pwrpriv->bkeepfwalive = true;
@@ -161,8 +156,6 @@ int ips_leave(struct adapter *padapter)
 		if (result == _SUCCESS)
 			pwrpriv->rf_pwrstate = rf_on;
 
-		DBG_88E_LEVEL(_drv_info_, "nolinked power save leave\n");
-
 		if ((psecuritypriv->dot11PrivacyAlgrthm == _WEP40_) || (psecuritypriv->dot11PrivacyAlgrthm == _WEP104_)) {
 			set_channel_bwmode(padapter, padapter->mlmeextpriv.cur_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
 			for (keyid = 0; keyid < 4; keyid++) {
-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 5/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_xmit.c
  2021-06-23 23:48 [PATCH 0/9] staging: rtl8188eu: remove DBG_88E_LEVEL and MSG_88E macros Phillip Potter
                   ` (3 preceding siblings ...)
  2021-06-23 23:48 ` [PATCH 4/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_pwrctrl.c Phillip Potter
@ 2021-06-23 23:48 ` Phillip Potter
  2021-06-23 23:48 ` [PATCH 6/9] staging: rtl8188eu: remove DBG_88E_LEVEL macro from include/rtw_debug.h Phillip Potter
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Phillip Potter @ 2021-06-23 23:48 UTC (permalink / raw)
  To: gregkh; +Cc: Larry.Finger, dan.carpenter, linux-kernel, linux-staging

Remove all DBG_88E_LEVEL calls from core/rtw_xmit.c as this macro is
unnecessary, and these calls are dubious in terms of necessity.
Removing all calls will ultimately allow the removal of the macro
itself.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
---
 drivers/staging/rtl8188eu/core/rtw_xmit.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/drivers/staging/rtl8188eu/core/rtw_xmit.c
index 07c2171a42d0..2a51ea26e0ff 100644
--- a/drivers/staging/rtl8188eu/core/rtw_xmit.c
+++ b/drivers/staging/rtl8188eu/core/rtw_xmit.c
@@ -448,8 +448,6 @@ static s32 update_attrib(struct adapter *padapter, struct sk_buff *pkt, struct p
 				}
 			}
 		}
-	} else if (pattrib->ether_type == ETH_P_PAE) {
-		DBG_88E_LEVEL(_drv_info_, "send eapol packet\n");
 	}
 
 	if ((pattrib->ether_type == ETH_P_PAE) || (pattrib->dhcp_pkt == 1))
-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 6/9] staging: rtl8188eu: remove DBG_88E_LEVEL macro from include/rtw_debug.h
  2021-06-23 23:48 [PATCH 0/9] staging: rtl8188eu: remove DBG_88E_LEVEL and MSG_88E macros Phillip Potter
                   ` (4 preceding siblings ...)
  2021-06-23 23:48 ` [PATCH 5/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_xmit.c Phillip Potter
@ 2021-06-23 23:48 ` Phillip Potter
  2021-06-23 23:49 ` [PATCH 7/9] staging: rtl8188eu: remove MSG_88E call from hal/odm.c Phillip Potter
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Phillip Potter @ 2021-06-23 23:48 UTC (permalink / raw)
  To: gregkh; +Cc: Larry.Finger, dan.carpenter, linux-kernel, linux-staging

Remove definition of DBG_88E_LEVEL macro from include/rtw_debug.h, as it
no longer has any callers and does not follow kernel coding conventions.
Removing all such macros will ultimately allow the removal of this file.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
---
 drivers/staging/rtl8188eu/include/rtw_debug.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/staging/rtl8188eu/include/rtw_debug.h b/drivers/staging/rtl8188eu/include/rtw_debug.h
index a1b25ca16d28..ac123ddb8acb 100644
--- a/drivers/staging/rtl8188eu/include/rtw_debug.h
+++ b/drivers/staging/rtl8188eu/include/rtw_debug.h
@@ -58,12 +58,6 @@
 
 extern u32 GlobalDebugLevel;
 
-#define DBG_88E_LEVEL(_level, fmt, arg...)				\
-	do {								\
-		if (_level <= GlobalDebugLevel)				\
-			pr_info(DRIVER_PREFIX fmt, ##arg);	\
-	} while (0)
-
 #define MSG_88E(...)							\
 	do {								\
 		if (_drv_err_ <= GlobalDebugLevel)			\
-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 7/9] staging: rtl8188eu: remove MSG_88E call from hal/odm.c
  2021-06-23 23:48 [PATCH 0/9] staging: rtl8188eu: remove DBG_88E_LEVEL and MSG_88E macros Phillip Potter
                   ` (5 preceding siblings ...)
  2021-06-23 23:48 ` [PATCH 6/9] staging: rtl8188eu: remove DBG_88E_LEVEL macro from include/rtw_debug.h Phillip Potter
@ 2021-06-23 23:49 ` Phillip Potter
  2021-06-23 23:49 ` [PATCH 8/9] staging: rtl8188eu: remove MSG_88E calls from hal/usb_halinit.c Phillip Potter
  2021-06-23 23:49 ` [PATCH 9/9] staging: rtl8188eu: remove MSG_88E macro from include/rtw_debug.h Phillip Potter
  8 siblings, 0 replies; 10+ messages in thread
From: Phillip Potter @ 2021-06-23 23:49 UTC (permalink / raw)
  To: gregkh; +Cc: Larry.Finger, dan.carpenter, linux-kernel, linux-staging

Remove MSG_88E call from hal/odm.c as this macro is unnecessary,
and this call is dubious in terms of necessity. Removing all calls
will ultimately allow the removal of the macro itself.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
---
 drivers/staging/rtl8188eu/hal/odm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/rtl8188eu/hal/odm.c b/drivers/staging/rtl8188eu/hal/odm.c
index 9febdc91b66a..73b63e2ea0ff 100644
--- a/drivers/staging/rtl8188eu/hal/odm.c
+++ b/drivers/staging/rtl8188eu/hal/odm.c
@@ -827,7 +827,6 @@ void odm_TXPowerTrackingInit(struct odm_dm_struct *pDM_Odm)
 	pDM_Odm->RFCalibrateInfo.TXPowercount = 0;
 	if (*pDM_Odm->mp_mode != 1)
 		pDM_Odm->RFCalibrateInfo.TxPowerTrackControl = true;
-	MSG_88E("pDM_Odm TxPowerTrackControl = %d\n", pDM_Odm->RFCalibrateInfo.TxPowerTrackControl);
 
 	pDM_Odm->RFCalibrateInfo.TxPowerTrackControl = true;
 }
-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 8/9] staging: rtl8188eu: remove MSG_88E calls from hal/usb_halinit.c
  2021-06-23 23:48 [PATCH 0/9] staging: rtl8188eu: remove DBG_88E_LEVEL and MSG_88E macros Phillip Potter
                   ` (6 preceding siblings ...)
  2021-06-23 23:49 ` [PATCH 7/9] staging: rtl8188eu: remove MSG_88E call from hal/odm.c Phillip Potter
@ 2021-06-23 23:49 ` Phillip Potter
  2021-06-23 23:49 ` [PATCH 9/9] staging: rtl8188eu: remove MSG_88E macro from include/rtw_debug.h Phillip Potter
  8 siblings, 0 replies; 10+ messages in thread
From: Phillip Potter @ 2021-06-23 23:49 UTC (permalink / raw)
  To: gregkh; +Cc: Larry.Finger, dan.carpenter, linux-kernel, linux-staging

Remove both MSG_88E calls from hal/usb_halinit.c, as well as the
unused local 'jiffies' variables from the rtw_hal_read_chip_info
function. This macro is unnecessary, and removing all calls will
ultimately allow the removal of the macro itself.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
---
 drivers/staging/rtl8188eu/hal/usb_halinit.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c b/drivers/staging/rtl8188eu/hal/usb_halinit.c
index dcdf868b394d..093aa4ab3ad4 100644
--- a/drivers/staging/rtl8188eu/hal/usb_halinit.c
+++ b/drivers/staging/rtl8188eu/hal/usb_halinit.c
@@ -1056,14 +1056,7 @@ static void _ReadPROMContent(struct adapter *Adapter)
 
 void rtw_hal_read_chip_info(struct adapter *Adapter)
 {
-	unsigned long start = jiffies;
-
-	MSG_88E("====> %s\n", __func__);
-
 	_ReadPROMContent(Adapter);
-
-	MSG_88E("<==== %s in %d ms\n", __func__,
-		jiffies_to_msecs(jiffies - start));
 }
 
 #define GPIO_DEBUG_PORT_NUM 0
-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 9/9] staging: rtl8188eu: remove MSG_88E macro from include/rtw_debug.h
  2021-06-23 23:48 [PATCH 0/9] staging: rtl8188eu: remove DBG_88E_LEVEL and MSG_88E macros Phillip Potter
                   ` (7 preceding siblings ...)
  2021-06-23 23:49 ` [PATCH 8/9] staging: rtl8188eu: remove MSG_88E calls from hal/usb_halinit.c Phillip Potter
@ 2021-06-23 23:49 ` Phillip Potter
  8 siblings, 0 replies; 10+ messages in thread
From: Phillip Potter @ 2021-06-23 23:49 UTC (permalink / raw)
  To: gregkh; +Cc: Larry.Finger, dan.carpenter, linux-kernel, linux-staging

Remove definition of MSG_88E macro from include/rtw_debug.h, as it
no longer has any callers and does not follow kernel coding conventions.
Removing this macro leaves only RT_TRACE and associated definitions.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
---
 drivers/staging/rtl8188eu/include/rtw_debug.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/staging/rtl8188eu/include/rtw_debug.h b/drivers/staging/rtl8188eu/include/rtw_debug.h
index ac123ddb8acb..72a18ec3ee32 100644
--- a/drivers/staging/rtl8188eu/include/rtw_debug.h
+++ b/drivers/staging/rtl8188eu/include/rtw_debug.h
@@ -58,12 +58,6 @@
 
 extern u32 GlobalDebugLevel;
 
-#define MSG_88E(...)							\
-	do {								\
-		if (_drv_err_ <= GlobalDebugLevel)			\
-			pr_info(DRIVER_PREFIX __VA_ARGS__);			\
-	} while (0)
-
 #define RT_TRACE(_comp, _level, fmt)					\
 	do {								\
 		if (_level <= GlobalDebugLevel) {			\
-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-06-23 23:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-23 23:48 [PATCH 0/9] staging: rtl8188eu: remove DBG_88E_LEVEL and MSG_88E macros Phillip Potter
2021-06-23 23:48 ` [PATCH 1/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from os_dep/ioctl_linux.c Phillip Potter
2021-06-23 23:48 ` [PATCH 2/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_mlmw_ext.c Phillip Potter
2021-06-23 23:48 ` [PATCH 3/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_ioctl_set.c Phillip Potter
2021-06-23 23:48 ` [PATCH 4/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_pwrctrl.c Phillip Potter
2021-06-23 23:48 ` [PATCH 5/9] staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_xmit.c Phillip Potter
2021-06-23 23:48 ` [PATCH 6/9] staging: rtl8188eu: remove DBG_88E_LEVEL macro from include/rtw_debug.h Phillip Potter
2021-06-23 23:49 ` [PATCH 7/9] staging: rtl8188eu: remove MSG_88E call from hal/odm.c Phillip Potter
2021-06-23 23:49 ` [PATCH 8/9] staging: rtl8188eu: remove MSG_88E calls from hal/usb_halinit.c Phillip Potter
2021-06-23 23:49 ` [PATCH 9/9] staging: rtl8188eu: remove MSG_88E macro from include/rtw_debug.h Phillip Potter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).