linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [next] [mips] spinlock.h:17:28: error: redefinition of 'queued_spin_unlock'
@ 2021-02-10  5:30 Naresh Kamboju
  2021-02-10 15:02 ` Waiman Long
  0 siblings, 1 reply; 3+ messages in thread
From: Naresh Kamboju @ 2021-02-10  5:30 UTC (permalink / raw)
  To: linux-mips, Linux-Next Mailing List, open list, lkft-triage
  Cc: Paul Burton, Will Deacon, Will Deacon, Stephen Rothwell,
	Thomas Bogendoerfer, Ingo Molnar, Peter Zijlstra, Waiman Long,
	Boqun Feng

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 <naresh.kamboju@linaro.org>

build link,
https://builds.tuxbuild.com/1oF9lkBAeWM2WvR11O2Yun8ERNT/

-- 
Linaro LKFT
https://lkft.linaro.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [next] [mips] spinlock.h:17:28: error: redefinition of 'queued_spin_unlock'
  2021-02-10  5:30 [next] [mips] spinlock.h:17:28: error: redefinition of 'queued_spin_unlock' Naresh Kamboju
@ 2021-02-10 15:02 ` Waiman Long
  2021-02-10 15:24   ` Naresh Kamboju
  0 siblings, 1 reply; 3+ messages in thread
From: Waiman Long @ 2021-02-10 15:02 UTC (permalink / raw)
  To: Naresh Kamboju, linux-mips, Linux-Next Mailing List, open list,
	lkft-triage
  Cc: Paul Burton, Will Deacon, Will Deacon, Stephen Rothwell,
	Thomas Bogendoerfer, Ingo Molnar, Peter Zijlstra, Boqun Feng

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 <naresh.kamboju@linaro.org>
>
> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [next] [mips] spinlock.h:17:28: error: redefinition of 'queued_spin_unlock'
  2021-02-10 15:02 ` Waiman Long
@ 2021-02-10 15:24   ` Naresh Kamboju
  0 siblings, 0 replies; 3+ messages in thread
From: Naresh Kamboju @ 2021-02-10 15:24 UTC (permalink / raw)
  To: Waiman Long
  Cc: linux-mips, Linux-Next Mailing List, open list, lkft-triage,
	Paul Burton, Will Deacon, Will Deacon, Stephen Rothwell,
	Thomas Bogendoerfer, Ingo Molnar, Peter Zijlstra, Boqun Feng

On Wed, 10 Feb 2021 at 20:32, Waiman Long <longman@redhat.com> 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 <naresh.kamboju@linaro.org>
> >
> > 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-10 15:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-10  5:30 [next] [mips] spinlock.h:17:28: error: redefinition of 'queued_spin_unlock' Naresh Kamboju
2021-02-10 15:02 ` Waiman Long
2021-02-10 15:24   ` Naresh Kamboju

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).