Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4476020pxf; Tue, 23 Mar 2021 11:29:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY2x4FEx/WW65MYF2jkN6A8FseLmQweBozxIeqhnVQYDwmW9UDeg09c7RteOs0A0Es2JTf X-Received: by 2002:a17:906:110d:: with SMTP id h13mr6270636eja.357.1616524170783; Tue, 23 Mar 2021 11:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616524170; cv=none; d=google.com; s=arc-20160816; b=l1agOQbsIyE9p1SyuOGsIBGv+QgERjgvJe6zvDaoqgHiQEkg8YEyjFavThfQ/gctTw Q0U+oLPkEDt7I4elcR80r+hA0NlG9Qrov8Slo43h7THy9gU8qUCdA1/kt9R9toYYB87w FSulf7d5RnGyHjS+dLFe/uU5nUbO0rSlQKxVFf521MTpnaFGgVR7l9qtGgnpbO2GXx9g +a7wrcQkrgvB+sRG5SYigDPcRvxX2OauVP6LZDiawzIdEgYfomDgxTHcs5nIn2XURwj0 Wyge0flNGoeY4hM9hC4Um/XUAVbv+DN/7xV7aciT7FCQorrIZk8Vw9hJvLXS0yWHwgFp vTbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=ov/BAsshmiagM9xrkxqZAt/5I2oxoEP9BnXOeLw42aY=; b=y4qFBuFWSgrKA4+O6+s9qffzOVtffDceAmV086PCATscoC/jw6cHm5lDuK73WK527W xmvcCzsDQ117Wp9eRjfUeK+A/B36f35tpjFfLTw+35Tze703VQiVCQWdP/gk5f6b6SxG 7GKCkNywY+oPj8s44NmWIXFxrlrngFTSXC2ZhwHwoFiNqACbOokAQcXOmab1xML+uB7Z /4I6KzsbqpicGZ/UN3sFwMKMYRQn6tQu6z7OzNSaYumgRtcewsHV/AEQOHswu87EqE+2 lxSnY9CByrLMoD6nsys9M9wfzRWlZiACsXsszx64UevQ61cxsVEv5Q2dcAkl6MUXsaeE cUKg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sa4si14102286ejb.662.2021.03.23.11.29.03; Tue, 23 Mar 2021 11:29:30 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231890AbhCWS0e (ORCPT + 99 others); Tue, 23 Mar 2021 14:26:34 -0400 Received: from outpost17.zedat.fu-berlin.de ([130.133.4.110]:36475 "EHLO outpost17.zedat.fu-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231670AbhCWS0B (ORCPT ); Tue, 23 Mar 2021 14:26:01 -0400 Received: from relay1.zedat.fu-berlin.de ([130.133.4.67]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1lOliw-0029Ar-GN; Tue, 23 Mar 2021 19:25:50 +0100 Received: from mx.physik.fu-berlin.de ([160.45.64.218]) by relay1.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_DHE_RSA_WITH_AES_128_CBC_SHA (envelope-from ) id 1lOliw-0041zB-Dd; Tue, 23 Mar 2021 19:25:50 +0100 Received: from epyc.physik.fu-berlin.de ([160.45.64.180]) by mx.physik.fu-berlin.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1lOlik-0000xE-0j; Tue, 23 Mar 2021 19:25:38 +0100 Received: from glaubitz by epyc.physik.fu-berlin.de with local (Exim 4.94 #2 (Debian)) id 1lOlij-003bOF-O9; Tue, 23 Mar 2021 19:25:37 +0100 From: John Paul Adrian Glaubitz To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , John Paul Adrian Glaubitz , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH] tools: Remove duplicate definition of ia64_mf() on ia64 Date: Tue, 23 Mar 2021 19:25:19 +0100 Message-Id: <20210323182520.858611-1-glaubitz@physik.fu-berlin.de> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: John Paul Adrian Glaubitz X-Originating-IP: 160.45.64.218 X-ZEDAT-Hint: RV Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ia64_mf() macro defined in tools/arch/ia64/include/asm/barrier.h is already defined in 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 --- 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() -- 2.31.0