Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1298010

[PATCH 1/2] ARM: ATAGS: move save_atags() to include/asm arch/arm/include/asm/setup.h

From Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] ARM: ATAGS: move save_atags() to include/asm arch/arm/include/asm/setup.h
Date 2015-12-24 17:50 +0100
Message-ID <qJhfr-GU-9@gated-at.bofh.it> (permalink)
References <qJg9H-8uN-3@gated-at.bofh.it> <qJhfr-GU-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 arch/arm/include/asm/setup.h | 6 ++++++
 arch/arm/kernel/atags.h      | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h
index e0adb9f..3613d7e 100644
--- a/arch/arm/include/asm/setup.h
+++ b/arch/arm/include/asm/setup.h
@@ -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
diff --git a/arch/arm/kernel/atags.h b/arch/arm/kernel/atags.h
index ec4164d..edfa226 100644
--- a/arch/arm/kernel/atags.h
+++ b/arch/arm/kernel/atags.h
@@ -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
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] OMAP: RX51: save atags data to be exported on /proc/atags Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 15:10 +0100
  [PATCH 1/3] ARM: ATAGS: move atags.h to include/asm so it can be included by files outside kernel/ Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 15:10 +0100
    Re: [PATCH 1/3] ARM: ATAGS: move atags.h to include/asm so it can be  included by files outside kernel/ Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-12-24 16:40 +0100
      [PATCH 0/2] OMAP: RX51: save atags data to be exported on /proc/atags Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 17:50 +0100
        [PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 17:50 +0100
          Re: [PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage Pali Rohár <pali.rohar@gmail.com> - 2015-12-24 18:50 +0100
            Re: [PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage Tony Lindgren <tony@atomide.com> - 2015-12-24 20:00 +0100
              Re: [PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-01-01 12:50 +0100
        [PATCH 1/2] ARM: ATAGS: move save_atags() to include/asm arch/arm/include/asm/setup.h Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 17:50 +0100
          Re: [PATCH 1/2] ARM: ATAGS: move save_atags() to include/asm arch/arm/include/asm/setup.h Pali Rohár <pali.rohar@gmail.com> - 2015-12-24 18:50 +0100
            Re: [PATCH 1/2] ARM: ATAGS: move save_atags() to include/asm  arch/arm/include/asm/setup.h Tony Lindgren <tony@atomide.com> - 2015-12-24 20:00 +0100
              Re: [PATCH 1/2] ARM: ATAGS: move save_atags() to include/asm  arch/arm/include/asm/setup.h Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 20:10 +0100
  [PATCH 3/3] OMAP: RX51: save ATAGS data in the early boot stage Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2015-12-24 15:10 +0100
  Re: [PATCH 0/3] OMAP: RX51: save atags data to be exported on /proc/atags Arnd Bergmann <arnd@arndb.de> - 2015-12-24 17:00 +0100

csiph-web