From: tixy@linaro.org (Jon Medhurst (Tixy))
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3] arm: Fix memory attribute inconsistencies when using fixmap
Date: Thu, 06 Apr 2017 14:46:43 +0100 [thread overview]
Message-ID: <1491486403.2950.3.camel@linaro.org> (raw)
In-Reply-To: <20170405224245.GA17774@n2100.armlinux.org.uk>
On Wed, 2017-04-05 at 23:42 +0100, Russell King - ARM Linux wrote:
> On Tue, Apr 04, 2017 at 08:31:27AM +0100, Ard Biesheuvel wrote:
> > diff --git a/arch/arm/include/asm/mmu.h b/arch/arm/include/asm/mmu.h
> > index a5b47421059d..80dfeb8ce8f2 100644
> > --- a/arch/arm/include/asm/mmu.h
> > +++ b/arch/arm/include/asm/mmu.h
> > @@ -1,6 +1,8 @@
> > #ifndef __ARM_MMU_H
> > #define __ARM_MMU_H
> >
> > +struct machine_desc;
> > +
> > #ifdef CONFIG_MMU
> >
> > typedef struct {
> > @@ -24,6 +26,8 @@ typedef struct {
> > #define ASID(mm) (0)
> > #endif
> >
> > +void early_mm_init(const struct machine_desc *mdesc);
> > +
> > #else
> >
> > /*
> > @@ -35,6 +39,8 @@ typedef struct {
> > unsigned long end_brk;
> > } mm_context_t;
> >
> > +static inline void early_mm_init(const struct machine_desc *mdesc) { }
> > +
>
> Why are we stuffing this into mmu.h? mmu.h is not the header file for
> arch/arm/mm/mmu.c - although they have the same base filename, they are
> not really related.
>
> asm/mmu.h is supposed to be a kernel-wide include file for the mm_context_t
> thing, and should not be filled with arch-private stuff.
>
> Please find a better location for this.
In arch/arm/mm/mm.h ?
Or as early_mm_init() is replacing early_paging_init()?in setup.c, and
that is currently handled by a local extern statement, keeping doing the
same? That keeps the diff neater which is a plus for a patch that should
be backported to stable kernels.
--
Tixy
next prev parent reply other threads:[~2017-04-06 13:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-04 7:31 [PATCH v3] arm: Fix memory attribute inconsistencies when using fixmap Ard Biesheuvel
2017-04-04 8:48 ` Jon Medhurst (Tixy)
2017-04-04 9:10 ` Ard Biesheuvel
2017-04-04 16:01 ` Jon Medhurst (Tixy)
2017-04-05 22:42 ` Russell King - ARM Linux
2017-04-06 13:46 ` Jon Medhurst (Tixy) [this message]
2017-04-06 13:49 ` Ard Biesheuvel
2017-04-06 16:03 ` [PATCH v4] " Jon Medhurst (Tixy)
2017-04-08 16:51 ` afzal mohammed
2017-04-10 10:16 ` Jon Medhurst (Tixy)
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=1491486403.2950.3.camel@linaro.org \
--to=tixy@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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).