From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C10022EB0B; Mon, 1 Apr 2024 16:56:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711990576; cv=none; b=SX7hqQgdL/onXtYra/6CKFtIAfNgIXVb4cX1f2nSXYxaW4y3tE0zCQGvkTXmlIKlqIvpQ2gR9RXuVE/tO+d+enuM6+tOyxXrYVOHPIrcpdRs4Ljv+fJJuIl4roOzINxKT2N6cmwSkhay9/1EL0qs0hGwtaWPWgKTbS+Fq9Ev0uM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711990576; c=relaxed/simple; bh=LrmVH51FR6QhZxMhX0jtqLDLx+e0ljejZi+3yh6/Sh4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GyCS7ZB0SUBgk/zYQRGI1jBA6OS5NYtfsz1tF/Ym6z/U65tiH7Y02D8m++a4YT9BB5ePIky5IwiaMyFmcylhesm0/ohJ8pDWIXxPNQpq1gQpJermuNSIxN+opioC6HQCWQWajzwC7r51YsdaTDfKyItKYL2jyDkAeTBZehVqgBk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UHcg0aaU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UHcg0aaU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07844C433C7; Mon, 1 Apr 2024 16:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711990576; bh=LrmVH51FR6QhZxMhX0jtqLDLx+e0ljejZi+3yh6/Sh4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UHcg0aaUT+m9oYrj7oI9vy2uqNeOjztYtZeyyk3gRBQCKSxkTDEVRHzxCCydwCG/2 YRNq9YG6Eqg21NilHBZ2wrTKF5ovYg7U227rQRihKmZzEkhvLyNyLj/eAKGhPlYjkS 1gBudwvaHZCt6pL+lDYX+1EX2hOByyL3MNB8B+ZY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Natanael Copa , Greg Thelen , Alexei Starovoitov Subject: [PATCH 6.6 396/396] tools/resolve_btfids: fix build with musl libc Date: Mon, 1 Apr 2024 17:47:25 +0200 Message-ID: <20240401152559.713284729@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240401152547.867452742@linuxfoundation.org> References: <20240401152547.867452742@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Natanael Copa commit 62248b22d01e96a4d669cde0d7005bd51ebf9e76 upstream. Include the header that defines u32. 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. 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 Tested-by: Greg Thelen Link: https://lore.kernel.org/r/20240328110103.28734-1-ncopa@alpinelinux.org Signed-off-by: Alexei Starovoitov Signed-off-by: Greg Kroah-Hartman --- tools/include/linux/btf_ids.h | 2 ++ 1 file changed, 2 insertions(+) --- 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[];