Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: LLVM complains about forward declaration of struct rtas_sensors

Move the declaration up to silence the warning.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Anton Blanchard and committed by
Michael Ellerman
ecaf5fa0 6f791bef

+9 -11
+9 -11
arch/powerpc/kernel/rtas-proc.c
··· 113 113 #define SENSOR_PREFIX "ibm,sensor-" 114 114 #define cel_to_fahr(x) ((x*9/5)+32) 115 115 116 - 117 - /* Globals */ 118 - static struct rtas_sensors sensors; 119 - static struct device_node *rtas_node = NULL; 120 - static unsigned long power_on_time = 0; /* Save the time the user set */ 121 - static char progress_led[MAX_LINELENGTH]; 122 - 123 - static unsigned long rtas_tone_frequency = 1000; 124 - static unsigned long rtas_tone_volume = 0; 125 - 126 - /* ****************STRUCTS******************************************* */ 127 116 struct individual_sensor { 128 117 unsigned int token; 129 118 unsigned int quant; ··· 122 133 struct individual_sensor sensor[MAX_SENSORS]; 123 134 unsigned int quant; 124 135 }; 136 + 137 + /* Globals */ 138 + static struct rtas_sensors sensors; 139 + static struct device_node *rtas_node = NULL; 140 + static unsigned long power_on_time = 0; /* Save the time the user set */ 141 + static char progress_led[MAX_LINELENGTH]; 142 + 143 + static unsigned long rtas_tone_frequency = 1000; 144 + static unsigned long rtas_tone_volume = 0; 125 145 126 146 /* ****************************************************************** */ 127 147 /* Declarations */