Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3974483ybh; Tue, 6 Aug 2019 04:26:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrA58bI91GDII1bFpTHxJwujqxkitc0nH6JOTfPftBoGBeJcfb6vWcYIoYSCxtioW2NFHa X-Received: by 2002:a17:902:4501:: with SMTP id m1mr2720791pld.264.1565090793606; Tue, 06 Aug 2019 04:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565090793; cv=none; d=google.com; s=arc-20160816; b=Ldz7oM2u2u/LT8kinOKnf+xVZR9KuUYepaFVF4klf45BnpwZvbzGnFj67X7YiTVmyM qYxOhVpe2/4k75jCIetPSzVTOXhykg6W+VfLAti8QZnI5UDHco3rvimlReUMaaVXxt+/ Qf2cwJbGBFT6uW/FoxiZK4AbQXziJIKCTYsowORxW0MQVYB1A6F4tR1cv6aZTx7Xwi0l PjjYmqkIMpl9b5vq0qINPi0wZPzymZSAy2kIC16VfNFZosD4QOsN78oZ3miDpu24gF0/ O9NZcES9Sic3B5k+oyvZkZSmhmlBJUS94pCKGN4MsrcY15/VV88zrDeA1kCa1K7BbbeN +CGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=2SraY1y2bpayPG711tXr/3+J7JdhoDzIdM0wxWWlRZE=; b=h9rbOXmPSX1JgbS9pgBIBf5xjRGrVrvOL42AUgiPz0MM/r2UClo/CF3si+cmXA7Rxq tC7Lh0JRRW250rJ1mFevlnGL/cdFE0haCYYMkgX5QXhtFCylxW1clkGD0EJo9heZzM87 iy6KaQvK0ILPPAjMnYuQBz9Fd8hk5TOoTG7jY4oTriCPMZbqTmvidDT+Yo90VSwjCXQJ cdKG2s3TUv4gr3P8YyXtLpZSyaAyL3PU/+nLnOh6fvsEdWs9MiqXTlzE3gtD7P0IiWPw t0w4v2ZDRrIpZd46/Ggt4E20y5iaT2FV9WUEES3wfukIS7koz6AYxWHaj9JSY7RmAmj/ pJJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si42700644plz.101.2019.08.06.04.26.17; Tue, 06 Aug 2019 04:26:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730471AbfHFLZm (ORCPT + 99 others); Tue, 6 Aug 2019 07:25:42 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:43241 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726783AbfHFLZm (ORCPT ); Tue, 6 Aug 2019 07:25:42 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1M8k65-1hz6Jj49jd-004lXd; Tue, 06 Aug 2019 13:25:11 +0200 From: Arnd Bergmann To: Andrew Morton Cc: Arnd Bergmann , Guenter Roeck , Andrey Konovalov , Andrey Ryabinin , Dmitry Vyukov , Will Deacon , Christoph Lameter , Mark Rutland , Ralf Baechle , Paul Burton , Vincenzo Frascino , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mips: fix vdso32 build, again Date: Tue, 6 Aug 2019 13:24:50 +0200 Message-Id: <20190806112509.3244608-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transf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VnYTg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The generic vdso support adds the same #if hack in two places, asm/vdso/vdso.h and config-n32-o32-env.c, but only the second is actually used. The result lacks the BUILD_VDSO32_64 macro, and that triggers a build error: ./include/linux/page-flags-layout.h:95:2: error: #error "Not enough bits in page flags" Move the macro into the other place, and remove the duplicated bits. Reported-by: Guenter Roeck Fixes: ee38d94a0ad8 ("page flags: prioritize kasan bits over last-cpuid") Fixes: 24640f233b46 ("mips: Add support for generic vDSO") Signed-off-by: Arnd Bergmann --- Please fold into the vdso patch --- arch/mips/include/asm/vdso/vdso.h | 11 ----------- arch/mips/vdso/config-n32-o32-env.c | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/arch/mips/include/asm/vdso/vdso.h b/arch/mips/include/asm/vdso/vdso.h index 3b96db735f7f..737ddfc3411c 100644 --- a/arch/mips/include/asm/vdso/vdso.h +++ b/arch/mips/include/asm/vdso/vdso.h @@ -6,17 +6,6 @@ #include -#if _MIPS_SIM != _MIPS_SIM_ABI64 && defined(CONFIG_64BIT) - -/* Building 32-bit VDSO for the 64-bit kernel. Fake a 32-bit Kconfig. */ -#define BUILD_VDSO32_64 -#undef CONFIG_64BIT -#define CONFIG_32BIT 1 -#ifndef __ASSEMBLY__ -#include -#endif -#endif - #ifndef __ASSEMBLY__ #include diff --git a/arch/mips/vdso/config-n32-o32-env.c b/arch/mips/vdso/config-n32-o32-env.c index da4994b2b3e5..7f8d957abd4a 100644 --- a/arch/mips/vdso/config-n32-o32-env.c +++ b/arch/mips/vdso/config-n32-o32-env.c @@ -12,6 +12,7 @@ #define CONFIG_32BIT 1 #define CONFIG_GENERIC_ATOMIC64 1 +#define BUILD_VDSO32_64 #endif -- 2.20.0