Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deepin-Kernel-SIG] [linux-6.6.y] wifi: rtw89: Fix initializer element is not constant build err #484

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

opsiff
Copy link
Member

@opsiff opsiff commented Nov 19, 2024

Log:
In file included from ./include/linux/module.h:22,
from drivers/net/wireless/realtek/rtw89/drv_ver.c:4:
drivers/net/wireless/realtek/rtw89/drv_ver.c:5:30: error: initializer element is not constant
5 | module_param_string(drv_ver, drv_ver, sizeof(drv_ver), 0444);
| ^~~~~~~
./include/linux/moduleparam.h:358:26: note: in definition of macro ‘module_param_string’
358 | = { len, string };
| ^~~~~~
drivers/net/wireless/realtek/rtw89/drv_ver.c:5:30: note: (near initialization for ‘__param_string_drv_ver.string’)
5 | module_param_string(drv_ver, drv_ver, sizeof(drv_ver), 0444);
| ^~~~~~~
./include/linux/moduleparam.h:358:26: note: in definition of macro ‘module_param_string’
358 | = { len, string };
| ^~~~~~

Log:
 In file included from ./include/linux/module.h:22,
        from drivers/net/wireless/realtek/rtw89/drv_ver.c:4:
 drivers/net/wireless/realtek/rtw89/drv_ver.c:5:30: error: initializer element is not constant
     5 | module_param_string(drv_ver, drv_ver, sizeof(drv_ver), 0444);
       |                              ^~~~~~~
 ./include/linux/moduleparam.h:358:26: note: in definition of macro ‘module_param_string’
   358 |                 = { len, string };                                      \
       |                          ^~~~~~
 drivers/net/wireless/realtek/rtw89/drv_ver.c:5:30: note: (near initialization for ‘__param_string_drv_ver.string’)
     5 | module_param_string(drv_ver, drv_ver, sizeof(drv_ver), 0444);
       |                              ^~~~~~~
 ./include/linux/moduleparam.h:358:26: note: in definition of macro ‘module_param_string’
   358 |                 = { len, string };                                      \
       |                          ^~~~~~

Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from opsiff. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@opsiff opsiff merged commit 81140a6 into linux-6.6.y Nov 19, 2024
4 of 10 checks passed
@opsiff opsiff deleted the rtw89-build branch November 19, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants