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.

igc: Make the const read-only array supported_sizes static

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

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Reviewed-by: Vitaly Lifshits <vitaly.lifshits@intel.com>>
Link: https://patch.msgid.link/20250618135408.1784120-1-colin.i.king@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Colin Ian King and committed by
Jakub Kicinski
deb21a6e ba28ef3c

+1 -1
+1 -1
drivers/net/ethernet/intel/igc/igc_tsn.c
··· 431 431 432 432 u32 igc_fpe_get_supported_frag_size(u32 frag_size) 433 433 { 434 - const u32 supported_sizes[] = {64, 128, 192, 256}; 434 + static const u32 supported_sizes[] = { 64, 128, 192, 256 }; 435 435 436 436 /* Find the smallest supported size that is >= frag_size */ 437 437 for (int i = 0; i < ARRAY_SIZE(supported_sizes); i++) {