Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

qlcnic: make read-only const array key static

Don't populate the const read-only array key on the stack at
run time, instead make it static.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240910120635.115266-1-colin.i.king@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Colin Ian King and committed by
Jakub Kicinski
af647fe2 9ee92621

+7 -5
+7 -5
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
··· 2042 2042 2043 2043 int qlcnic_83xx_config_rss(struct qlcnic_adapter *adapter, int enable) 2044 2044 { 2045 - int err; 2046 - u32 word; 2047 2045 struct qlcnic_cmd_args cmd; 2048 - const u64 key[] = { 0xbeac01fa6a42b73bULL, 0x8030f20c77cb2da3ULL, 2049 - 0xae7b30b4d0ca2bcbULL, 0x43a38fb04167253dULL, 2050 - 0x255b0ec26d5a56daULL }; 2046 + static const u64 key[] = { 2047 + 0xbeac01fa6a42b73bULL, 0x8030f20c77cb2da3ULL, 2048 + 0xae7b30b4d0ca2bcbULL, 0x43a38fb04167253dULL, 2049 + 0x255b0ec26d5a56daULL 2050 + }; 2051 + u32 word; 2052 + int err; 2051 2053 2052 2054 err = qlcnic_alloc_mbx_args(&cmd, adapter, QLCNIC_CMD_CONFIGURE_RSS); 2053 2055 if (err)