All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] soc: hisilicon: kunpeng_hccs: Some clean code to fix compiling warning
@ 2026-03-17  3:57 Huisong Li
  2026-03-17  3:57 ` [PATCH v1 1/2] soc: hisilicon: kunpeng_hccs: Fix discard ‘const’ qualifier " Huisong Li
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Huisong Li @ 2026-03-17  3:57 UTC (permalink / raw)
  To: xuwei5, linux-kernel, linux-arm-kernel
  Cc: linuxarm, jonathan.cameron, zhanjie9, lihuisong

Fix some compiling warning on kunpeng_hccs driver.

Huisong Li (2):
  soc: hisilicon: kunpeng_hccs: Fix discard ‘const’ qualifier compiling
    warning
  soc: hisilicon: kunpeng_hccs: Remove unused input parameter

 drivers/soc/hisilicon/kunpeng_hccs.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

-- 
2.33.0



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

* [PATCH v1 1/2] soc: hisilicon: kunpeng_hccs: Fix discard ‘const’ qualifier compiling warning
  2026-03-17  3:57 [PATCH v1 0/2] soc: hisilicon: kunpeng_hccs: Some clean code to fix compiling warning Huisong Li
@ 2026-03-17  3:57 ` Huisong Li
  2026-03-17  3:57 ` [PATCH v1 2/2] soc: hisilicon: kunpeng_hccs: Remove unused input parameter Huisong Li
  2026-03-21  6:53 ` [PATCH v1 0/2] soc: hisilicon: kunpeng_hccs: Some clean code to fix compiling warning Wei Xu
  2 siblings, 0 replies; 4+ messages in thread
From: Huisong Li @ 2026-03-17  3:57 UTC (permalink / raw)
  To: xuwei5, linux-kernel, linux-arm-kernel
  Cc: linuxarm, jonathan.cameron, zhanjie9, lihuisong

The link_fsm_map has ‘const’ qualifier, but the 'str' pointer
in link_fsm_map is discarded. So add 'const' for this pointer
to fix the compiling warning.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
---
 drivers/soc/hisilicon/kunpeng_hccs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/hisilicon/kunpeng_hccs.c b/drivers/soc/hisilicon/kunpeng_hccs.c
index 2af3bfda313e..d6ff7de63836 100644
--- a/drivers/soc/hisilicon/kunpeng_hccs.c
+++ b/drivers/soc/hisilicon/kunpeng_hccs.c
@@ -961,7 +961,7 @@ static ssize_t link_fsm_show(struct kobject *kobj,
 	struct hccs_link_status link_status = {0};
 	const struct {
 		u8 link_fsm;
-		char *str;
+		const char *str;
 	} link_fsm_map[] = {
 		{HCCS_PORT_RESET, "reset"},
 		{HCCS_PORT_SETUP, "setup"},
-- 
2.33.0



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

* [PATCH v1 2/2] soc: hisilicon: kunpeng_hccs: Remove unused input parameter
  2026-03-17  3:57 [PATCH v1 0/2] soc: hisilicon: kunpeng_hccs: Some clean code to fix compiling warning Huisong Li
  2026-03-17  3:57 ` [PATCH v1 1/2] soc: hisilicon: kunpeng_hccs: Fix discard ‘const’ qualifier " Huisong Li
@ 2026-03-17  3:57 ` Huisong Li
  2026-03-21  6:53 ` [PATCH v1 0/2] soc: hisilicon: kunpeng_hccs: Some clean code to fix compiling warning Wei Xu
  2 siblings, 0 replies; 4+ messages in thread
From: Huisong Li @ 2026-03-17  3:57 UTC (permalink / raw)
  To: xuwei5, linux-kernel, linux-arm-kernel
  Cc: linuxarm, jonathan.cameron, zhanjie9, lihuisong

The 'hdev' parameter of hccs_create_hccs_dir() is unused.
Remove it to fix the compiler warning.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
---
 drivers/soc/hisilicon/kunpeng_hccs.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/soc/hisilicon/kunpeng_hccs.c b/drivers/soc/hisilicon/kunpeng_hccs.c
index d6ff7de63836..0cc2953d59a5 100644
--- a/drivers/soc/hisilicon/kunpeng_hccs.c
+++ b/drivers/soc/hisilicon/kunpeng_hccs.c
@@ -1621,8 +1621,7 @@ static void hccs_remove_topo_dirs(struct hccs_dev *hdev)
 	hccs_remove_misc_sysfs(hdev);
 }
 
-static int hccs_create_hccs_dir(struct hccs_dev *hdev,
-				struct hccs_die_info *die,
+static int hccs_create_hccs_dir(struct hccs_die_info *die,
 				struct hccs_port_info *port)
 {
 	int ret;
@@ -1654,7 +1653,7 @@ static int hccs_create_die_dir(struct hccs_dev *hdev,
 
 	for (i = 0; i < die->port_num; i++) {
 		port = &die->ports[i];
-		ret = hccs_create_hccs_dir(hdev, die, port);
+		ret = hccs_create_hccs_dir(die, port);
 		if (ret) {
 			dev_err(hdev->dev, "create hccs%u dir failed.\n",
 				port->port_id);
-- 
2.33.0



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

* Re: [PATCH v1 0/2] soc: hisilicon: kunpeng_hccs: Some clean code to fix compiling warning
  2026-03-17  3:57 [PATCH v1 0/2] soc: hisilicon: kunpeng_hccs: Some clean code to fix compiling warning Huisong Li
  2026-03-17  3:57 ` [PATCH v1 1/2] soc: hisilicon: kunpeng_hccs: Fix discard ‘const’ qualifier " Huisong Li
  2026-03-17  3:57 ` [PATCH v1 2/2] soc: hisilicon: kunpeng_hccs: Remove unused input parameter Huisong Li
@ 2026-03-21  6:53 ` Wei Xu
  2 siblings, 0 replies; 4+ messages in thread
From: Wei Xu @ 2026-03-21  6:53 UTC (permalink / raw)
  To: Huisong Li, xuwei5, linux-kernel, linux-arm-kernel
  Cc: linuxarm, jonathan.cameron, zhanjie9, xuwei5

Hi Huisong,

On 2026/3/17 11:57, Huisong Li wrote:
> Fix some compiling warning on kunpeng_hccs driver.
> 
> Huisong Li (2):
>   soc: hisilicon: kunpeng_hccs: Fix discard ‘const’ qualifier compiling
>     warning
>   soc: hisilicon: kunpeng_hccs: Remove unused input parameter
> 
>  drivers/soc/hisilicon/kunpeng_hccs.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 

Series applied to the Hisilicon driver tree.
Thanks!

Best Regards,
Wei


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

end of thread, other threads:[~2026-03-21  6:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-17  3:57 [PATCH v1 0/2] soc: hisilicon: kunpeng_hccs: Some clean code to fix compiling warning Huisong Li
2026-03-17  3:57 ` [PATCH v1 1/2] soc: hisilicon: kunpeng_hccs: Fix discard ‘const’ qualifier " Huisong Li
2026-03-17  3:57 ` [PATCH v1 2/2] soc: hisilicon: kunpeng_hccs: Remove unused input parameter Huisong Li
2026-03-21  6:53 ` [PATCH v1 0/2] soc: hisilicon: kunpeng_hccs: Some clean code to fix compiling warning Wei Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.