Skip to content

Commit

Permalink
ARM: 8495/1: ATAGS: move save_atags() to arch/arm/include/asm/setup.h
Browse files Browse the repository at this point in the history
So it can be used by code outside arch/arm/kernel/. Fix save_atags()
declaration to match its definition while at it.

Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Ivaylo Dimitrov authored and Russell King committed Jan 4, 2016
1 parent 5008efc commit 6e0306a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions arch/arm/include/asm/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@ extern int arm_add_memory(u64 start, u64 size);
extern void early_print(const char *str, ...);
extern void dump_machine_table(void);

#ifdef CONFIG_ATAGS_PROC
extern void save_atags(const struct tag *tags);
#else
static inline void save_atags(const struct tag *tags) { }
#endif

#endif
6 changes: 0 additions & 6 deletions arch/arm/kernel/atags.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
#ifdef CONFIG_ATAGS_PROC
extern void save_atags(struct tag *tags);
#else
static inline void save_atags(struct tag *tags) { }
#endif

void convert_to_tag_list(struct tag *tags);

#ifdef CONFIG_ATAGS
Expand Down

0 comments on commit 6e0306a

Please sign in to comment.