mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
soc: hisilicon: kunpeng_hccs: Fix discard ‘const’ qualifier compiling warning
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> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
This commit is contained in:
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user