linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Juergen Gross <jgross@suse.com>,
	Helmut Grohne <helmut.grohne@intenta.de>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will.deacon@arm.com>,
	Russell King - ARM Linux <linux@armlinux.org.uk>,
	Paul Durrant <paul.durrant@citrix.com>,
	Ben Hutchings <ben@decadent.org.uk>,
	Linux ARM <linux-arm-kernel@lists.infradead.org>
Subject: Re: ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined!
Date: Tue, 5 Mar 2019 09:08:18 +0100	[thread overview]
Message-ID: <CAK8P3a2ZXcESb2Daw4AYE7qb4fT57KdRiiu1AeTgVW1W2Zt-JA@mail.gmail.com> (raw)
In-Reply-To: <c8f98a0f-a4f7-e995-e541-db25c5147d59@oracle.com>

On Mon, Mar 4, 2019 at 11:49 PM Boris Ostrovsky
<boris.ostrovsky@oracle.com> wrote:
> On 3/4/19 5:28 PM, Catalin Marinas wrote:
> > On Mon, Mar 04, 2019 at 05:04:10PM -0500, Boris Ostrovsky wrote:
> >> On 12/18/18 8:21 AM, Catalin Marinas wrote:
> >>> On Tue, Dec 18, 2018 at 10:09:09AM +0000, Russell King wrote:
> >>>> On Tue, Dec 18, 2018 at 10:36:32AM +0100, Helmut Grohne wrote:
> >>>>> During a compile test of v4.20-rc7 for armhf (cross build), I
> >>>>> encountered:
> >>>>>
> >>>>> ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined!
> >>>>>
> >>>>> Some searching brought up c5157101e77 ("arm64: mm: Export
> >>>>> __sync_icache_dcache() for xen-privcmd"), which fixes a very similar
> >>>>> problem for arm64. Is that commit maybe also needed for arm?
> >>>> I would rather not export that function for drivers to abuse.
> >> (I am reviving this thread because Arnd submitted a patch to work around
> >> this issue
> >> https://lore.kernel.org/lkml/20190304204826.2414365-1-arnd@arndb.de/ )
> >>
> >> Even when the same routine in arm64 is exported for this very reason?
> >>
> >> The patch above it going into a lot of trouble to make things work so I
> >> am hoping this can be re-considered.
> > It's Russell's decision whether to export this or not for arch/arm/.
>
> OK, I didn't realize there are different maintainers for arm and arm64.
>
> In any case, the main reason I am asking this question is because the
> two architectures have different policies for (what appears to me) a
> very similar interface. If __sync_icache_dcache() is kept private in
> arm, should then c5157101e77 be reverted (assuming Arnd's patch goes in)?

I don't think it make much of a difference. All callers are in the arch/, mm/,
drivers/xen, and fs/dax, and this is the only one that can currently be
a module, so I don't think we would need it otherwise.

       Arnd

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2019-03-05  8:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-18  9:36 ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined! Helmut Grohne
2018-12-18 10:09 ` Russell King - ARM Linux
2018-12-18 13:21   ` Catalin Marinas
2019-03-04 22:04     ` Boris Ostrovsky
2019-03-04 22:28       ` Catalin Marinas
2019-03-04 22:49         ` Boris Ostrovsky
2019-03-05  8:08           ` Arnd Bergmann [this message]
2018-12-18 21:53 ` Ben Hutchings

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=CAK8P3a2ZXcESb2Daw4AYE7qb4fT57KdRiiu1AeTgVW1W2Zt-JA@mail.gmail.com \
    --to=arnd@arndb.de \
    --cc=ben@decadent.org.uk \
    --cc=boris.ostrovsky@oracle.com \
    --cc=catalin.marinas@arm.com \
    --cc=helmut.grohne@intenta.de \
    --cc=jgross@suse.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux@armlinux.org.uk \
    --cc=paul.durrant@citrix.com \
    --cc=will.deacon@arm.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).