From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Cc: tony@atomide.com, nicolas.pitre@linaro.org, arnd@arndb.de,
pali.rohar@gmail.com, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/3] ARM: ATAGS: move atags.h to include/asm so it can be included by files outside kernel/
Date: Thu, 24 Dec 2015 15:35:36 +0000 [thread overview]
Message-ID: <20151224153536.GJ30871@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1450965658-2675-2-git-send-email-ivo.g.dimitrov.75@gmail.com>
On Thu, Dec 24, 2015 at 04:00:56PM +0200, Ivaylo Dimitrov wrote:
> This is needed by a follow-up patch that saves atags on RX51 device
>
> Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
> ---
> arch/arm/include/asm/atags.h | 20 ++++++++++++++++++++
> arch/arm/kernel/atags.h | 20 --------------------
Please generate diffs with -M so that it can detect renames and provide
a more sensible diffstat and patch output (so we can see any changes
through the rename.) However...
> arch/arm/kernel/atags_parse.c | 3 +--
> arch/arm/kernel/setup.c | 3 +--
> 4 files changed, 22 insertions(+), 24 deletions(-)
> create mode 100644 arch/arm/include/asm/atags.h
> delete mode 100644 arch/arm/kernel/atags.h
>
> diff --git a/arch/arm/include/asm/atags.h b/arch/arm/include/asm/atags.h
> new file mode 100644
> index 0000000..ec4164d
> --- /dev/null
> +++ b/arch/arm/include/asm/atags.h
> @@ -0,0 +1,20 @@
> +#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
> +const struct machine_desc *setup_machine_tags(phys_addr_t __atags_pointer,
> + unsigned int machine_nr);
> +#else
> +static inline const struct machine_desc *
> +setup_machine_tags(phys_addr_t __atags_pointer, unsigned int machine_nr)
> +{
> + early_print("no ATAGS support: can't continue\n");
> + while (true);
> + unreachable();
> +}
> +#endif
> diff --git a/arch/arm/kernel/atags.h b/arch/arm/kernel/atags.h
> deleted file mode 100644
> index ec4164d..0000000
> --- a/arch/arm/kernel/atags.h
> +++ /dev/null
> @@ -1,20 +0,0 @@
> -#ifdef CONFIG_ATAGS_PROC
> -extern void save_atags(struct tag *tags);
> -#else
> -static inline void save_atags(struct tag *tags) { }
> -#endif
I'd think I'd prefer moving just the above save_atags declaration to
arch/arm/include/asm/setup.h so we're not allowing the rest of this
to be exposed to anyone who includes asm/atags.h.
Thanks.
--
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
next prev parent reply other threads:[~2015-12-24 15:35 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-24 14:00 [PATCH 0/3] OMAP: RX51: save atags data to be exported on /proc/atags Ivaylo Dimitrov
2015-12-24 14:00 ` [PATCH 1/3] ARM: ATAGS: move atags.h to include/asm so it can be included by files outside kernel/ Ivaylo Dimitrov
2015-12-24 15:35 ` Russell King - ARM Linux [this message]
2015-12-24 16:37 ` [PATCH 0/2] OMAP: RX51: save atags data to be exported on /proc/atags Ivaylo Dimitrov
2015-12-24 16:37 ` [PATCH 1/2] ARM: ATAGS: move save_atags() to include/asm arch/arm/include/asm/setup.h Ivaylo Dimitrov
2015-12-24 17:48 ` Pali Rohár
2015-12-24 18:53 ` Tony Lindgren
2015-12-24 19:02 ` Ivaylo Dimitrov
2016-01-21 22:02 ` Tony Lindgren
2015-12-24 16:37 ` [PATCH 2/2] OMAP: RX51: save ATAGS data in the early boot stage Ivaylo Dimitrov
2015-12-24 17:49 ` Pali Rohár
2015-12-24 18:56 ` Tony Lindgren
2016-01-01 11:39 ` Ivaylo Dimitrov
2015-12-25 0:56 ` [PATCH 1/3] ARM: ATAGS: move atags.h to include/asm so it can be included by files outside kernel/ kbuild test robot
2015-12-24 14:00 ` [PATCH 2/3] ARM: ATAGS: Fix declaration of function save_atags Ivaylo Dimitrov
2015-12-24 14:00 ` [PATCH 3/3] OMAP: RX51: save ATAGS data in the early boot stage Ivaylo Dimitrov
2015-12-24 15:50 ` [PATCH 0/3] OMAP: RX51: save atags data to be exported on /proc/atags Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151224153536.GJ30871@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=arnd@arndb.de \
--cc=ivo.g.dimitrov.75@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=nicolas.pitre@linaro.org \
--cc=pali.rohar@gmail.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).