Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754371AbcKUSy7 (ORCPT ); Mon, 21 Nov 2016 13:54:59 -0500 Received: from arcturus.kleine-koenig.org ([78.47.169.190]:50216 "EHLO arcturus.kleine-koenig.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752379AbcKUSy5 (ORCPT ); Mon, 21 Nov 2016 13:54:57 -0500 X-Greylist: delayed 485 seconds by postgrey-1.27 at vger.kernel.org; Mon, 21 Nov 2016 13:54:56 EST Date: Mon, 21 Nov 2016 19:46:44 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Arnd Bergmann Cc: Nicholas Piggin , Russell King - ARM Linux , Michal Marek , Adam Borowski , Omar Sandoval , Linus Torvalds , adobriyan@gmail.com, sfr@canb.auug.org.au, viro@zeniv.linux.org.uk, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, 844530@bugs.debian.org Subject: Re: [1/2] kbuild: provide include/asm/asm-prototypes.h for ARM Message-ID: <20161121184640.gtzvu4pfwy2p5rcb@perseus.defre.kleine-koenig.org> References: <14534456.e6dv16VA3R@wuerfel> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lti2qvupxj3yw5xx" Content-Disposition: inline In-Reply-To: <14534456.e6dv16VA3R@wuerfel> User-Agent: NeoMutt/20161104 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2281 Lines: 70 --lti2qvupxj3yw5xx Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > In addition to the header, we have to do these other small > changes: >=20 > - move the exports from bitops.h to {change,clear,set,...}bit.S > - move the exports from csumpartialgeneric.S into the files > including it >=20 > 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. >=20 > This leaves the mmioset/mmiocpy function for now, as it's not > obvious how to best handle them. >=20 > Signed-off-by: Arnd Bergmann 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 =E0 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 --lti2qvupxj3yw5xx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAABCgAGBQJYM0ENAAoJEMH8FHityuwJguMH/jNONORjAiyzMn2M5Zkkva9l A3VfV4SruLIv1i9lxjtlxYY6iPu2gEQLjaUAX7gCXxIPYaYCukbzCxyhpfVEaVbV cSs02jMGs/aeZ0sjaranOu98t14V2G5jlejL8i4L1SohqAAgM1dXttOeNqasZHUG yoNTDfHW20RONuOW3Yc3u+EjnmhRqT79QN9pzLK7G5f0U/IuwFESudXCKRcwxf9q w+Hjo3Spae0hYhzvr30iQg8VaZV8aYEVgOHZQ8n8CXQ05hHACGzkIP757TyCmCTK kcNTPbRhs4pQNt9abeoyJBvbHlw23sa0+hreyOloFIYP8jkOGwX2khe/XEyxGok= =yUkK -----END PGP SIGNATURE----- --lti2qvupxj3yw5xx--