linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
To: Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Andrii Nakryiko <andrii@kernel.org>,
	Martin KaFai Lau <kafai@fb.com>, Song Liu <songliubraving@fb.com>,
	Yonghong Song <yhs@fb.com>,
	John Fastabend <john.fastabend@gmail.com>,
	KP Singh <kpsingh@kernel.org>,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
	bpf@vger.kernel.org
Subject: Re: [PATCH] tools: Remove duplicate definition of ia64_mf() on ia64
Date: Sun, 28 Mar 2021 09:24:08 +0200	[thread overview]
Message-ID: <568b0f11-de1b-e76d-db4f-c84e7e03d41e@physik.fu-berlin.de> (raw)
In-Reply-To: <20210323182520.858611-1-glaubitz@physik.fu-berlin.de>

Hello!

On 3/23/21 7:25 PM, John Paul Adrian Glaubitz wrote:
> The ia64_mf() macro defined in tools/arch/ia64/include/asm/barrier.h
> is already defined in <asm/gcc_intrin.h> on ia64 which causes libbpf
> failing to build:
> 
>   CC       /usr/src/linux/tools/bpf/bpftool//libbpf/staticobjs/libbpf.o
> In file included from /usr/src/linux/tools/include/asm/barrier.h:24,
>                  from /usr/src/linux/tools/include/linux/ring_buffer.h:4,
>                  from libbpf.c:37:
> /usr/src/linux/tools/include/asm/../../arch/ia64/include/asm/barrier.h:43: error: "ia64_mf" redefined [-Werror]
>    43 | #define ia64_mf()       asm volatile ("mf" ::: "memory")
>       |
> In file included from /usr/include/ia64-linux-gnu/asm/intrinsics.h:20,
>                  from /usr/include/ia64-linux-gnu/asm/swab.h:11,
>                  from /usr/include/linux/swab.h:8,
>                  from /usr/include/linux/byteorder/little_endian.h:13,
>                  from /usr/include/ia64-linux-gnu/asm/byteorder.h:5,
>                  from /usr/src/linux/tools/include/uapi/linux/perf_event.h:20,
>                  from libbpf.c:36:
> /usr/include/ia64-linux-gnu/asm/gcc_intrin.h:382: note: this is the location of the previous definition
>   382 | #define ia64_mf() __asm__ volatile ("mf" ::: "memory")
>       |
> cc1: all warnings being treated as errors
> 
> Thus, remove the definition from tools/arch/ia64/include/asm/barrier.h.
> 
> Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
> ---
>  tools/arch/ia64/include/asm/barrier.h | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/tools/arch/ia64/include/asm/barrier.h b/tools/arch/ia64/include/asm/barrier.h
> index 4d471d9511a5..6fffe5682713 100644
> --- a/tools/arch/ia64/include/asm/barrier.h
> +++ b/tools/arch/ia64/include/asm/barrier.h
> @@ -39,9 +39,6 @@
>   * sequential memory pages only.
>   */
>  
> -/* XXX From arch/ia64/include/uapi/asm/gcc_intrin.h */
> -#define ia64_mf()       asm volatile ("mf" ::: "memory")
> -
>  #define mb()		ia64_mf()
>  #define rmb()		mb()
>  #define wmb()		mb()
> 

Shall I ask Andrew Morton to pick up this patch? It's needed to fix the Debian
kernel build on ia64 and it would be great if it could be included for 5.12.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


      reply	other threads:[~2021-03-28  7:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-23 18:25 [PATCH] tools: Remove duplicate definition of ia64_mf() on ia64 John Paul Adrian Glaubitz
2021-03-28  7:24 ` John Paul Adrian Glaubitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=568b0f11-de1b-e76d-db4f-c84e7e03d41e@physik.fu-berlin.de \
    --to=glaubitz@physik.fu-berlin.de \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=john.fastabend@gmail.com \
    --cc=kafai@fb.com \
    --cc=kpsingh@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=songliubraving@fb.com \
    --cc=yhs@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).