Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1543316pxj; Fri, 21 May 2021 17:47:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8+vScme8EmOABzABwKZMJfgbH5k8t86JR4EuUxebmhHSrtOA6kd2DxvKXk9qxnVFb3nyc X-Received: by 2002:a92:c243:: with SMTP id k3mr2265417ilo.81.1621644477500; Fri, 21 May 2021 17:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621644477; cv=none; d=google.com; s=arc-20160816; b=e12hwWVZVhFw2lyy6Yt4OZKnnZVDQF60cEHW0EffpK+GvRfjgDdrASQk9ezjSSz5Ai ujl3bU4i6dxLETZjgV1JexyA6Aaa25AQjkVxBBrHkUF6IuOlsF4oqk9kvLcMopM6e+B8 ySx2QdSqQtPumVVJ2xjXTUOIYIQa1snS1tqaQ1AhT7pGqhPoUu0bxPfJ7jYlMuAOHZ6g qY26d1PUVYSDDF4dEEZvd65uZBSpGcKvM6dYVkNGTjzqlB+cKJJuh7bZG89yP8IRq4q8 VAyUzwLfyL7dqvZWNCNyqrkSv7flhCNAYDMHUhLf/n0NFk8Ake1qW8CTMFJc+TBobee5 ovcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RdygxSbSqsWz9BfeMNSc2FteZY17xkWEnp8K+VZHat0=; b=QJjbff2OXTgCwCl3+yy5O0g06tFfb9n1iRgcP+Yp83f+YyCwqe34S4iS3LsbITBJ6r R/uTTZTdRiR2Nu/iGwITgBSdotSAhVgqg430HpI3N/5x5ChjOgf8VZ4+xuD0BB6Gnsta 2kLVcvMszaDwOGRbXxuHgTH1gpdO+vEYWYZ4glwVrEEOGauvSJuK3cLOSjP6chQzyxQ1 UMMxvVlWPtQZu3cqOp2wFckgQPQHoNdsDUn1+nuTquTs72xgySvk8+bs94y3L0xsDwHk 0nkeoJvk0XI0g425Se1kbmnGoNukE3gSG6V1spAPe0e9sD9DBcE77O5boSYif3W3xxsY WZNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z7+ykzF+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si7886918iln.109.2021.05.21.17.47.44; Fri, 21 May 2021 17:47:57 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z7+ykzF+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230371AbhEVAsD (ORCPT + 99 others); Fri, 21 May 2021 20:48:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbhEVAsD (ORCPT ); Fri, 21 May 2021 20:48:03 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68073C061574; Fri, 21 May 2021 17:46:39 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id y2so29775761ybq.13; Fri, 21 May 2021 17:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=RdygxSbSqsWz9BfeMNSc2FteZY17xkWEnp8K+VZHat0=; b=Z7+ykzF+PSO7JYR0DUvVodmmpJz6jm5VoUJ0RbLpsMBuATAk+jZ0bjJIR7Pc2Ka7jb xeJsQ5F3KHD04JO5Ts9MWuyhHOIWSE+z1fJSP3nAXXkhH7n/UUPz2vQb78MBApyglo2O iqSxg+lVbFU8ryxbQEdHdod1DpEHwZ3hlUujZ3V9nsJx0UYAnAxfdKtlcyo/yhK22wjl hFKr1+MATzRbJK714vVw7BMlqL0gh2AnHtHFUxKB1kl0ZiK8o5t1JOH0Zo8ZorbSHDi1 Y6gut9Mt+Lk8+xQT/Z2bC3Vj1ZlQbAGEHXS/cYtYO9lScf3DIye3fAHGIU6e+QYFGbFh 3gLQ== 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:content-transfer-encoding; bh=RdygxSbSqsWz9BfeMNSc2FteZY17xkWEnp8K+VZHat0=; b=lquVT5asxXzcb7H6RWs2wONH2483PQhfr17wlEbo2NeAEfS7ycn8z5quK7hivy34ik FJfX8C4DHmccXzDI051kLHjp1TN/37KDv7aV0CMahbf3DkPF1vVcDEQHtIS8TkUaw8fD KpLFAHko+ZAyfioCaGMlaS0Q36lgmEodMJqGbbcBeQ6oXWIPjvr0hxBtoV+2O7CnFNKM 38nuIjGrmbRiAVGpPhNdp+2Mp/oed9y5/yas3zlExzFtDeLI1R7+3jCMNT9mvNdJx2+b ZinlmzRq8ikGevOaC5lsgglg5DaGggX1QYOQ3RWqubz/yzogBg+gHox6R18mf5r3630+ 5cTw== X-Gm-Message-State: AOAM533SaE/sUmUZh0DtRYGwiP+3WocvvGCRJNj43EcX1CF7xOvGtR2m nSc9a0fK75LlsXD/vd6zlq9sSY1rV44zbDo/dfY= X-Received: by 2002:a5b:f05:: with SMTP id x5mr18321502ybr.425.1621644398645; Fri, 21 May 2021 17:46:38 -0700 (PDT) MIME-Version: 1.0 References: <20210521162041.GH8544@kitsune.suse.cz> In-Reply-To: <20210521162041.GH8544@kitsune.suse.cz> From: Andrii Nakryiko Date: Fri, 21 May 2021 17:46:27 -0700 Message-ID: Subject: Re: BTF: build failure on 32bit on linux-next To: =?UTF-8?Q?Michal_Such=C3=A1nek?= Cc: Networking , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Nathan Chancellor , Nick Desaulniers , open list , bpf , clang-built-linux Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 21, 2021 at 9:20 AM Michal Such=C3=A1nek wr= ote: > > Hello, > > looks like the TODO prints added in 67234743736a6 are not 32bit clean. > > Do you plan to implement this functionality or should they be fixed? They should be fixed regardless. Can you please re-submit as a proper patch to bpf@vger.kernel.org with [PATCH bpf-next] subj prefix? > > Thanks > > Michal > > diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c > index 69cd1a835ebd..70a26af8d01f 100644 > --- a/tools/lib/bpf/libbpf.c > +++ b/tools/lib/bpf/libbpf.c > @@ -4565,7 +4565,7 @@ static int init_map_slots(struct bpf_object *obj, s= truct bpf_map *map) > targ_map =3D map->init_slots[i]; > fd =3D bpf_map__fd(targ_map); > if (obj->gen_loader) { > - pr_warn("// TODO map_update_elem: idx %ld key %d = value=3D=3Dmap_idx %ld\n", > + pr_warn("// TODO map_update_elem: idx %td key %d = value=3D=3Dmap_idx %td\n", > map - obj->maps, i, targ_map - obj->maps)= ; > return -ENOTSUP; > } else { > @@ -6189,7 +6189,7 @@ static int bpf_core_apply_relo(struct bpf_program *= prog, > return -EINVAL; > > if (prog->obj->gen_loader) { > - pr_warn("// TODO core_relo: prog %ld insn[%d] %s %s kind = %d\n", > + pr_warn("// TODO core_relo: prog %td insn[%d] %s %s kind = %d\n", > prog - prog->obj->programs, relo->insn_off / 8, > local_name, spec_str, relo->kind); > return -ENOTSUP;