diff options
| author | Colin Ian King <[email protected]> | 2025-06-18 13:54:08 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-06-19 22:39:21 +0000 |
| commit | deb21a6e5b4a53fdf109e70f88aff534ff858931 (patch) | |
| tree | daee808a77c8567bbfa412061c40a14a099b8f2b | |
| parent | Merge branch 'convert-lan78xx-driver-to-the-phylink' (diff) | |
| download | kernel-deb21a6e5b4a53fdf109e70f88aff534ff858931.tar.gz kernel-deb21a6e5b4a53fdf109e70f88aff534ff858931.zip | |
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 <[email protected]>
Reviewed-by: Alexander Lobakin <[email protected]>
Reviewed-by: Vitaly Lifshits <[email protected]>>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
| -rw-r--r-- | drivers/net/ethernet/intel/igc/igc_tsn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_tsn.c b/drivers/net/ethernet/intel/igc/igc_tsn.c index b23b9ca451a7..8a110145bfee 100644 --- a/drivers/net/ethernet/intel/igc/igc_tsn.c +++ b/drivers/net/ethernet/intel/igc/igc_tsn.c @@ -431,7 +431,7 @@ static u8 igc_fpe_get_frag_size_mult(const struct igc_fpe_t *fpe) u32 igc_fpe_get_supported_frag_size(u32 frag_size) { - const u32 supported_sizes[] = {64, 128, 192, 256}; + static const u32 supported_sizes[] = { 64, 128, 192, 256 }; /* Find the smallest supported size that is >= frag_size */ for (int i = 0; i < ARRAY_SIZE(supported_sizes); i++) { |
