Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2742598pxf; Sun, 28 Mar 2021 00:28:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOCm8FWXmtO0w/9M/9QazOUgJajjo007PVipAkh5987ppkpmsJLpXqm03ifoJL804A4BH5 X-Received: by 2002:a17:906:bcfc:: with SMTP id op28mr23080976ejb.238.1616916536052; Sun, 28 Mar 2021 00:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616916536; cv=none; d=google.com; s=arc-20160816; b=eakwP3YNcmo5GC/EuFr1HQcGr2crvcYWPs+ep+QyCCTYXlVnwNWrADfuPAJ6J8iz7R McGBRqxsbY8yljz0YvUCP59vW0TVDNhwKreD5xINGIFkNUgIFfz0kjI+ciCfkkKjxu3y 5kPWFAfgSI30uTnJzjB6L/wozKjrKnYqQ6SLYIeD3tUznsF3GNYE0qKjGSFGKfQQ0iDJ y+qbYfhCdkia3F5mYKgceIob7uX1RgxbJpgk6LE9Enj8NxY96DQdBDWeH8THjZrbwzxj uc/yRX2VM8yCXvun4mqgSBtsUnCy747mDlPbeoOBl2OqKH5RqkqB8lXeM/P7wZ4YVfVC au3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=/5DWO+rU9f3pVd1yUUqjnmT6kkdE15DHphZDQf65FuE=; b=Bbkv1LBdyAZXRS47kyQqSdDCNEjSwz1BCRr14ylGPcTF+ipqho+TuZyK7hcKrKwR0+ cq8y1Fy8juu01epFE0O536OQPIVckADSwGMzr5XKrOJDKd/tFA4CjCDwJpluwyBGt2cV ptCtKGANkQEHlFv+yD1KQfgyD+HsfgfXC5h16KNGwLYs1TkayroP6wtcI/FWFtRo2nYW RHi5O3R0MWnM19A0YwdoaIwxh2SQFmnDvNfbGUs0y7BMwpVhCPtz1Cuny8iM/COfFMsF g+FD6EOLz0kmVxaq+FlbFmZsYePhgmR+JM0ajOuOUqr3cpkOeTqpLUR7Cx7G01ObwLtC cWCw== 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 fx8si10581298ejb.481.2021.03.28.00.28.13; Sun, 28 Mar 2021 00:28:56 -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 S230394AbhC1HYj (ORCPT + 99 others); Sun, 28 Mar 2021 03:24:39 -0400 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:49711 "EHLO outpost1.zedat.fu-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230184AbhC1HYK (ORCPT ); Sun, 28 Mar 2021 03:24:10 -0400 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) 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 1lQPmL-001GUe-Cn; Sun, 28 Mar 2021 09:24:09 +0200 Received: from dynamic-078-054-150-182.78.54.pool.telefonica.de ([78.54.150.182] helo=[192.168.1.10]) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (envelope-from ) id 1lQPmL-0041C0-5c; Sun, 28 Mar 2021 09:24:09 +0200 Subject: Re: [PATCH] tools: Remove duplicate definition of ia64_mf() on ia64 To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org References: <20210323182520.858611-1-glaubitz@physik.fu-berlin.de> From: John Paul Adrian Glaubitz Message-ID: <568b0f11-de1b-e76d-db4f-c84e7e03d41e@physik.fu-berlin.de> Date: Sun, 28 Mar 2021 09:24:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210323182520.858611-1-glaubitz@physik.fu-berlin.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 78.54.150.182 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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() > 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