The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: remove unused netdev format/arg macros
@ 2026-06-11  7:46 Chen-Yu Yeh
  0 siblings, 0 replies; 3+ messages in thread
From: Chen-Yu Yeh @ 2026-06-11  7:46 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Andrei Khomenkov, linux-staging, linux-kernel, Chen-Yu Yeh

NDEV_ARG, FUNC_NDEV_FMT and FUNC_NDEV_ARG are defined but never
used anywhere in the driver. Remove them.

This also fixes a checkpatch error:
ERROR: Macros with complex values should be enclosed in parentheses

Signed-off-by: Chen-Yu Yeh <chenyou910331@gmail.com>
---
 drivers/staging/rtl8723bs/include/osdep_service_linux.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/staging/rtl8723bs/include/osdep_service_linux.h b/drivers/staging/rtl8723bs/include/osdep_service_linux.h
index 2ec54f9e1..c8274da94 100644
--- a/drivers/staging/rtl8723bs/include/osdep_service_linux.h
+++ b/drivers/staging/rtl8723bs/include/osdep_service_linux.h
@@ -98,10 +98,7 @@ static inline void rtw_netif_stop_queue(struct net_device *pnetdev)
 
 #define rtw_signal_process(pid, sig) kill_pid(find_vpid((pid)), (sig), 1)
 
-#define NDEV_ARG(ndev) ndev->name
 #define ADPT_ARG(adapter) adapter->pnetdev->name
-#define FUNC_NDEV_FMT "%s(%s)"
-#define FUNC_NDEV_ARG(ndev) __func__, ndev->name
 #define FUNC_ADPT_FMT "%s(%s)"
 #define FUNC_ADPT_ARG(adapter) __func__, adapter->pnetdev->name
 
-- 
2.43.0


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

* [PATCH] staging: rtl8723bs: remove unused netdev format/arg macros
  2026-06-11  8:16 [PATCH] staging: rtl8723bs: remove unused channel " Chen-Yu Yeh
@ 2026-06-11  8:16 ` Chen-Yu Yeh
  2026-06-11  8:25   ` 葉宸佑
  0 siblings, 1 reply; 3+ messages in thread
From: Chen-Yu Yeh @ 2026-06-11  8:16 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: linux-staging, linux-kernel, Andrei Khomenkov, Chen-Yu Yeh

NDEV_ARG, FUNC_NDEV_FMT and FUNC_NDEV_ARG are defined but never
used anywhere in the driver. Remove them.

This also fixes a checkpatch error:
ERROR: Macros with complex values should be enclosed in parentheses

Signed-off-by: Chen-Yu Yeh <chenyou910331@gmail.com>
---
 drivers/staging/rtl8723bs/include/osdep_service_linux.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/staging/rtl8723bs/include/osdep_service_linux.h b/drivers/staging/rtl8723bs/include/osdep_service_linux.h
index 2ec54f9e1..c8274da94 100644
--- a/drivers/staging/rtl8723bs/include/osdep_service_linux.h
+++ b/drivers/staging/rtl8723bs/include/osdep_service_linux.h
@@ -98,10 +98,7 @@ static inline void rtw_netif_stop_queue(struct net_device *pnetdev)
 
 #define rtw_signal_process(pid, sig) kill_pid(find_vpid((pid)), (sig), 1)
 
-#define NDEV_ARG(ndev) ndev->name
 #define ADPT_ARG(adapter) adapter->pnetdev->name
-#define FUNC_NDEV_FMT "%s(%s)"
-#define FUNC_NDEV_ARG(ndev) __func__, ndev->name
 #define FUNC_ADPT_FMT "%s(%s)"
 #define FUNC_ADPT_ARG(adapter) __func__, adapter->pnetdev->name
 
-- 
2.43.0


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

* Re: [PATCH] staging: rtl8723bs: remove unused netdev format/arg macros
  2026-06-11  8:16 ` [PATCH] staging: rtl8723bs: remove unused netdev " Chen-Yu Yeh
@ 2026-06-11  8:25   ` 葉宸佑
  0 siblings, 0 replies; 3+ messages in thread
From: 葉宸佑 @ 2026-06-11  8:25 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-staging, linux-kernel, Andrei Khomenkov

Sorry, please disregard this mail. It duplicates my earlier
submission of the same patch:

https://lore.kernel.org/all/20260611074613.1550984-1-chenyou910331@gmail.com/

It was accidentally resent due to a shell glob matching an
already-sent patch file.

Chen-Yu


Chen-Yu Yeh <chenyou910331@gmail.com> 於 2026年6月11日週四 下午4:17寫道:
>
> NDEV_ARG, FUNC_NDEV_FMT and FUNC_NDEV_ARG are defined but never
> used anywhere in the driver. Remove them.
>
> This also fixes a checkpatch error:
> ERROR: Macros with complex values should be enclosed in parentheses
>
> Signed-off-by: Chen-Yu Yeh <chenyou910331@gmail.com>
> ---
>  drivers/staging/rtl8723bs/include/osdep_service_linux.h | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/include/osdep_service_linux.h b/drivers/staging/rtl8723bs/include/osdep_service_linux.h
> index 2ec54f9e1..c8274da94 100644
> --- a/drivers/staging/rtl8723bs/include/osdep_service_linux.h
> +++ b/drivers/staging/rtl8723bs/include/osdep_service_linux.h
> @@ -98,10 +98,7 @@ static inline void rtw_netif_stop_queue(struct net_device *pnetdev)
>
>  #define rtw_signal_process(pid, sig) kill_pid(find_vpid((pid)), (sig), 1)
>
> -#define NDEV_ARG(ndev) ndev->name
>  #define ADPT_ARG(adapter) adapter->pnetdev->name
> -#define FUNC_NDEV_FMT "%s(%s)"
> -#define FUNC_NDEV_ARG(ndev) __func__, ndev->name
>  #define FUNC_ADPT_FMT "%s(%s)"
>  #define FUNC_ADPT_ARG(adapter) __func__, adapter->pnetdev->name
>
> --
> 2.43.0
>

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

end of thread, other threads:[~2026-06-11  8:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-11  7:46 [PATCH] staging: rtl8723bs: remove unused netdev format/arg macros Chen-Yu Yeh
  -- strict thread matches above, loose matches on Subject: below --
2026-06-11  8:16 [PATCH] staging: rtl8723bs: remove unused channel " Chen-Yu Yeh
2026-06-11  8:16 ` [PATCH] staging: rtl8723bs: remove unused netdev " Chen-Yu Yeh
2026-06-11  8:25   ` 葉宸佑

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox