From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20724C433E0 for ; Wed, 10 Feb 2021 15:26:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D132A64E45 for ; Wed, 10 Feb 2021 15:26:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230294AbhBJP0E (ORCPT ); Wed, 10 Feb 2021 10:26:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231956AbhBJPZX (ORCPT ); Wed, 10 Feb 2021 10:25:23 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87CBEC061574 for ; Wed, 10 Feb 2021 07:24:41 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id w1so4870705ejf.11 for ; Wed, 10 Feb 2021 07:24:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4aW7+bqzSkwg4GkezviAvU8O+1pGE5lGyhjOL2uEFFc=; b=WKu4dVPxki/iRV7Ygrt2fHQ86P6H3AXhQiayLdJf6MXq/7d8tehEzPvBmPLIl4i3mH wGpRzaLUjLW2343x/GoQhNMt/gYQ7Bn/+gOw8ReeaoLq3FsUloHoczUogsPxbuk83aSm pvbYbs3l1C+7ShjE+F/vdiMcCw4/bonOYBWw+UPsWXiHWSgnG7QxL4CwSQYy1qzMyomA x35zoyp2W5pwKRwgNPeRhbLijgjc6Vz6luFnTLarvF71S0pcEyi/8T5xiUho3c9LHS7q E5yy+b6OhQfrk/S/QivJgtsE3LrglQSySi5QGhNxa/kP9BtvUHuxBQHQPXELoftePz6Q IK6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4aW7+bqzSkwg4GkezviAvU8O+1pGE5lGyhjOL2uEFFc=; b=XDw3mHrqtN4XuM27/CBs6LvRcTYdKIV+PdOkH3vVNhanBZTB/SfSIf27WnxGw14m/X CUeIX+nbDUxL8/eLxuP2muarE3YRR6DKOPm5llLWGZbc8YwkDbZD4jgOIUiCXNz8N50F JAZMgTThZLq1VzIRNlAS+jtjMQJS7Re2rfwtM9Henpb0DVMen9WLlVocEW/u3mWOrsvA ebRNFX71vykoP25b8x3OoCj9toRf87htPhfzzY0TYP5JcXHe/mbCkb7QBnRN7X9lYSgc GOY1sCZajUHDLKEUMM6c/DQ9+q3GlqSrPGJGmvTXRbSxV4FN6Ge+HWD7Me5yKOWDB577 Y4qA== X-Gm-Message-State: AOAM533XPE8ji1x1zDHuLgmCKmOqWYsefeqyMuIUT5KtIpls1jrV33xM Lj2mIJfcg7/uU3NyPIPT3gxHhWTLMl3yAIQzc9/T7YvCNi6y1NXZ X-Google-Smtp-Source: ABdhPJxYhVyRhFYeu14oygGNiBEYx0kkZcWCucEoUMbfsyJUNG7oMa6NJWoFfQf6Xigon3DpfILd1rY3a40h4YWsPJE= X-Received: by 2002:a17:906:24d1:: with SMTP id f17mr3398125ejb.503.1612970680122; Wed, 10 Feb 2021 07:24:40 -0800 (PST) MIME-Version: 1.0 References: <8e1322cf-4498-43b6-1dbd-665b7f016815@redhat.com> In-Reply-To: <8e1322cf-4498-43b6-1dbd-665b7f016815@redhat.com> From: Naresh Kamboju Date: Wed, 10 Feb 2021 20:54:28 +0530 Message-ID: Subject: Re: [next] [mips] spinlock.h:17:28: error: redefinition of 'queued_spin_unlock' To: Waiman Long Cc: linux-mips@vger.kernel.org, Linux-Next Mailing List , open list , lkft-triage@lists.linaro.org, Paul Burton , Will Deacon , Will Deacon , Stephen Rothwell , Thomas Bogendoerfer , Ingo Molnar , Peter Zijlstra , Boqun Feng Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Feb 2021 at 20:32, Waiman Long wrote: > > On 2/10/21 12:30 AM, Naresh Kamboju wrote: > > While building Linux next tag 20210209 mips uImage.gz failed with below configs > > > > - mips (cavium_octeon_defconfig) with gcc-8, gcc-9 and gcc-10 - FAILED > > - mips (malta_defconfig) with gcc-8, gcc-9 and gcc-10 - FAILED > > - mips (nlm_xlp_defconfig) with gcc-8, gcc-9 and gcc-10 - FAILED > > - mips (defconfig) with gcc-8, gcc-9 and gcc-10 - FAILED > > > > make --silent --keep-going --jobs=8 > > O=/home/tuxbuild/.cache/tuxmake/builds/1/tmp ARCH=mips > > CROSS_COMPILE=mips-linux-gnu- 'CC=sccache mips-linux-gnu-gcc' > > 'HOSTCC=sccache gcc' uImage.gz > > In file included from /include/linux/spinlock.h:90, > > from /include/linux/ipc.h:5, > > from /include/uapi/linux/sem.h:5, > > from /include/linux/sem.h:5, > > from /include/linux/compat.h:14, > > from /arch/mips/kernel/asm-offsets.c:12: > > /arch/mips/include/asm/spinlock.h:17:28: error: redefinition of > > 'queued_spin_unlock' > > 17 | #define queued_spin_unlock queued_spin_unlock > > | ^~~~~~~~~~~~~~~~~~ > > > > Reported-by: Naresh Kamboju > > > > build link, > > https://builds.tuxbuild.com/1oF9lkBAeWM2WvR11O2Yun8ERNT/ > > > I have just posted a patch to reorder qspinlock.h and qrwlock.h include > ordering. Hopefully that can fix the compilation problem though I don't > have a mips building environment to verify that. That was a global problem now it is getting solved by "tuxmake " # TuxMake is a command line tool and Python library that provides # portable and repeatable Linux kernel builds across a variety of # architectures, toolchains, kernel configurations, and make targets. # # TuxMake supports the concept of runtimes. # See https://docs.tuxmake.org/runtimes/, for that to work it requires # that you install podman or docker on your system. # # To install tuxmake on your system globally: # sudo pip3 install -U tuxmake # # See https://docs.tuxmake.org/ for complete documentation. tuxmake --runtime podman --target-arch mips --toolchain gcc-10 --kconfig cavium_octeon_defconfig build link, https://builds.tuxbuild.com/1oF9lkBAeWM2WvR11O2Yun8ERNT/ - Naresh