Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1345635ybl; Tue, 3 Dec 2019 05:51:16 -0800 (PST) X-Google-Smtp-Source: APXvYqzT5fdMg4q44e2Jg6+y8pV08FK4PuiKvISatrrKXHN8SAy1naQ5dh8rnAFdA2VPEPrYgS1I X-Received: by 2002:a05:6808:197:: with SMTP id w23mr3717363oic.46.1575381076039; Tue, 03 Dec 2019 05:51:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575381076; cv=none; d=google.com; s=arc-20160816; b=CUGEVpXL5Jb7KI2+ZLPsDTd6UTvucYTMRg//zG4xObHP15t72ZNmU2Q7pHb/RzX8nJ iVN6PLILTNtAOZB5QdwAhgu0uQCGygaYOgRFmjl2IjVlO6KHSG8zfuIgeFZryYCKylik 5OtHx+Ww8P6SveStGO6KpJUhX/zufuAsF06IPXtC4H5Ox5t7cK/u4O+4cdRimVG0nEOo APq6jHd+kJDKWuUxxOSwRvBDh99HcG1VJ96Pt1lSTVjLOswnFMCwHwcDZaEqcs92zNIp 4tNlDhuN+877/n3yaWrmy1+UNGmgq/QOqjyaETAbCcudS9tfO2MPYNQHLaEE32y/jFHG bTrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=V2Z48S2RpCT7bsi6W8o9xAPWyHBrbdx8QNidFwrDG7o=; b=p1mPMfsbVL/3ObuVDh99N9jbEusP+lGFEKPlGFoxTLVgNGrL4d4iJLrv2WR3F1St+I h34pCjzAxFv2Cj5c6wcY/LvjYZtb7zF8FcfzcxluEv4LgTHqFprCvEIhRfnmsqUgCMNF SUiq6Lhus+UHezJANn72dhU1+Om7cB5uhwquZeU6TGrRS2DEuF2dLvW+4y6sgTphPrjn H0UF8MR1J/z7sNVciYJlMrtU9nU4AOjk7UR8FSFGadCJ7NzgJ24fjF6YNQt26wfAcQ1d 39/SC6H/BnDnNb5E/bdFdCznY57hMz/udDzMY91OSemCRm1FF8kbRvVGdQ0mwrTBVw9a WCOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BMG9l3gl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d199si1220736oib.226.2019.12.03.05.51.04; Tue, 03 Dec 2019 05:51:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BMG9l3gl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726388AbfLCNuX (ORCPT + 99 others); Tue, 3 Dec 2019 08:50:23 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43394 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbfLCNuW (ORCPT ); Tue, 3 Dec 2019 08:50:22 -0500 Received: by mail-lj1-f196.google.com with SMTP id a13so3858995ljm.10 for ; Tue, 03 Dec 2019 05:50:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V2Z48S2RpCT7bsi6W8o9xAPWyHBrbdx8QNidFwrDG7o=; b=BMG9l3glchxTcyzwEYZoeiPQ1Qf2dSE6m5plMBgskvfutAmc6yj49QbctF3o4z2oTB cps93OWgeo9tBN5woaUXIeuQbi6wTX2/OWPsTo9jP+pi73R/oSh0rx6tceSQLrDFpI65 l8Y8XBgAtVdwxzND/FTSGV52KUoEBJBS6le14z1sVIR/WSQg3JxG0/FpflNiBAwQVk4a gfPtpFOnN7vVbnlMNAlvPeVBJe9Phc2rtYgnw90J/nC3xrEJ6scm91fL4jUpHOsNyUxt FjHhCcWANrj6bggMYyvjPor0jXKfdO4xamiI8KpJPMN8iH1Wvg7ko6ioSyRacz2fb3/L GbzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V2Z48S2RpCT7bsi6W8o9xAPWyHBrbdx8QNidFwrDG7o=; b=txyc/26DorxlDg2J9CQXldEAMzWTUgJxuswijLxSJkaNDHzehWE+N+e9DVfUiK0UI3 ERtpsk0mwNLCRFsSkiRDoWOw3ExCjO8i3Pu0APqBh/DIvOlYEU0XYlvmcRHZhkpVB0ND gCi5eQW+oHmOn2DT/Kbw9LitwRqJWpbTIrHvItfZ61jkoNDc1yETPf/WxFDY/FtF4wud JNlx1DaKMUsicNH6kTBTl9T5FY72aMEsTqB5xOX0IffXPxjNDM+7xfCOFdpUTgpjHq2J uiSMuGhjBa4tx+4k7C1oMLJWtGCrzrc7ue0zM7X9wdeSVBLuNeN0tHB5gxjupMcblWqP M1pw== X-Gm-Message-State: APjAAAVkQnoxVICGJ2tAs5dMdh8bBCuW+t9BTpqgpP7e+rwb+/qReAke NBCS5cz1yjo1FSp2slprVk3r9oyw0W+9jNbRb3G0TQ== X-Received: by 2002:a2e:7202:: with SMTP id n2mr2354490ljc.194.1575381019973; Tue, 03 Dec 2019 05:50:19 -0800 (PST) MIME-Version: 1.0 References: <20191126183451.GC29071@kernel.org> <87d0dexyij.fsf@toke.dk> <20191126190450.GD29071@kernel.org> <20191126221018.GA22719@kernel.org> <20191126221733.GB22719@kernel.org> <20191126231030.GE3145429@mini-arch.hsd1.ca.comcast.net> <20191126155228.0e6ed54c@cakuba.netronome.com> <20191127013901.GE29071@kernel.org> <20191127134553.GC22719@kernel.org> In-Reply-To: <20191127134553.GC22719@kernel.org> From: Naresh Kamboju Date: Tue, 3 Dec 2019 19:20:08 +0530 Message-ID: Subject: Re: [PATCH] libbpf: Use PRIu64 for sym->st_value to fix build on 32-bit arches To: Arnaldo Carvalho de Melo Cc: Andrii Nakryiko , Jakub Kicinski , Stanislav Fomichev , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Andrii Nakryiko , Adrian Hunter , Alexei Starovoitov , Daniel Borkmann , Jiri Olsa , Martin KaFai Lau , Namhyung Kim , bpf , Networking , linux-perf-users@vger.kernel.org, Linux Kernel Mailing List , Quentin Monnet , Leo Yan Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaldo, FYI, On Wed, 27 Nov 2019 at 19:15, Arnaldo Carvalho de Melo wrote: > > Another fix I'm carrying in my perf/core branch, > > Regards, > > - Arnaldo > > commit 98bb09f90a0ae33125fabc8f41529345382f1498 > Author: Arnaldo Carvalho de Melo > Date: Wed Nov 27 09:26:54 2019 -0300 > > libbpf: Use PRIu64 for sym->st_value to fix build on 32-bit arches > > The st_value field is a 64-bit value, so use PRIu64 to fix this error on > 32-bit arches: > > In file included from libbpf.c:52: > libbpf.c: In function 'bpf_program__record_reloc': > libbpf_internal.h:59:22: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'Elf64_Addr' {aka 'const long long unsigned int'} [-Werror=format=] > libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__); \ > ^~~~~~~~~~ > libbpf_internal.h:62:27: note: in expansion of macro '__pr' > #define pr_warn(fmt, ...) __pr(LIBBPF_WARN, fmt, ##__VA_ARGS__) > ^~~~ > libbpf.c:1822:4: note: in expansion of macro 'pr_warn' > pr_warn("bad call relo offset: %lu\n", sym->st_value); > ^~~~~~~ > libbpf.c:1822:37: note: format string is defined here > pr_warn("bad call relo offset: %lu\n", sym->st_value); > ~~^ > %llu This build error is been noticed on Linux mainline kernel for 32-bit architectures from Nov 26. Full build log, https://ci.linaro.org/job/openembedded-lkft-linux-mainline/DISTRO=lkft,MACHINE=intel-core2-32,label=docker-lkft/2297/consoleText https://ci.linaro.org/job/openembedded-lkft-linux-mainline/ - Naresh