Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp351767lqh; Thu, 28 Mar 2024 04:17:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/1DVZgQZCUGUob7tH3cAVsLVZtlsm++3J59HGRkIiE6mn3oF+536U+MJBeKXke54QiuL4Mq+mFoTrTvkTVwlMbK0BqpSlOlBMzGvE+Q== X-Google-Smtp-Source: AGHT+IHSlMOmrPyLmAZ+jgrfwXMJMs/nFhEgIq/JApBilMBdsaN/KrBmz0KibzehaqRNAzA559bK X-Received: by 2002:a05:6870:d14a:b0:222:b950:6785 with SMTP id f10-20020a056870d14a00b00222b9506785mr2448419oac.28.1711624635872; Thu, 28 Mar 2024 04:17:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711624635; cv=pass; d=google.com; s=arc-20160816; b=RYD1BnjX5iw+FMFornlqzUMZqNJzx79U94tMjGirXxyaGsAwHXjFwI6mZrqhqtUBu8 Dm9U+JmILTudA8hRAlX3oVVwxVBcJkVnUOMKAjCuXsP/M0XsX4JUO/pi7tMyID+ZHvbB JejAL5x5U+aTBKYJaM6QLbIPYM+gvTOsJYNWSv73D4HknzG3oAdnSYksPMUY9H5C6Foa JNCuaJ/dZhpF9o06ww7AaCqoOOnkyInTq4XNE2QR2I9/uPb5uT5lFeJCOr/k2q0WFod+ EW9W+HEUmdpu8r5Szmw9uNmz4HjPIXhNFZVQPlCH0b9OP0gNHYAJovG7odznvT6YL7Oi xQyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=e3J+7uknz3z0s1JqJlEsccjqrrENP/4M0ZqplTq5eJU=; fh=RInojTgsbFyxkqHVOokOVa2IiQCm11IHn8ggrHD5uvw=; b=sdB/NwTmROyS4Pinr+vp1qsT3mAw8ohIKvJz2axTRyQRdp9Bhv2tmLiUYnD/pgumdz Mei4XnEVvu4MM+fgqtTYA9S7VoX3mWYEbD0sg8edoZVpe9yuFfrN/PdWLj6fSpVA+Mdw gpX9CynSX87lrmNvpXYHsAqVjcLs4ayOiZLYQ7pe84JSoGSgYBv99laG4fuCUhn1KZa8 es32mtfFFT6Gx7VnikPH95iJmxhG5/e/R4Y2QQktH4PofUmKiZOtSb3CM2yxLqj/8/EO ZrryAvvMqwwW0Hy7e5vJkoor3rp7cdBvtYO9ynT6Q1kXbwJ9rkXt3bHlW2vaGjWi1CVq G2GQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alpinelinux.org header.s=smtp header.b=dpXOQPKD; arc=pass (i=1 spf=pass spfdomain=alpinelinux.org dkim=pass dkdomain=alpinelinux.org); spf=pass (google.com: domain of linux-kernel+bounces-122815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122815-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b22-20020a63e716000000b005dc82a6d761si1219596pgi.123.2024.03.28.04.17.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 04:17:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alpinelinux.org header.s=smtp header.b=dpXOQPKD; arc=pass (i=1 spf=pass spfdomain=alpinelinux.org dkim=pass dkdomain=alpinelinux.org); spf=pass (google.com: domain of linux-kernel+bounces-122815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122815-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 27F1CB24E6C for ; Thu, 28 Mar 2024 11:10:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33B647E107; Thu, 28 Mar 2024 11:10:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=alpinelinux.org header.i=@alpinelinux.org header.b="dpXOQPKD" Received: from gbr-app-1.alpinelinux.org (gbr-app-1.alpinelinux.org [213.219.36.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E19AB4A18; Thu, 28 Mar 2024 11:10:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.219.36.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711624205; cv=none; b=QnRCdd1lTAHODB6IWyYeBvBCmJghvnZdg9NFSrKCr0xTKzDpbkGqan8hTDbhSqRPnghmd73In/UAeAdsCp5NcgMrQKCxdIk50MrseO4kB0ojYKV6ozl5+dYPd0n4eXfI9JuqhIa310nvd+AmxFKlM5Blav76njJGYkr3rRc15CE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711624205; c=relaxed/simple; bh=YPtwI/73XQMq5pLXmdBDn594QE8iR58OHaXvHludfN0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GGXmaIclnMpHTdCZ1EZmsrO4S9Vs8j6nyVFfaYVYY6EMBBaJWrr12aMgtsAaYo7cds5gOVtXEVs4emrcysAMJyrWVmdCsTFFbJxY2jzMYtQ5KAT9IQ8JV6JRzBefa2X5w9TJYxBbwObL5xqHugtJ0vZDBacbrsgjUQwwQw107VQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpinelinux.org; spf=pass smtp.mailfrom=alpinelinux.org; dkim=pass (1024-bit key) header.d=alpinelinux.org header.i=@alpinelinux.org header.b=dpXOQPKD; arc=none smtp.client-ip=213.219.36.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpinelinux.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpinelinux.org Received: from ncopa-desktop.lan (ti0056a400-4037.bb.online.no [85.167.238.210]) (Authenticated sender: ncopa@alpinelinux.org) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPSA id AE80B226016; Thu, 28 Mar 2024 11:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alpinelinux.org; s=smtp; t=1711623671; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=e3J+7uknz3z0s1JqJlEsccjqrrENP/4M0ZqplTq5eJU=; b=dpXOQPKDkCmrGhqGtBgCQrWFj4n4hd60kAQwPK9oWxZK4nzVZv0Ek02vCFVsu0sUavFj3B iWRCjOFoqF/LdParHOH5uf+yZe0QieCKFmxpW5EvuwS+Mx/skL0HWDUBjNQXooQuXATPq5 2h/gQTWy8YdnnRV12Jzob3ZYqBmIRLI= From: Natanael Copa To: bpf@vger.kernel.org Cc: Natanael Copa , stable@vger.kernel.org, Viktor Malik , Daniel Xu , Alexei Starovoitov , Nick Desaulniers , Andrii Nakryiko , linux-kernel@vger.kernel.org Subject: [PATCH] tools/resolve_btfids: fix build with musl libc Date: Thu, 28 Mar 2024 11:59:13 +0100 Message-ID: <20240328110103.28734-1-ncopa@alpinelinux.org> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Include the header that defines u32. Fixes: 9707ac4fe2f5 ("tools/resolve_btfids: Refactor set sorting with types from btf_ids.h") Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218647 Cc: stable@vger.kernel.org Signed-off-by: Natanael Copa --- This fixes build of 6.6.23 and 6.1.83 kernels for Alpine Linux, which uses musl libc. I assume that GNU libc indirecly pulls in linux/types.h. tools/include/linux/btf_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/include/linux/btf_ids.h b/tools/include/linux/btf_ids.h index 72535f00572f..72ea363d434d 100644 --- a/tools/include/linux/btf_ids.h +++ b/tools/include/linux/btf_ids.h @@ -3,6 +3,8 @@ #ifndef _LINUX_BTF_IDS_H #define _LINUX_BTF_IDS_H +#include /* for u32 */ + struct btf_id_set { u32 cnt; u32 ids[]; -- 2.44.0