Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1377840pxb; Wed, 10 Feb 2021 07:08:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxt9Labn2VF//3ptvrpCoTMir+7745zS26aKWY4h6DIBvvUIl5wiVEHd2Sy5AxvASkf8Lm2 X-Received: by 2002:a05:6402:c87:: with SMTP id cm7mr3643899edb.136.1612969714377; Wed, 10 Feb 2021 07:08:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612969714; cv=none; d=google.com; s=arc-20160816; b=phDy6PjpZjtB/0YGYjXc6TEDR8tC7p3vm3q8vN2QSHyjxLYa5109RIBe4mfY3CWkNd 2jLn/+Tc0GG9npHnuRRIRKymT7xtpnwneS3nW3PoebgGLVwic4SaK5UG8B6pDVagR+KJ 6yRrnKvlyZOQVO7Ky4j3Z9v8FwwvloaltYYFeUDdzUpIRqCEIIhj4iPquiX3XbFhU7bc e7DCkcOO2qN9SI5xh+Y6wZmhPLTuPpVwkrKobdWmut11yCOVaUE4vDjOpN/x/+N52+/v vS8E0ssKASrqPaMCJIhSfb2zalGc+Xh+EjQhvaS8FinMVeKCV0NT3mxRvvoug8bzGp74 QOXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=5MXaPbc/42qFdop710unD1yxd2cY2cL3Z6ntoAVSBA8=; b=VQZMc07k4SMpYr5noxKqGBW4o5aZjKTfEdaaHtbFEw4rIoRL5lKcu0mZ6AFbT1VO51 JGuxeWZ6WZ+QYaSY/BRpTJgnr0+n97x+49BNIegusU88gDKVZFR206BtvajmAlfkQJFq 1/xB+XUJND0iUYhrGyAJeA0LLpBJh9WOUJg/3nCnd4fBxIrUFzYOaz9JQlEkM7o/xyVv DdCs8wvYBWsNInp44ct7BKW57I5VAIUp2g0ptxuoTgCKfB3ZJmNvqifbAj8Jicmo5I5n vL1AmIIFbYYtjzQ+I2MBnkDkxxRfyjzJ39GD9/OTJ9sUyG8SFlGr+ec5r3qQoHvATx/o zvuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i5CtJ61w; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si1453667ejg.243.2021.02.10.07.08.11; Wed, 10 Feb 2021 07:08:34 -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=@redhat.com header.s=mimecast20190719 header.b=i5CtJ61w; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231732AbhBJPEi (ORCPT + 99 others); Wed, 10 Feb 2021 10:04:38 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:58859 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231961AbhBJPEV (ORCPT ); Wed, 10 Feb 2021 10:04:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612969374; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5MXaPbc/42qFdop710unD1yxd2cY2cL3Z6ntoAVSBA8=; b=i5CtJ61wp1Jrrli+374mV7FqxjcNSQQarX4bHDVyjTExAgYxbLm15pBR7wVnST/gDH8yti xwwkObS0STWgJeu8tNv2W1cmqqThts+6hb80NjIbRs9XEAADDM2BIsQcWW6nVU13BBMwAB 1eCjwXtrZI2q5S6u7wpsSjMO2Qc0Ob8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-222-bQQyr9rGOxeqh9cI2Wqvww-1; Wed, 10 Feb 2021 10:02:45 -0500 X-MC-Unique: bQQyr9rGOxeqh9cI2Wqvww-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id ED8B4427CF; Wed, 10 Feb 2021 15:02:42 +0000 (UTC) Received: from llong.remote.csb (ovpn-115-20.rdu2.redhat.com [10.10.115.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id 470F460C15; Wed, 10 Feb 2021 15:02:41 +0000 (UTC) Subject: Re: [next] [mips] spinlock.h:17:28: error: redefinition of 'queued_spin_unlock' To: Naresh Kamboju , linux-mips@vger.kernel.org, Linux-Next Mailing List , open list , lkft-triage@lists.linaro.org Cc: Paul Burton , Will Deacon , Will Deacon , Stephen Rothwell , Thomas Bogendoerfer , Ingo Molnar , Peter Zijlstra , Boqun Feng References: From: Waiman Long Organization: Red Hat Message-ID: <8e1322cf-4498-43b6-1dbd-665b7f016815@redhat.com> Date: Wed, 10 Feb 2021 10:02:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cheers, Longman