Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp715880pxv; Thu, 15 Jul 2021 14:16:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEqOu9YlDrlHWylbBFrMgbBlezN45glOWAtjcisfCjB4mTXT6ZgjkpPIYQILtRFCDSdvDC X-Received: by 2002:a17:906:f743:: with SMTP id jp3mr7550625ejb.370.1626383796406; Thu, 15 Jul 2021 14:16:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383796; cv=none; d=google.com; s=arc-20160816; b=PcXg2GcvnyJ0idnFndaYfMn28HVYIvWz60v3gEh6+nHj9mtLWRc9avAbyFQiBSebKr WIBnx8I62OX7bjXui3EloCBHMWhPnB8GTm2DDBpVqsSEgWPLZbcWApiUCDbbG1oysE34 5bKFCOEoZPyNPn/IvKB1k4bwAvdxiB5CZW29/r9yow9dLDLU2KmE0AWBGngk3Nj0kct9 kZRZ8i3RM07GK7RmkczEHWxYUVJN5IEjDX3tcuR6f/fU7bqH1rWnVDUHDVdC8ls24W4O zU66UJOAnO0xzA/8jCMA8a7pmHxaCPNeFpDlB2TQiMXKJePTkUWK9w1S5zccEW8iqVU/ q2qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MY7GzL0TTJagxyhj55uchZnvkM+R3iPX/iP1Zqm7Osw=; b=gyvJyxQE2mrfIRmG93KunoQuOnolbZsCAFmeKe6wORn73fWrh30Ixzxh9ImoZCDb1R fU0OEre64US6pjS5dw3m/gaiv1OyqX4QQU7EGi+RFWA/1/B0RIohOmS6vBlKeVFapmbN opuRDfcxqujxvq1hT3yLzqw5aVaWGKk5B4BEnXalwg+IsBbDVSpfcGBUcyB/84cgSm98 BrE1GloNXnhtv8BKHrGA/BLfOFJ6IU2bhXhPcyyFIZ8DlY1fd1R7cnkEW7X4Ia2TcErI Fj4FvrC70jx8+tn+1/I136bBaY4u8wSEPEQiXX4RB9rjRtj8yuSyL6046ElwoU7yPlj+ ceCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PuM9n6MY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si8964676ejc.258.2021.07.15.14.16.12; Thu, 15 Jul 2021 14:16:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PuM9n6MY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229669AbhGOVSM (ORCPT + 99 others); Thu, 15 Jul 2021 17:18:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbhGOVSL (ORCPT ); Thu, 15 Jul 2021 17:18:11 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E32BFC06175F; Thu, 15 Jul 2021 14:15:17 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id c17so11567114ejk.13; Thu, 15 Jul 2021 14:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=MY7GzL0TTJagxyhj55uchZnvkM+R3iPX/iP1Zqm7Osw=; b=PuM9n6MYBfm1aFJtknucOtEaOfKFhT7rJ6prxgaTq0tMGzhCFoviRXGAqrZy2Vwfmi RV23t2HL4fIsxnG/IbfKlygk9jd3+dVn1PfWpuJ0EvTHWQFwkt108UBhR2OZluQlh6vh Z2HJ23ac+Xh/KC1s6Dq7XeutsO3x8fEMhmKsCfK6rtmbcftmuEG19n4uQTnDKtjxiV5B GIbQyI7as3SFztgYKnQwedqqU1AZEA23xqp/iuoeN73AJax/NWEucu0yP9QEYMW46lok NPIAKwOz66m1ce36uVfPjYBqV0v1Kv2Pz7lHHwqiosq8GzlOnm/alCW+70DYJ/1e7gDd NdnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MY7GzL0TTJagxyhj55uchZnvkM+R3iPX/iP1Zqm7Osw=; b=nahonw7jTvU+6S3rM8KErq686d3XnhmjwIx9dXVARbgDzt6LqTMkGnJ+7w6DP0fXzA cxCBY029NC/OGSMu4Ts8bDh48bnN7eo14ddsDAaiV11SxHUa/QKYIcKoM2a4KcR7yF0H PEI6S7Q/JmBsE9oQD8/5A2beb1GmuOSf32vxIc5dY4t1WCni79AlY7AoQb0W7WlJV9Wa NAtxIEe0AyxYf5IYeN0HZivfpUk8MTII+XqQ0FTolmU6khddn/g3YxMrq+kkeoQxwGCW XTcvQVW+9nAa1IHoF/+Gkvy3ADgtIf6GBRSBCRTRCUUUzZK/ZD0AMAWc9ErV44Y5/dLr 51LA== X-Gm-Message-State: AOAM5306msMe53VNTwwQ2fUBolMLWpMZbGxvB1+G8d2bO+CrHOaLR5qw +mYtTa0h4dg3pC2LgZXpRQ== X-Received: by 2002:a17:907:1b29:: with SMTP id mp41mr7432276ejc.459.1626383716565; Thu, 15 Jul 2021 14:15:16 -0700 (PDT) Received: from localhost.localdomain ([46.53.253.48]) by smtp.gmail.com with ESMTPSA id hq9sm2136434ejc.0.2021.07.15.14.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 14:15:16 -0700 (PDT) Date: Fri, 16 Jul 2021 00:15:14 +0300 From: Alexey Dobriyan To: akpm@linux-foundation.org Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, masahiroy@kernel.org, hch@infradead.org Subject: [PATCH -mm] fixup "Decouple build from userspace headers" Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow to find SIMD headers where necessary. Reported-by: kernel test robot Signed-off-by: Alexey Dobriyan --- fold into decouple-build-from-userspace-headers.patch arch/arm64/lib/Makefile | 2 +- arch/powerpc/lib/Makefile | 2 +- lib/raid6/Makefile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) --- a/arch/arm64/lib/Makefile +++ b/arch/arm64/lib/Makefile @@ -8,7 +8,7 @@ lib-y := clear_user.o delay.o copy_from_user.o \ ifeq ($(CONFIG_KERNEL_MODE_NEON), y) obj-$(CONFIG_XOR_BLOCKS) += xor-neon.o CFLAGS_REMOVE_xor-neon.o += -mgeneral-regs-only -CFLAGS_xor-neon.o += -ffreestanding +CFLAGS_xor-neon.o += -ffreestanding -isystem $(shell $(CC) -print-file-name=include) endif lib-$(CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE) += uaccess_flushcache.o --- a/arch/powerpc/lib/Makefile +++ b/arch/powerpc/lib/Makefile @@ -64,6 +64,6 @@ obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o obj-$(CONFIG_ALTIVEC) += xor_vmx.o xor_vmx_glue.o -CFLAGS_xor_vmx.o += -maltivec $(call cc-option,-mabi=altivec) +CFLAGS_xor_vmx.o += -maltivec $(call cc-option,-mabi=altivec) -isystem $(shell $(CC) -print-file-name=include) obj-$(CONFIG_PPC64) += $(obj64-y) --- a/lib/raid6/Makefile +++ b/lib/raid6/Makefile @@ -13,7 +13,7 @@ raid6_pq-$(CONFIG_S390) += s390vx8.o recov_s390xc.o hostprogs += mktables ifeq ($(CONFIG_ALTIVEC),y) -altivec_flags := -maltivec $(call cc-option,-mabi=altivec) +altivec_flags := -maltivec $(call cc-option,-mabi=altivec) -isystem $(shell $(CC) -print-file-name=include) ifdef CONFIG_CC_IS_CLANG # clang ppc port does not yet support -maltivec when -msoft-float is @@ -33,7 +33,7 @@ endif # The GCC option -ffreestanding is required in order to compile code containing # ARM/NEON intrinsics in a non C99-compliant environment (such as the kernel) ifeq ($(CONFIG_KERNEL_MODE_NEON),y) -NEON_FLAGS := -ffreestanding +NEON_FLAGS := -ffreestanding -isystem $(shell $(CC) -print-file-name=include) ifeq ($(ARCH),arm) NEON_FLAGS += -march=armv7-a -mfloat-abi=softfp -mfpu=neon endif