From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753332AbdEQVNf (ORCPT ); Wed, 17 May 2017 17:13:35 -0400 Received: from www17.your-server.de ([213.133.104.17]:47019 "EHLO www17.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750944AbdEQVNc (ORCPT ); Wed, 17 May 2017 17:13:32 -0400 X-Greylist: delayed 1898 seconds by postgrey-1.27 at vger.kernel.org; Wed, 17 May 2017 17:13:32 EDT Message-ID: <1495053712.2984.5.camel@m3y3r.de> Subject: [PATCH] um: Don't build arch/x86/um/user-offsets.s with gcc plugins From: Thomas Meyer To: Linux Kernel Mailing List , user-mode-linux-devel Date: Wed, 17 May 2017 22:41:52 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-2.fc25) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Sender: thomas@m3y3r.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For some reasons I don't know users-offsets.s get's build before the gcc-plugins itself. This patch fixes the problem by not using the gcc-plugins for building user-offsets.s make order example: $ make ARCH=um   CHK     include/generated/uapi/linux/version.h   HOSTCC  scripts/basic/fixdep   HOSTCC  scripts/basic/bin2c   HOSTCC  scripts/unifdef   CC      arch/x86/um/user-offsets.s   CHK     include/generated/user_constants.h   CHK     include/config/kernel.release   CHK     include/generated/utsrelease.h   HOSTCXX -fPIC scripts/gcc-plugins/latent_entropy_plugin.o   HOSTLLD -shared scripts/gcc-plugins/latent_entropy_plugin.so   HOSTCXX -fPIC scripts/gcc-plugins/structleak_plugin.o   HOSTLLD -shared scripts/gcc-plugins/structleak_plugin.so Signed-off-by: Thomas Meyer ---  arch/x86/um/Makefile | 2 +-  1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/um/Makefile b/arch/x86/um/Makefile index 46cbbfe..d67c78a 100644 --- a/arch/x86/um/Makefile +++ b/arch/x86/um/Makefile @@ -36,7 +36,7 @@ subarch-$(CONFIG_MODULES) += ../kernel/module.o  USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o    extra-y += user-offsets.s -$(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \ +$(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(filter-out $(GCC_PLUGINS_CFLAGS), $(USER_CFLAGS) ) \   -Iarch/x86/include/generated    UNPROFILE_OBJS := stub_segv.o