Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1395491pxb; Wed, 10 Feb 2021 07:29:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhayYbt9JWxT9FIoGAUJ3s2AiA/e+6DBl18niOK0CqX2Fzha2KMmDjCW8ZBu1f5KXZmmpW X-Received: by 2002:a05:6402:1ad1:: with SMTP id ba17mr3671555edb.243.1612970991140; Wed, 10 Feb 2021 07:29:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612970991; cv=none; d=google.com; s=arc-20160816; b=Kd4N5KDEZ5P51UwsV1aKs/hkFCiVuwVG9nxUuA4x9wf3DED9THAiRijbpFo8J79SNl gZTZRloJD4aZfTPW2uDBpwIgdth9apqAqb4UKf6SvXuJxjHGvauGn8z+ebS6zYyZSvkr TYd7/zeQF0hsHkDaV3/UL9D5sFhBK3P/iLm0tQw1BWIOWpXIpmmFb7HT8EpcGgyGmBqu J5r8L1BkoVbjLWMe2aarzL3U6G/uxxK5AziD1L8EZJ1XwpiQgcK9zuhtNcjGr4vxznHi 3HM+LfiDV2mI2TSis7SZafiYweyS2/oA+iCpceu6pmCSyhsHsUTDwnYPrO3RtowCJN04 m44A== 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; bh=4aW7+bqzSkwg4GkezviAvU8O+1pGE5lGyhjOL2uEFFc=; b=cukZH2SHYzGN5CskYboky2hXEykjDvHK0tq/94+2eZc+96GJSDMq5fFHtDdJGxBqmP UUe66wcZ4hgN1yMLT5lUvJHA6znJT6KsdVxhLu0R63kDudIA8pfWQEwbSKvNWE9AlSNN dv3wGtgE8Y6XaizZW0ZZqpcoJdspLREXmEyPZz+jQop7hpP/Fo6m6o3GsWI1CcG/tby2 4ZgMc3Hi4m+YJk2ImZoTI0AE+fsS689VSGqZOvwuzHxMOWHnIqWto0n+2H9vQpumtKdi CvNrtAjynrBLCeG+GFsEKdm0z2WKz9Z7XXisZc6Ehrh9QoPwAesR9mX99UBcMwbdhDyK kThg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WKu4dVPx; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si1506436eds.422.2021.02.10.07.29.27; Wed, 10 Feb 2021 07:29:51 -0800 (PST) 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=@linaro.org header.s=google header.b=WKu4dVPx; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231894AbhBJPZu (ORCPT + 99 others); Wed, 10 Feb 2021 10:25:50 -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-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