[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161121184640.gtzvu4pfwy2p5rcb@perseus.defre.kleine-koenig.org>
Date: Mon, 21 Nov 2016 19:46:44 +0100
From: Uwe Kleine-König <uwe@...ine-koenig.org>
To: Arnd Bergmann <arnd@...db.de>
Cc: Nicholas Piggin <npiggin@...il.com>,
Russell King - ARM Linux <linux@...linux.org.uk>,
Michal Marek <mmarek@...e.com>,
Adam Borowski <kilobyte@...band.pl>,
Omar Sandoval <osandov@...ndov.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
adobriyan@...il.com, sfr@...b.auug.org.au, viro@...iv.linux.org.uk,
linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arch@...r.kernel.org, 844530@...s.debian.org
Subject: Re: [1/2] kbuild: provide include/asm/asm-prototypes.h for ARM
Hello,
On Mon, Oct 24, 2016 at 05:05:26PM +0200, Arnd Bergmann wrote:
> This adds an asm/asm-prototypes.h header for ARM to fix the
> broken symbol versioning for symbols exported from assembler
> files.
>
> In addition to the header, we have to do these other small
> changes:
>
> - move the exports from bitops.h to {change,clear,set,...}bit.S
> - move the exports from csumpartialgeneric.S into the files
> including it
>
> I couldn't find the correct prototypes for the compiler builtins,
> so I went with the fake 'void f(void)' prototypes that we had
> before.
>
> This leaves the mmioset/mmiocpy function for now, as it's not
> obvious how to best handle them.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
In my test builds of 4.9-rc5 plus
4efca4ed05cb ("kbuild: modversions for EXPORT_SYMBOL() for asm")
cc6acc11cad1 ("kbuild: be more careful about matching preprocessed asm ___EXPORT_SYMBOL")
(which are in -rc6) I got many warnings à la:
WARNING: "memset" [drivers/media/usb/airspy/airspy.ko] has no CRC!
and booting the resulting kernel failed with messages of the type:
[ 3.024126] usbcore: no symbol version for __memzero
[ 3.029107] usbcore: Unknown symbol __memzero (err -22)
so hardly any module could be loaded. modprobe -f works however, but
that's not what my initramfs does.
With this patch and https://patchwork.kernel.org/patch/9392291/ ("ARM:
move mmiocpy/mmioset exports to io.c") I could compile a kernel without
CRC warnings and it boots fine. So it would be great to get these two
patches into 4.9.
Thanks
Uwe
Download attachment "signature.asc" of type "application/pgp-signature" (456 bytes)
Powered by blists - more mailing lists