netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/3] net: wwan: iosm: remove unused macro definition
@ 2023-05-09 16:35 m.chetan.kumar
  2023-05-09 16:36 ` [PATCH net-next 2/3] net: wwan: iosm: remove unused enum definition m.chetan.kumar
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: m.chetan.kumar @ 2023-05-09 16:35 UTC (permalink / raw)
  To: netdev
  Cc: kuba, davem, johannes, ryazanov.s.a, loic.poulain, linuxwwan,
	m.chetan.kumar, edumazet, pabeni, M Chetan Kumar

From: M Chetan Kumar <m.chetan.kumar@linux.intel.com>

IOSM_IF_ID_PAYLOAD is defined but not used.
Remove it to avoid unexpected usage.

Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
---
 drivers/net/wwan/iosm/iosm_ipc_wwan.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/wwan/iosm/iosm_ipc_wwan.c b/drivers/net/wwan/iosm/iosm_ipc_wwan.c
index 4c9022a93e01..ff747fc79aaf 100644
--- a/drivers/net/wwan/iosm/iosm_ipc_wwan.c
+++ b/drivers/net/wwan/iosm/iosm_ipc_wwan.c
@@ -18,8 +18,6 @@
 #define IOSM_IP_TYPE_IPV4 0x40
 #define IOSM_IP_TYPE_IPV6 0x60
 
-#define IOSM_IF_ID_PAYLOAD 2
-
 /**
  * struct iosm_netdev_priv - netdev WWAN driver specific private data
  * @ipc_wwan:	Pointer to iosm_wwan struct
-- 
2.34.1


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

* [PATCH net-next 2/3] net: wwan: iosm: remove unused enum definition
  2023-05-09 16:35 [PATCH net-next 1/3] net: wwan: iosm: remove unused macro definition m.chetan.kumar
@ 2023-05-09 16:36 ` m.chetan.kumar
  2023-05-10 12:38   ` Simon Horman
  2023-05-09 16:36 ` [PATCH net-next 3/3] net: wwan: iosm: clean up unused struct members m.chetan.kumar
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: m.chetan.kumar @ 2023-05-09 16:36 UTC (permalink / raw)
  To: netdev
  Cc: kuba, davem, johannes, ryazanov.s.a, loic.poulain, linuxwwan,
	m.chetan.kumar, edumazet, pabeni, M Chetan Kumar

From: M Chetan Kumar <m.chetan.kumar@linux.intel.com>

ipc_time_unit enum is defined but not used.
Remove it to avoid unexpected usage.

Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
---
 drivers/net/wwan/iosm/iosm_ipc_imem.h | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/drivers/net/wwan/iosm/iosm_ipc_imem.h b/drivers/net/wwan/iosm/iosm_ipc_imem.h
index e700dc8bfe0a..93d57aa7854a 100644
--- a/drivers/net/wwan/iosm/iosm_ipc_imem.h
+++ b/drivers/net/wwan/iosm/iosm_ipc_imem.h
@@ -140,17 +140,6 @@ enum ipc_channel_state {
 	IMEM_CHANNEL_CLOSING,
 };
 
