projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d0c230
)
thunderbolt: Set variable tmu_params storage class specifier to static
author
Tom Rix
<trix@redhat.com>
Sun, 2 Jul 2023 19:06:08 +0000
(15:06 -0400)
committer
Mika Westerberg
<mika.westerberg@linux.intel.com>
Mon, 31 Jul 2023 11:12:39 +0000
(14:12 +0300)
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>
drivers/thunderbolt/tmu.c
patch
|
blob
|
history
diff --git
a/drivers/thunderbolt/tmu.c
b/drivers/thunderbolt/tmu.c
index
1269f41
..
c789024
100644
(file)
--- 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;