Message ID | 20250210200518.1137295-1-florian.fainelli@broadcom.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FBDBC02198 for <linux-mm@archiver.kernel.org>; Mon, 10 Feb 2025 20:06:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D43A4280013; Mon, 10 Feb 2025 15:06:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CCBC528000B; Mon, 10 Feb 2025 15:06:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BBA73280013; Mon, 10 Feb 2025 15:06:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 9D86428000B for <linux-mm@kvack.org>; Mon, 10 Feb 2025 15:06:48 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 37FEEA05F0 for <linux-mm@kvack.org>; Mon, 10 Feb 2025 20:06:48 +0000 (UTC) X-FDA: 83105118096.04.FB84BE5 Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.166.231]) by imf28.hostedemail.com (Postfix) with ESMTP id 6074BC000B for <linux-mm@kvack.org>; Mon, 10 Feb 2025 20:06:46 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=broadcom.com header.s=dkimrelay header.b="XmF0I/Lz"; spf=pass (imf28.hostedemail.com: domain of florian.fainelli@broadcom.com designates 192.19.166.231 as permitted sender) smtp.mailfrom=florian.fainelli@broadcom.com; dmarc=pass (policy=quarantine) header.from=broadcom.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1739218006; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=Apwf+zboOR+9uc2YE32qokWC9ekQh91L71UQMNpwls0=; b=66mhpHjwkg2irnW8rfyMXXlcPuDNReBGZzvUUJa8m1/fG5Dt8/FInQktlfNovMkpYqx62V idTTcYhZLSRzc0eI+A2GDS2QktNUZYrPCJvc+V/b96NDHSwE4w41NZu0V9cP87lJPKEP0M c3TaXk9kW6uLQH182XIZ5nQ58brwF78= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=broadcom.com header.s=dkimrelay header.b="XmF0I/Lz"; spf=pass (imf28.hostedemail.com: domain of florian.fainelli@broadcom.com designates 192.19.166.231 as permitted sender) smtp.mailfrom=florian.fainelli@broadcom.com; dmarc=pass (policy=quarantine) header.from=broadcom.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1739218006; a=rsa-sha256; cv=none; b=IIs06Sp3nKoJWZZ2Wyksf7rFyrV4DmZzXNL7W2hv6ZQImmqxb1PaEoL4BSDv1pApVUICYq bQjgBe7aWCdVrX5dEE9FQRPyh/xI+3Z3DOVwQB3faKpcUThk5vLmBJAYN7x0M9z0EOlcnS n68QNy6y56HPzz4z32EbGYrxyb4lp+I= Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id E276EC0006F0; Mon, 10 Feb 2025 12:06:44 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com E276EC0006F0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1739218004; bh=eS7Xiq1mBUz2ufzFA3rI+awIHkaF6JmT7B8fpLKxT04=; h=From:To:Cc:Subject:Date:From; b=XmF0I/LzSUHscSi6zGQB4WrExzx6BfEbSqIOYNQt/alFEAM8wkZUuSLBKPgSbDQjX sBoWjTPZIo1oZrh9fAsV4UiWLOjO2MPu+prW2g0pbNMFj22FGaB6KCcqa+PTdNv+D9 Co1TDxgZvh/JB+tW8rq1Svf+Eevo4/TyZF6KjQjY= Received: from fainelli-desktop.igp.broadcom.net (fainelli-desktop.dhcp.broadcom.net [10.67.48.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id BB93718041CAC6; Mon, 10 Feb 2025 12:06:44 -0800 (PST) From: Florian Fainelli <florian.fainelli@broadcom.com> To: linux-kernel@vger.kernel.org Cc: Florian Fainelli <florian.fainelli@broadcom.com>, Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org (open list:MEMORY MANAGEMENT) Subject: [PATCH] tools/mm: Fix build warnings with musl-libc Date: Mon, 10 Feb 2025 12:05:18 -0800 Message-ID: <20250210200518.1137295-1-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 6074BC000B X-Stat-Signature: ruq7qfjqfncc1s7yurfad44moj4n1eao X-HE-Tag: 1739218006-931234 X-HE-Meta: U2FsdGVkX1+5DN22BqQZ/siob/dIedIaA5dXCqRmUFKZwsIKR7Zl3xDRZ/yAmn+KZbg1LVz/V36DGESEG8ripu8aumeb6dHSmE2vnWvo+MjvuWYsHn4a7ge2jIlDMGmautfdph3hUfnNZjT8pfQV9EWXyZh8psp5OKQzVrO3uoavggBuELaAKx7BYB67pUQH7FGNh2GSZtv1i4I2x9OvZM+BJpJmsuftr12ePd1Ypcsyl2pkCcHlqvBfING7yuaOaM/WhY2MHU8V3OCaGjvoi6Y1ZpgcZxrU8E6PxiwMgkMKWW0WlLl8ZzgqO7MvhVKJunt/EMktqvWcVc6V4CHBn2SZcW1XXwqyHjNXqzPcmedRxLbIsPEp63Lp1E5Mg34dUE3gYMKDjFYJRWvaQ6p2+OC/ndhG9mm8Aef+1obGmH+lE6QrYlbWIYGzHZ7KE4Uc27qL6wB+N/aYXdx63LNNP91Xqyi2hCc3+1ZcxBBdAgm8IpZlIij6TM54Ds0xPPLs0HmWSMDnSwMgnm5dhjr6y9VDva0uLOnkhs+4N7OVkzLKZeD3QR5u4tWAw6jj7dECrFlhZ6VpgMRswyQ6A5GzgH/1xQgIEElVkBeqtFtndl0tRg+klt1TucVELJs8OgRW3+5UiAOCpEMyRHsA8siLONbA9I1Wmy0TSH899T3Z+0udyfDCRh6TUolfN+EQEmft1envQJI299mKgKMMEh7BrQOczboQnRyiA0JGFEKjW7/utX/h2M+SKqrPsJ7QtRVJftFzv93TfWThxqmhc15ST+WE00KinC9FhHQniRxiYXfB76Hi5OTCtgwuyqHu8+nhKbjwx1QuidyaRJAajZo6Kr2RnWklNF7oP6OpvM1SYtsLCXUCDApad4hku7YiyjqiVs8ftZhwrBDvV+mFyWsLrsagGeG8PKZuOaRJn9mxKmfNzbxfHx8QxDIJhSv4dRi5wvM4d5tc3H3sqZdRcs7 kHaQN7+9 UxdkxuTo7crLoxvbTJbNmFSvXSr4dSErRv353jqFLqCpPHcOYqHdDPWCaGKP4Xo3M/1O9IXWn2WV006k5LPp+KpsmWjkKQRJy23kXEkwjdAytbknK+mWaYWso0Sm0uk0ErmcO0kO6k4IDK76B4ZhlBhwPxnpf7L2RkhZBFKPH0/PFVkEXTzcpCI30u0iU6lcH+CPDnbyuo/3Zvv67opDQOj7o0J/p7LihyRCVth6LiCWBcdM= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
tools/mm: Fix build warnings with musl-libc
|
expand
|
diff --git a/tools/mm/page-types.c b/tools/mm/page-types.c index bcac7ebfb51f..d7e5e8902af8 100644 --- a/tools/mm/page-types.c +++ b/tools/mm/page-types.c @@ -24,8 +24,8 @@ #include <signal.h> #include <inttypes.h> #include <sys/types.h> -#include <sys/errno.h> -#include <sys/fcntl.h> +#include <errno.h> +#include <fcntl.h> #include <sys/mount.h> #include <sys/statfs.h> #include <sys/mman.h>
musl-libc warns about the following: /home/florian/dev/buildroot/output/arm64/rpi4-b/host/aarch64-buildroot-linux-musl/sysroot/usr/include/sys/errno.h:1:2: attention: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/errno.h> to <errno.h> | ^~~~~~~ /home/florian/dev/buildroot/output/arm64/rpi4-b/host/aarch64-buildroot-linux-musl/sysroot/usr/include/sys/fcntl.h:1:2: attention: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> | ^~~~~~~ include errno.h and fcntl.h directly. Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> --- tools/mm/page-types.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)