Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759892AbcLAN6q (ORCPT ); Thu, 1 Dec 2016 08:58:46 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:63954 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759838AbcLAN6n (ORCPT ); Thu, 1 Dec 2016 08:58:43 -0500 From: Arnd Bergmann To: Linus Torvalds Cc: Adam Borowski , Greg Kroah-Hartman , Linux Kbuild mailing list , Michal Marek , Ben Hutchings , Debian kernel maintainers , "linux-arch@vger.kernel.org" , Ingo Molnar , Nicholas Piggin , Linux Kernel Mailing List Subject: Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm Date: Thu, 01 Dec 2016 14:58:17 +0100 Message-ID: <2899250.iZaPagXLk8@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: <20161129131922.GA31466@angband.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:E6xw73Sbn5QO/Bp1pk6GGgTzYnGwG5ulewoHZek6wyfnQu1fw6G xAh8gP05BzEPCWN8CGFNI+uHKxxMGfCt8IQ4R2B6RD2lnOvhJWhmZmwvzE1W/sqUHtEaqJ3 Ir/6boTTYaa6+k0VsUx3V7932kboPa2V2JZPb0oWnE+w8HOwAvZKGbgKhQ1B1f27VhUuLYd FOSODgsDE7eHxWJcccbPg== X-UI-Out-Filterresults: notjunk:1;V01:K0:rKIjmQPu+qk=:/46YWDDHRKs2mDSW8+JB7P NeVB9u8ffqyZYdI7DyWK0u+6Q0YIsNP2HJacLK5OikbgoT4rp72KE+dF9hxZqRHDNRxQTNE0Q yFb03LefSI1XYPDCc40+eqW0u1DFHQSYhzzcasL11Hr5KH39RZ705l0jjb9P8TEAux1M3ckHq cmWmaHt+BAl96uE9cTtDAcyRf0XuQXpSXQW1vDD0hV+9erAqQPXNMGH1QXgs8+ecug340s7np W1ksR45l84J3nzRAdgJjAN3qYsWULy+mA/+W6Q/b/Dt4TEywVK8M/Tjk5NPognZmVfh7Al3IA tT0XkkFJkDH+XfXrtKqP1Fjtg43ezyHtg38H6MH32xCnwCSoO5zBtuNcov4TtOivr6K1HF9sO L3gcxi+3bGO/ukGUwzlRyidOZfXfnI8OUFnMCQ06Ztn9aNwILI3wP1MCxNZdy8IuwnXkxsMri FEzTyYSTlW+yYlfuPJSKSYPNbhqLn4bssMdeVco3JhW291fFSH0v3jQIGBs9hy7PQH6QHXNaQ gZCbNHhFuMrYwDpOpY+F95ABZsm1wS00ZbX0LlkCM74Jf5MVdFKLN0xNh0+wOaXt76tQxG6/F 8FT9c/tcL8mvFT59ZjpdRurznvAsVgQ2q2a1WwAVo1j1jiSowUkEShSs4lNk7zwU8LOg4FAlI lItTHm+GYv1oQcyM5crKM4NMrzqU2qBFvLVS88UaQgxQIbkePQXUhp44RgWvj6mq8JRzM0lIf MnaA5dSUoNb3grFO Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1769 Lines: 32 On Tuesday, November 29, 2016 9:14:46 AM CET Linus Torvalds wrote: > On Tue, Nov 29, 2016 at 9:10 AM, Linus Torvalds > wrote: > > > > So quite frankly, I don't want to make our kernel sources worse due to > > broken shit tools getting something wrong that we shouldn't even care > > about. > > And yes, I'm on binutils 2.26 (with no issues), so it could be that > it's 2.27 that triggers this. > > We could make the pr_warn_once() mention "broken binutils?" so that > people know why the warning happens. I've tried to get to the bottom of this, but couldn't find anything related to the toolchain version. I've tried binutils 2.23, 2.24, 2.26 and 2.27, and also gcc-7.0, gcc-5.4.1 and gcc-4.9.3, but with today's linux-next, I always get WARNING: EXPORT symbol "mcount" [arch/x86/entry/built-in.ko] version generation failed, symbol will not be versioned. WARNING: EXPORT symbol "mcount" [arch/x86/built-in.ko] version generation failed, symbol will not be versioned. WARNING: EXPORT symbol "cmpxchg8b_emu" [vmlinux] version generation failed, symbol will not be versioned. WARNING: EXPORT symbol "empty_zero_page" [vmlinux] version generation failed, symbol will not be versioned. WARNING: EXPORT symbol "mcount" [vmlinux] version generation failed, symbol will not be versioned. WARNING: EXPORT symbol "cmpxchg8b_emu" [vmlinux] version generation failed, symbol will not be versioned. WARNING: EXPORT symbol "empty_zero_page" [vmlinux] version generation failed, symbol will not be versioned. WARNING: EXPORT symbol "mcount" [vmlinux] version generation failed, symbol will not be versioned. Out of 12 randconfig builds that had CONFIG_MODVERSIONS enabled, all 12 had this problem, though not always with all the symbols. Arnd