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>
This commit is contained in:
parent
6f791bef76
commit
ecaf5fa0a5
1 changed files with 9 additions and 11 deletions
|
@ -113,17 +113,6 @@
|
||||||
#define SENSOR_PREFIX "ibm,sensor-"
|
#define SENSOR_PREFIX "ibm,sensor-"
|
||||||
#define cel_to_fahr(x) ((x*9/5)+32)
|
#define cel_to_fahr(x) ((x*9/5)+32)
|
||||||
|
|
||||||
|
|
||||||
/* Globals */
|
|
||||||
static struct rtas_sensors sensors;
|
|
||||||
static struct device_node *rtas_node = NULL;
|
|
||||||
static unsigned long power_on_time = 0; /* Save the time the user set */
|
|
||||||
static char progress_led[MAX_LINELENGTH];
|
|
||||||
|
|
||||||
static unsigned long rtas_tone_frequency = 1000;
|
|
||||||
static unsigned long rtas_tone_volume = 0;
|
|
||||||
|
|
||||||
/* ****************STRUCTS******************************************* */
|
|
||||||
struct individual_sensor {
|
struct individual_sensor {
|
||||||
unsigned int token;
|
unsigned int token;
|
||||||
unsigned int quant;
|
unsigned int quant;
|
||||||
|
@ -134,6 +123,15 @@ struct rtas_sensors {
|
||||||
unsigned int quant;
|
unsigned int quant;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Globals */
|
||||||
|
static struct rtas_sensors sensors;
|
||||||
|
static struct device_node *rtas_node = NULL;
|
||||||
|
static unsigned long power_on_time = 0; /* Save the time the user set */
|
||||||
|
static char progress_led[MAX_LINELENGTH];
|
||||||
|
|
||||||
|
static unsigned long rtas_tone_frequency = 1000;
|
||||||
|
static unsigned long rtas_tone_volume = 0;
|
||||||
|
|
||||||
/* ****************************************************************** */
|
/* ****************************************************************** */
|
||||||
/* Declarations */
|
/* Declarations */
|
||||||
static int ppc_rtas_sensors_show(struct seq_file *m, void *v);
|
static int ppc_rtas_sensors_show(struct seq_file *m, void *v);
|
||||||
|
|
Loading…
Add table
Reference in a new issue