Skip to content

Commit f585c9d

Browse files
JasonYanHwandy-shev
authored andcommitted
platform/x86/intel-uncore-freq: make uncore_root_kobj static
Fix the following sparse warning: drivers/platform/x86/intel-uncore-frequency.c:56:16: warning: symbol 'uncore_root_kobj' was not declared. Should it be static? Reported-by: Hulk Robot <[email protected]> Signed-off-by: Jason Yan <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 713df99 commit f585c9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/x86/intel-uncore-frequency.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static int uncore_max_entries __read_mostly;
5353
/* Storage for uncore data for all instances */
5454
static struct uncore_data *uncore_instances;
5555
/* Root of the all uncore sysfs kobjs */
56-
struct kobject *uncore_root_kobj;
56+
static struct kobject *uncore_root_kobj;
5757
/* Stores the CPU mask of the target CPUs to use during uncore read/write */
5858
static cpumask_t uncore_cpu_mask;
5959
/* CPU online callback register instance */

0 commit comments

Comments
 (0)