Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2940183pxv; Sun, 18 Jul 2021 06:08:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCvnbPtRnrSbeVo2wDsonadiUo/0fdMGtGrvg4A5AKAiJ/7dbSEauusi09Pm04Y64Qb0Pi X-Received: by 2002:a2e:9c58:: with SMTP id t24mr18023416ljj.411.1626613703455; Sun, 18 Jul 2021 06:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626613703; cv=none; d=google.com; s=arc-20160816; b=eiQnQI5UGaC5ie/8kydmFKLS5eo+MBteH8oaUlaoPu74kOXtEEzYufqxFOoPjOf2kQ g+sCaaRiLfaPj0V1lqZ14cNhTqyPZF4UmmgUgRy7iFGP6nk5gjITB0HU1HOBXipxJIRc YOFzx53hMabXfzlKKEVwkPPHvs7TDSSylFcCQKZs+dKJnm/7JIitkcoOY44OEc63vbKZ boI6UsxevKhgQ9xQ/X25gtl8976r4SwUW+CElS+C8LO43r/iyG7y85RKjO5sbzdG6V1Z bgbP0xvlk5QunJK3LBviUgBAaHeK8X2zl1LIJBl1tIjoptjnRbo/J6/s6RhElznYbdRt j63g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=yhIG4/mhI0KryuwCf2e2wfoiwF06SUSrgf+QazUPih0=; b=dq7+nkcQNWCzRpFSEzLqJydmvLTs7vAa1Zy5QsIUKAhUTF60AboklOkaAepJVwll6u JVy1PvlwsqO349HRAqMWeiGo64gK33zB6OBsWPyxgZP+hmw3Q7IbrPcTuJLK2hbQ50No 7YNCusiFqRzH4yNqppPID92Rcw8JfU8yf+psLwXrpC97v6ZIuOW2yeNxx+NFGphXCc/Y PQbLVNyNFmcC5e3Z/a4gyxW3W+FJoKXrKi0aW59ncsj4L+wd+srZaj+seWtAQVd+s3Tp o7+RVsf9hLPSad4mZL1s6hliyxlobfo7TlHeKYT2N/btrG4W/PpakXWtSuBC+eyi5WvU lHzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=HVdJHdW3; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si27626056lfh.307.2021.07.18.06.07.55; Sun, 18 Jul 2021 06:08:23 -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=@nifty.com header.s=dec2015msa header.b=HVdJHdW3; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233803AbhGRNJQ (ORCPT + 99 others); Sun, 18 Jul 2021 09:09:16 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:34946 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232859AbhGRNJQ (ORCPT ); Sun, 18 Jul 2021 09:09:16 -0400 X-Greylist: delayed 1753 seconds by postgrey-1.27 at vger.kernel.org; Sun, 18 Jul 2021 09:09:15 EDT Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 16ID5rKn018956; Sun, 18 Jul 2021 22:05:54 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 16ID5rKn018956 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1626613554; bh=yhIG4/mhI0KryuwCf2e2wfoiwF06SUSrgf+QazUPih0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HVdJHdW33JE2DKbYfa52ylLKWvow/QKW+Yz0USvVhpnEvfuEHxhuTA5H86pDxTZ+F qT4ZlLQ+BV9Ay6N7WaPiFo6YQ79aBS6t2ABBWz0z7IA9XOn/D0HG0qchorRPIkr9es QodHbUu9t1vqFK80IDvdG2hHE4cclWUOtY34qw0MhHl+ngoQsEV+oV+M4qeq2J39EA e4Mwqu/DhVIxU2/y3kqsMp8A1lL4WZjyL2Sji9RaxXxTxQhyMiRwbXs8QrqaA53NrC F3pG5WzpL98QsvnBocc4guS3ZqqBdDgrljZfwhemCXpj43JvxTPUM47ywxxXGpkv8Z Bz43S/iXaMPfA== X-Nifty-SrcIP: [209.85.210.171] Received: by mail-pf1-f171.google.com with SMTP id b12so13714554pfv.6; Sun, 18 Jul 2021 06:05:54 -0700 (PDT) X-Gm-Message-State: AOAM531DRPJCD29rOx9WUe7RmLq52AC1esmdsOSE1LhQFayW7A1cqjRc w7w5ToJzAjIEaEgZgM26RcFfk8IRoN1jFz6um9Q= X-Received: by 2002:a62:1d84:0:b029:304:5af1:65f6 with SMTP id d126-20020a621d840000b02903045af165f6mr20225303pfd.80.1626613553400; Sun, 18 Jul 2021 06:05:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Sun, 18 Jul 2021 22:05:16 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -mm] fixup "Decouple build from userspace headers" To: Alexey Dobriyan Cc: Andrew Morton , Linux Kbuild mailing list , Linux Kernel Mailing List , linux-arch , Arnd Bergmann , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 18, 2021 at 9:36 PM Masahiro Yamada wrote: > > On Fri, Jul 16, 2021 at 6:15 AM Alexey Dobriyan wrote: > > > > 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 ++-- I did not compile-test it yet, but I see more inclusion. crypto/aegis128-neon-inner.c: #ifdef CONFIG_ARM64 #include #define AES_ROUND "aese %0.16b, %1.16b \n\t aesmc %0.16b, %0.16b" #else #include #define AES_ROUND "aese.8 %q0, %q1 \n\t aesmc.8 %q0, %q0" #endif Can you test crypto/aegis128-neon-inner.c with CONFIG_ARM64=n (i.e. CONFIG_ARM=y) ? > > 3 files changed, 4 insertions(+), 4 deletions(-) > > > OK. Perhaps, we can import and > into the kernel tree as we did for , > then remove "-isystem $(shell $(CC) -print-file-name=include)" > entirely, but I did not look into it. > > > If we can avoid the arm_neon.h mess, > we can clean up arch/arm/include/uapi/asm/types.h as well. > It is a possible future work. > > Anyway, could you add some comments? > (see blew) > > > > > --- 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 > > Can you add comment, # for > > > +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) > > Can you add comment, # for > > > +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) > > Can you add comment, # for > > > +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 > > Can you add comment, # for > > > +NEON_FLAGS := -ffreestanding -isystem $(shell $(CC) -print-file-name=include) > > ifeq ($(ARCH),arm) > > NEON_FLAGS += -march=armv7-a -mfloat-abi=softfp -mfpu=neon > > endif > > > > -- > Best Regards > Masahiro Yamada -- Best Regards Masahiro Yamada