Skip to content

Commit

Permalink
ARM: shmobile: emev2: Move declaration of emev2_smp_ops to emev2.h
Browse files Browse the repository at this point in the history
make C=1:

    arch/arm/mach-shmobile/smp-emev2.c:51:29: warning: symbol 'emev2_smp_ops' was not declared. Should it be static?

To fix this, move the forward declaration of emev2_smp_ops to a header
file, and include it where appropriate.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Geert Uytterhoeven authored and Simon Horman committed Feb 19, 2016
1 parent 247ac89 commit c58b31a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions arch/arm/mach-shmobile/emev2.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __ASM_EMEV2_H__
#define __ASM_EMEV2_H__

extern const struct smp_operations emev2_smp_ops;

#endif /* __ASM_EMEV2_H__ */
4 changes: 2 additions & 2 deletions arch/arm/mach-shmobile/setup-emev2.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>

#include "common.h"
#include "emev2.h"

static const char *const emev2_boards_compat_dt[] __initconst = {
"renesas,emev2",
NULL,
};

extern const struct smp_operations emev2_smp_ops;

DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)")
.smp = smp_ops(emev2_smp_ops),
.init_early = shmobile_init_delay,
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-shmobile/smp-emev2.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
#include <linux/delay.h>
#include <asm/smp_plat.h>
#include <asm/smp_scu.h>

#include "common.h"
#include "emev2.h"

#define EMEV2_SCU_BASE 0x1e000000
#define EMEV2_SMU_BASE 0xe0110000
Expand Down

0 comments on commit c58b31a

Please sign in to comment.