-/* Time Unit */
-enum ipc_time_unit {
-	IPC_SEC = 0,
-	IPC_MILLI_SEC = 1,
-	IPC_MICRO_SEC = 2,
-	IPC_NANO_SEC = 3,
-	IPC_PICO_SEC = 4,
-	IPC_FEMTO_SEC = 5,
-	IPC_ATTO_SEC = 6,
-};
-
 /**
  * enum ipc_ctype - Enum defining supported channel type needed for control
  *		    /IP traffic.
-- 
2.34.1


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

* [PATCH net-next 3/3] net: wwan: iosm: clean up unused struct members
  2023-05-09 16:35 [PATCH net-next 1/3] net: wwan: iosm: remove unused macro definition m.chetan.kumar
  2023-05-09 16:36 ` [PATCH net-next 2/3] net: wwan: iosm: remove unused enum definition m.chetan.kumar
@ 2023-05-09 16:36 ` m.chetan.kumar
  2023-05-10 12:39   ` Simon Horman
  2023-05-10  9:43 ` [PATCH net-next 1/3] net: wwan: iosm: remove unused macro definition Simon Horman
  2023-05-11  2:20 ` patchwork-bot+netdevbpf
  3 siblings, 1 reply; 7+ messages in thread
From: m.chetan.kumar @ 2023-05-09 16:36 UTC (permalink / raw)
  To: netdev
  Cc: kuba, davem, johannes, ryazanov.s.a, loic.poulain, linuxwwan,
	m.chetan.kumar, edumazet, pabeni, M Chetan Kumar

From: M Chetan Kumar <m.chetan.kumar@linux.intel.com>

Below members are unused.
- td_tag member defined in struct ipc_pipe.
- adb_finish_timer & params defined in struct iosm_mux.

Remove it to avoid unexpected usage.

Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
---
 drivers/net/wwan/iosm/iosm_ipc_imem.h | 2 --
 drivers/net/wwan/iosm/iosm_ipc_mux.h  | 4 ----
 2 files changed, 6 deletions(-)

diff --git a/drivers/net/wwan/iosm/iosm_ipc_imem.h b/drivers/net/wwan/iosm/iosm_ipc_imem.h
index 93d57aa7854a..5664ac507c90 100644
--- a/drivers/net/wwan/iosm/iosm_ipc_imem.h
+++ b/drivers/net/wwan/iosm/iosm_ipc_imem.h
@@ -193,7 +193,6 @@ enum ipc_hp_identifier {
  * @pipe_nr:			Pipe identification number
  * @irq:			Interrupt vector
  * @dir:			Direction of data stream in pipe
- * @td_tag:			Unique tag of the buffer queued
  * @buf_size:			Buffer size (in bytes) for preallocated
  *				buffers (for DL pipes)
  * @nr_of_queued_entries:	Aueued number of entries
@@ -213,7 +212,6 @@ struct ipc_pipe {
 	u32 pipe_nr;
 	u32 irq;
 	enum ipc_mem_pipe_dir dir;
-	u32 td_tag;
 	u32 buf_size;
 	u16 nr_of_queued_entries;
 	u8 is_open:1;
diff --git a/drivers/net/wwan/iosm/iosm_ipc_mux.h b/drivers/net/wwan/iosm/iosm_ipc_mux.h
index 9968bb885c1f..17ca8d1f9397 100644
--- a/drivers/net/wwan/iosm/iosm_ipc_mux.h
+++ b/drivers/net/wwan/iosm/iosm_ipc_mux.h
@@ -333,9 +333,7 @@ struct mux_acb {
  * @wwan_q_offset:	This will hold the offset of the given instance
  *			Useful while passing or receiving packets from
  *			wwan/imem layer.
- * @adb_finish_timer:	Timer for forcefully finishing the ADB
  * @acb_tx_sequence_nr: Sequence number for the ACB header.
- * @params:		user configurable parameters
  * @adb_tx_sequence_nr: Sequence number for ADB header
  * @acc_adb_size:       Statistic data for logging
  * @acc_payload_size:   Statistic data for logging
@@ -367,9 +365,7 @@ struct iosm_mux {
 	long long ul_data_pend_bytes;
 	struct mux_acb acb;
 	int wwan_q_offset;
-	struct hrtimer adb_finish_timer;
 	u16 acb_tx_sequence_nr;
-	struct ipc_params *params;
 	u16 adb_tx_sequence_nr;
 	unsigned long long acc_adb_size;
 	unsigned long long acc_payload_size;
-- 
2.34.1


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

* Re: [PATCH net-next 1/3] net: wwan: iosm: remove unused macro definition
  2023-05-09 16:35 [PATCH net-next 1/3] net: wwan: iosm: remove unused macro definition m.chetan.kumar
  2023-05-09 16:36 ` [PATCH net-next 2/3] net: wwan: iosm: remove unused enum definition m.chetan.kumar
  2023-05-09 16:36 ` [PATCH net-next 3/3] net: wwan: iosm: clean up unused struct members m.chetan.kumar
@ 2023-05-10  9:43 ` Simon Horman
  2023-05-11  2:20 ` patchwork-bot+netdevbpf
  3 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2023-05-10  9:43 UTC (permalink / raw)
  To: m.chetan.kumar
  Cc: netdev, kuba, davem, johannes, ryazanov.s.a, loic.poulain,
	linuxwwan, m.chetan.kumar, edumazet, pabeni

On Tue, May 09, 2023 at 10:05:55PM +0530, m.chetan.kumar@linux.intel.com wrote:
> From: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
> 
> IOSM_IF_ID_PAYLOAD is defined but not used.
> Remove it to avoid unexpected usage.
> 
> Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>

Reviewed-by: Simon Horman <simon.horman@corigine.com>


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

* Re: [PATCH net-next 2/3] net: wwan: iosm: remove unused enum definition
  2023-05-09 16:36 ` [PATCH net-next 2/3] net: wwan: iosm: remove unused enum definition m.chetan.kumar
@ 2023-05-10 12:38   ` Simon Horman
  0 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2023-05-10 12:38 UTC (permalink / raw)
  To: m.chetan.kumar
  Cc: netdev, kuba, davem, johannes, ryazanov.s.a, loic.poulain,
	linuxwwan, m.chetan.kumar, edumazet, pabeni

On Tue, May 09, 2023 at 10:06:22PM +0530, m.chetan.kumar@linux.intel.com wrote:
> From: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
> 
> ipc_time_unit enum is defined but not used.
> Remove it to avoid unexpected usage.
> 
> Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>

Reviewed-by: Simon Horman <simon.horman@corigine.com>


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

* Re: [PATCH net-next 3/3] net: wwan: iosm: clean up unused struct members
  2023-05-09 16:36 ` [PATCH net-next 3/3] net: wwan: iosm: clean up unused struct members m.chetan.kumar
@ 2023-05-10 12:39   ` Simon Horman
  0 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2023-05-10 12:39 UTC (permalink / raw)
  To: m.chetan.kumar
  Cc: netdev, kuba, davem, johannes, ryazanov.s.a, loic.poulain,
	linuxwwan, m.chetan.kumar, edumazet, pabeni

On Tue, May 09, 2023 at 10:06:35PM +0530, m.chetan.kumar@linux.intel.com wrote:
> From: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
> 
> Below members are unused.
> - td_tag member defined in struct ipc_pipe.
> - adb_finish_timer & params defined in struct iosm_mux.
> 
> Remove it to avoid unexpected usage.
> 
> Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>

Reviewed-by: Simon Horman <simon.horman@corigine.com>


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

* Re: [PATCH net-next 1/3] net: wwan: iosm: remove unused macro definition
  2023-05-09 16:35 [PATCH net-next 1/3] net: wwan: iosm: remove unused macro definition m.chetan.kumar
                   ` (2 preceding siblings ...)
  2023-05-10  9:43 ` [PATCH net-next 1/3] net: wwan: iosm: remove unused macro definition Simon Horman
@ 2023-05-11  2:20 ` patchwork-bot+netdevbpf
  3 siblings, 0 replies; 7+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-05-11  2:20 UTC (permalink / raw)
  To: Kumar, M Chetan
  Cc: netdev, kuba, davem, johannes, ryazanov.s.a, loic.poulain,
	linuxwwan, m.chetan.kumar, edumazet, pabeni

Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue,  9 May 2023 22:05:55 +0530 you wrote:
> From: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
> 
> IOSM_IF_ID_PAYLOAD is defined but not used.
> Remove it to avoid unexpected usage.
> 
> Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
> 
> [...]

Here is the summary with links:
  - [net-next,1/3] net: wwan: iosm: remove unused macro definition
    https://git.kernel.org/netdev/net-next/c/796fb97a8cd9
  - [net-next,2/3] net: wwan: iosm: remove unused enum definition
    https://git.kernel.org/netdev/net-next/c/c930192572db
  - [net-next,3/3] net: wwan: iosm: clean up unused struct members
    https://git.kernel.org/netdev/net-next/c/8a690c151134

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2023-05-11  2:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-09 16:35 [PATCH net-next 1/3] net: wwan: iosm: remove unused macro definition m.chetan.kumar
2023-05-09 16:36 ` [PATCH net-next 2/3] net: wwan: iosm: remove unused enum definition m.chetan.kumar
2023-05-10 12:38   ` Simon Horman
2023-05-09 16:36 ` [PATCH net-next 3/3] net: wwan: iosm: clean up unused struct members m.chetan.kumar
2023-05-10 12:39   ` Simon Horman
2023-05-10  9:43 ` [PATCH net-next 1/3] net: wwan: iosm: remove unused macro definition Simon Horman
2023-05-11  2:20 ` patchwork-bot+netdevbpf

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).