Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp127962iob; Tue, 3 May 2022 13:11:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD5Q/Bf/g20Ah6a9EwQV2Ot8/ZqJ1pW5jhivZiFKzfVkn4lj7T2S5WquZ/rp+88eSWaH5A X-Received: by 2002:a63:590e:0:b0:39d:1a2b:5907 with SMTP id n14-20020a63590e000000b0039d1a2b5907mr15127587pgb.188.1651608674858; Tue, 03 May 2022 13:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651608674; cv=none; d=google.com; s=arc-20160816; b=D2sgEfiUOQGIUIWO4wgY5soiOBMPXXA0KyOjlC0dd8a9kb5Lp3aVB5IbkAqZvWcayR OQn1H00nVCpu3IgWWEYpMkkxZIGeqveLz1zGx3rqXjf8sSnrIOvKbXAfIEYNM//kLcFO NgZ5CsoP/762x3WCJnI4XqV9rYVrbSHe9pCsI1gJ05cMHr3EPcx6SNb8x+3KfB5HR9tC v6fNo7keen2f/IYLvGTfESMaLyWpa6F6ZYE60bBPts6k3KKGkP54skWl5pUZzK42I4Bm iC8zAhmqO9cJp/eKTa3p9cQ6b/sB31X3pdRIyFItCEM37zbLihITYRVId+JuD6ajq923 mj0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=lFeLxiBtS3DhGRmXhZMSB+aMBqMhWfKUO2L1uE5pR4Y=; b=agUzeB8qg3sG6Zmdav3keNme8uAPciwj9pPEfxm+iA1YmbJTs3ngXIx/OxwshTi6Zc Cih+URo+ND/zXtOx7EcI7rVhPVP1AhDrNBwQKMfThvoRVHXDn+6oP83ZqtfwNqvkVgEP s8v5qeknggGyh+Kc1kh9Kh0MWYDt8Njf1uXNHxDzjs7bhN6S0mMSy4bVYQaABMqRl6xg 7GtmrvGwQP5Avfa/XFtfi+UAHZ18H3Z85KqeRUJVUyThbQb3nKNkKnU03cS4J4MbXygM /Tp7eLtjKVoqvBvJP2BW3LGdKXy5KAEdNd/3zw9+4urrfK1Ly7C0bJz8uan977NwBdtV TlLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s196-20020a632ccd000000b003a224fc174esi17561101pgs.9.2022.05.03.13.10.38; Tue, 03 May 2022 13:11:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236592AbiECOG6 (ORCPT + 99 others); Tue, 3 May 2022 10:06:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235030AbiECOG4 (ORCPT ); Tue, 3 May 2022 10:06:56 -0400 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CBB91B79E; Tue, 3 May 2022 07:03:24 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4Kt1rp48Bmz9sT9; Tue, 3 May 2022 16:03:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RhOOOXYqV50a; Tue, 3 May 2022 16:03:22 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4Kt1rp30xWz9sT8; Tue, 3 May 2022 16:03:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4DB408B77B; Tue, 3 May 2022 16:03:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id VIfoSnOpUyFD; Tue, 3 May 2022 16:03:22 +0200 (CEST) Received: from [192.168.202.20] (unknown [192.168.202.20]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2975E8B763; Tue, 3 May 2022 16:03:21 +0200 (CEST) Message-ID: <8e1e4a9c-6ef8-a1a7-ad1f-84b5bf2a0b7d@csgroup.eu> Date: Tue, 3 May 2022 16:03:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [next] powerpc: multiple definition of `____cacheline_aligned'; sound/core/oss/pcm_oss.o:(.bss+0x40): first defined here Content-Language: fr-FR From: Christophe Leroy To: Naresh Kamboju , Linux-Next Mailing List , open list , linuxppc-dev , lkft-triage@lists.linaro.org, Peter Collingbourne , Andrew Morton , "linux-mm@kvack.org" Cc: Stephen Rothwell , Baoquan He , Heiko Carstens , Matthew Wilcox , aul Mackerras , Christoph Hellwig References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 03/05/2022 à 15:10, Christophe Leroy a écrit : > > > Le 29/04/2022 à 16:45, Naresh Kamboju a écrit : >> Following powerpc builds failed on Linux next-20220428 and next-20220429. >> >> Regressions found on powerpc: >>     - gcc-11-ppc64e_defconfig >>     - gcc-10-ppc64e_defconfig >>     - gcc-9-ppc64e_defconfig >>     - gcc-8-ppc64e_defconfig >>     - clang-14-ppc64e_defconfig >>     - clang-nightly-ppc64e_defconfig >>     - clang-13-ppc64e_defconfig >> >> >> Build error: >> ------------- >> Error: Section .bss not empty in prom_init.c >> make[3]: *** [arch/powerpc/kernel/Makefile:191: >> arch/powerpc/kernel/prom_init_check] Error 1 >> make[3]: Target '__build' not remade because of errors. >> make[2]: *** [scripts/Makefile.build:595: arch/powerpc/kernel] Error 2 >> make[2]: Target '__build' not remade because of errors. >> make[1]: *** [Makefile:1996: arch/powerpc] Error 2 >> powerpc64le-linux-gnu-ld: sound/core/oss/pcm_plugin.o:(.bss+0x0): >> multiple definition of `____cacheline_aligned'; >> sound/core/oss/pcm_oss.o:(.bss+0x40): first defined here >> make[4]: *** [scripts/Makefile.build:530: >> sound/core/oss/snd-pcm-oss.o] Error 1 >> make[4]: Target '__build' not remade because of errors. >> make[3]: *** [scripts/Makefile.build:595: sound/core/oss] Error 2 >> powerpc64le-linux-gnu-ld: sound/core/seq/seq_clientmgr.o:(.bss+0x900): >> multiple definition of `____cacheline_aligned'; >> sound/core/seq/seq_lock.o:(.bss+0x0): first defined here >> powerpc64le-linux-gnu-ld: sound/core/seq/seq_memory.o:(.bss+0x0): >> multiple definition of `____cacheline_aligned'; >> sound/core/seq/seq_lock.o:(.bss+0x0): first defined here >> powerpc64le-linux-gnu-ld: sound/core/seq/seq_queue.o:(.bss+0x140): >> multiple definition of `____cacheline_aligned'; >> sound/core/seq/seq_lock.o:(.bss+0x0): first defined here >> powerpc64le-linux-gnu-ld: sound/core/seq/seq_fifo.o:(.bss+0x0): >> multiple definition of `____cacheline_aligned'; >> sound/core/seq/seq_lock.o:(.bss+0x0): first defined here >> powerpc64le-linux-gnu-ld: sound/core/seq/seq_timer.o:(.bss+0x0): >> multiple definition of `____cacheline_aligned'; >> sound/core/seq/seq_lock.o:(.bss+0x0): first defined here >> powerpc64le-linux-gnu-ld: sound/core/seq/seq_system.o:(.bss+0x0): >> multiple definition of `____cacheline_aligned'; >> sound/core/seq/seq_lock.o:(.bss+0x0): first defined here >> powerpc64le-linux-gnu-ld: sound/core/seq/seq_ports.o:(.bss+0x0): >> multiple definition of `____cacheline_aligned'; >> sound/core/seq/seq_lock.o:(.bss+0x0): first defined here >> powerpc64le-linux-gnu-ld: sound/core/seq/seq_info.o:(.bss+0x40): >> multiple definition of `____cacheline_aligned'; >> sound/core/seq/seq_lock.o:(.bss+0x0): first defined here >> make[4]: *** [scripts/Makefile.build:530: sound/core/seq/snd-seq.o] >> Error 1 >> make[4]: Target '__build' not remade because of errors. >> >> >> Reported-by: Linux Kernel Functional Testing >> >> >> steps to reproduce: >> ------------------- >> # To install tuxmake on your system globally: >> # sudo pip3 install -U tuxmake >> >> tuxmake --runtime podman --target-arch powerpc --toolchain gcc-11 >> --kconfig ppc64e_defconfig >> >> -- >> Linaro LKFT >> https://lkft.linaro.org >> >> [1] https://builds.tuxbuild.com/28Sn15hB2la1PweieGMLrUdbFMQ/ > > Bisected to: > > 366e7b61ca1f115d38138236467068d8aacabcbc is the first bad commit > commit 366e7b61ca1f115d38138236467068d8aacabcbc > Author: Peter Collingbourne > Date:   Fri Apr 29 14:42:51 2022 -0700 > >     printk: stop including cache.h from printk.h > >     An inclusion of cache.h in printk.h was added in 2014 in commit >     c28aa1f0a847 ("printk/cache: mark printk_once test variable >     __read_mostly") in order to bring in the definition of > __read_mostly.  The >     usage of __read_mostly was later removed in commit 3ec25826ae33 > ("printk: >     Tie printk_once / printk_deferred_once into .data.once for reset") > which >     made the inclusion of cache.h unnecessary, so remove it. > >     We have a small amount of code that depended on the inclusion of > cache.h >     from printk.h; fix that code to include the appropriate header. > >     This fixes a circular inclusion on arm64 (linux/printk.h -> > linux/cache.h >     -> asm/cache.h -> linux/kasan-enabled.h -> linux/static_key.h -> >     linux/jump_label.h -> linux/bug.h -> asm/bug.h -> linux/printk.h) that >     would otherwise be introduced by the next patch. > >     Build tested using {allyesconfig,defconfig} x {arm64,x86_64}. > >     Link: > https://linux-review.googlesource.com/id/I8fd51f72c9ef1f2d6afd3b2cbc875aa4792c1fba > >     Link: > https://lkml.kernel.org/r/20220427195820.1716975-1-pcc@google.com >     Signed-off-by: Peter Collingbourne >     Cc: Alexander Potapenko >     Cc: Andrey Konovalov >     Cc: Andrey Ryabinin >     Cc: Catalin Marinas >     Cc: David Rientjes >     Cc: Dmitry Vyukov >     Cc: Eric W. Biederman >     Cc: Herbert Xu >     Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com> >     Cc: Joonsoo Kim >     Cc: Kees Cook >     Cc: Pekka Enberg >     Cc: Roman Gushchin >     Cc: Vlastimil Babka >     Signed-off-by: Andrew Morton > >  arch/arm64/include/asm/mte-kasan.h | 1 + >  arch/arm64/include/asm/percpu.h    | 1 + >  arch/csky/include/asm/processor.h  | 2 +- >  drivers/firmware/smccc/kvm_guest.c | 1 + >  include/linux/printk.h             | 1 - >  kernel/bpf/bpf_lru_list.h          | 1 + >  6 files changed, 5 insertions(+), 2 deletions(-) I think you need to fix all files that use ____cacheline_aligned without including linux/cache.h You can locate them with: git grep -L linux/cache.h `git grep -l ____cacheline_aligned ` Christophe