diff options
author | Tom Rix <trix@redhat.com> | 2023-07-02 15:06:08 -0400 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2023-07-31 14:12:39 +0300 |
commit | 6dacc6db4628af3fdc0627dca6dd6104ec9138ed (patch) | |
tree | 3396aad1de78dbf8b9c35bcd4a5e483872a75157 /drivers/thunderbolt | |
parent | 5d0c230f1de8c7515b6567d9afba1f196fb4e2f4 (diff) |
thunderbolt: Set variable tmu_params storage class specifier to static
smatch reports
drivers/thunderbolt/tmu.c:30:3: warning: symbol
'tmu_params' was not declared. Should it be static?
This variable is only used in its defining file so should be static.
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt')
-rw-r--r-- | drivers/thunderbolt/tmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thunderbolt/tmu.c b/drivers/thunderbolt/tmu.c index 1269f417515b..c789024d7ffe 100644 --- a/drivers/thunderbolt/tmu.c +++ b/drivers/thunderbolt/tmu.c @@ -19,7 +19,7 @@ static const unsigned int tmu_rates[] = { [TB_SWITCH_TMU_MODE_MEDRES_ENHANCED_UNI] = 16, }; -const struct { +static const struct { unsigned int freq_meas_window; unsigned int avg_const; unsigned int delta_avg_const; |