Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1402294pxj; Fri, 21 May 2021 13:22:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrjhpS4AHKal3XIpgtQupCeFFzB7PQfOtbf98ewcWC8DSk4Prjcwai6gXOx29ocizUwofN X-Received: by 2002:a5d:8b09:: with SMTP id k9mr554778ion.185.1621628566985; Fri, 21 May 2021 13:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621628566; cv=none; d=google.com; s=arc-20160816; b=ix8Z8jQaqC+efKCTDwTCrDb+GG+Hjc13OVqOt4f/eJFTNbcSQpAdcOjMPIQpKAU9Mt 61X5vZWxcR8Uo5Hp8gCrMtFvYXLoMSs31O/9HgGX8oSuZ85vLAvHfe41BjAM7321xa2N RM9SuZVEQ1KnwGVLFI1AlT6C6StcKtILief7zjqngtQqMJnbnXUdX/QbK8IPjpGS8lr1 p8WZOh4mzMHEH1SQebK5QymcVUK5b5fS9QKC4dkV16lREWFk5/GixPFVB5PWINmt8z9L HcyMoL5IELiU3nsZyiXx33aevamPwJlfPOyJjuMba6S1e3dN9XVqOoKTxSC3HPhwmUhy 0cIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature:dkim-signature; bh=0jku9GTWoW2j4X3kuE24CEPxpjUZoyrELhmnmA6WIRM=; b=HiNPnzDWfz956AvU7e6/k/cdVA0Do76T1WYt53Mq1zSHZia6BKWPu9cjRrffOVDZfU DyGvB+SGE33bHRlssrU2VBBwTnhvwasw8iIBO6iXLQ88tqlnRazulGAg5q9J0AXlMX+F +dj//SGeAdxWoAsjfRrvJSjyY0zCfkMmAenjbECwh3EwlNM3ysclRgBvElWCYFAW7s7q PbhoYvlCurTWmSQGgH8jBofcF0HQa8QEVUE34pFsVWqh7uSqFlG88Kax0RLdF7Xi7MIH r0PAFaj0yXgoDUCOaMjf0o8d86E0c4vLcpyqflNIXvvIvveSDFabPAUcfGX3hcBRDTot CpKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=scjoFZhQ; dkim=neutral (no key) header.i=@suse.de; 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 a11si5488120ild.92.2021.05.21.13.22.34; Fri, 21 May 2021 13:22:46 -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=@suse.de header.s=susede2_rsa header.b=scjoFZhQ; dkim=neutral (no key) header.i=@suse.de; 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 S232369AbhEUQWI (ORCPT + 99 others); Fri, 21 May 2021 12:22:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:33934 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230267AbhEUQWH (ORCPT ); Fri, 21 May 2021 12:22:07 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1621614043; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=0jku9GTWoW2j4X3kuE24CEPxpjUZoyrELhmnmA6WIRM=; b=scjoFZhQZOqwY7sQY14JVQERLQBiMsK0kCCiGWKiJttOhvO/OQxVNvL4uwOX8bp+CKqz9y 8JaI2kf/FBenZkKbrJiUithygyIER063lsg/dBEMEc1hKvhl8ZlcS2Dc3KxOtsGWH05aUC zxSH0PiYv5cn4zSwbXpWYKh+7PA5TN8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1621614043; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=0jku9GTWoW2j4X3kuE24CEPxpjUZoyrELhmnmA6WIRM=; b=Cb/Xe+DuudH9GdoksCM+G2Xj+HmhTE8s9kWt8imNLJhlk4vrDY76mWzrICfPArvovzbNcl T+PLZwyQePX3lxCg== Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 063F4ABD0; Fri, 21 May 2021 16:20:43 +0000 (UTC) Date: Fri, 21 May 2021 18:20:41 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: netdev@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Nathan Chancellor , Nick Desaulniers , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com Subject: BTF: build failure on 32bit on linux-next Message-ID: <20210521162041.GH8544@kitsune.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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, struct bpf_map *map) targ_map = map->init_slots[i]; fd = bpf_map__fd(targ_map); if (obj->gen_loader) { - pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n", + pr_warn("// TODO map_update_elem: idx %td key %d value==map_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;