Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp431705lqh; Fri, 31 May 2024 06:04:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVch5pX7zPMmNKn+2a0mwsv2yc5hEAcHPZjLOnzvnjWiljSjC9tMVge20Jqpwn26gG8chdIW8pq/KFR5v/8j8Et2FcMQEfyU5x/wQsl6Q== X-Google-Smtp-Source: AGHT+IHpYpBqP972Dk03vbBIDs3MT09q2/yVbsWxxXAhZBW1tvgYzUWXp2U8027xO4y+5ceaLmB+ X-Received: by 2002:a05:620a:4591:b0:792:b995:3a3d with SMTP id af79cd13be357-794f5c88146mr214974885a.45.1717160675468; Fri, 31 May 2024 06:04:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717160675; cv=pass; d=google.com; s=arc-20160816; b=Nh4uOJ3MXHOUrYDs/VNrOUHOYKoC4rYr8sOq1jJ7qTGd8U3VRiPlp7otV3KLs2mhz1 f1FsyOc6RghRZvkymr99tL66kJ86s2M9XAfAUaCv3WWHGcoBy085LDuiRdpPz7Z/Wxky NbsyjLU0cKo0Zt+NEWMJAZg4H7fYJ81ZohdjJ8t82OzSzDMxxU4nUU9QisL0wvlSVGhe 41lKxqsewcdXdAaZSLeMmkCEGdfcXUbNKvUoR2pOK94v90MnmhQPgHzSnYQwpNZWMf4/ nVSZaFoPMgPuxxUWvNfb9LDR+VRU1WU+xUS7qmd2zccJipRVs9AovZFr/jqnn3tYZ4Lh L6GQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=HPsPPqXaEn5a4mQRklFE9286Jc1yj/4Ifhg/uCIRkyw=; fh=vHwqMWn/4H+rAD3btqQjxWV1dEpLETvAL+JV+uRXNtk=; b=VKgkUDP5KYSbw2wkK9atidoxFEcGtuz+ltK0JZDli58WfwzncmNZzkPCCPX0rTIp+h GHRBw2fjQBWeOiFi/6mAe2YRuzvLBIOX2OnAdFyWnODmJneLorrmt+/S59fMweBe8lot 7MZCoxloNrmgKZWvyQth92JoM5VlzMKg7jyWgadEckuTSIKb0mT/acO2qkqzso9B4yQb NvGu9M7rEAAa92+kAEY6oDKC0GTtlE/kTC5+IZ0MYIgBG9Q7wTYTrInj1Cd/a77IuZeO BRUGjpntdzg+feNK2GAsHzNp/Qh1jwX0ioHodgTmsXqQInUMp+Erl9MivfZPqMvV7E/r cSmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=So3CyOX6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196832-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196832-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f317f5e6si197708785a.434.2024.05.31.06.04.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 06:04:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196832-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=So3CyOX6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196832-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196832-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 20AEE1C22E19 for ; Fri, 31 May 2024 13:04:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2F0F158865; Fri, 31 May 2024 13:04:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="So3CyOX6" 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 CB6D5381AD for ; Fri, 31 May 2024 13:04:27 +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=1717160667; cv=none; b=m39ifyWhxDhaOFgn3SCPeisvItnhl7Ameu/jfbHmQhX4OEqhU0/+g8jpbc/OeElZtCRKoq3uu5+Ee6BQ4mmEv367nmYDhfvwDVmeIQ5zSMeLVW30rwE9g1exrCyhwYeZNWKvs4uJgVk2FLUet4Yct240PuNLCkvOnn69xbdEsxc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717160667; c=relaxed/simple; bh=LNKu49pBwLUdjwHEeEVOwY8XyUhmJM4N5e1r0Vn3N1k=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=m5Eeoyy2FDb9JoJRRny+aoCcThj2mW5Oo74d6uXKNWPLfne2QuLZg5LIrONBJ7GLw5hTQOIyR07LyUhH6bxKuPC9TmhdZltu6FhyOttf70nAYuUODRHi4N0oNddtnD09L1rBnTsscF6xn/LgM6uyzTEaQjiqvWTzAiMiWXvhzrs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=So3CyOX6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AECFC116B1; Fri, 31 May 2024 13:04:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717160667; bh=LNKu49pBwLUdjwHEeEVOwY8XyUhmJM4N5e1r0Vn3N1k=; h=Date:From:To:Cc:Subject:From; b=So3CyOX60GOdoCxGf3NvV8/qNtVRcJ7o0EaJfip/xyGgqA+HXyUu7RW2W77Enlw5j Mib1yqQzsIhPfCsUgF7i2Lhu9KOhtSqvnJci9c1iSgI+//BHfcBGQ0T/J2TEGh2k6m 6WsjjtrfZ5SSrT9wOn4hSVOnYQmohDf7ANUnD9NljdBMMU9RCX+QaXQZdS0jC9NbLN O4ZZ/0OUd79oNfOGtlfhKcKfml4bLFHDyf5Soc7louLjbbzEhNPJ380SL+WdaCbGv0 6TqlhKW6kWa8FmrXioHPcwKfV3dBrGiUoIQwNZuaXtO2pYLR+VXwQbE3LZLNsM8R7M 9O4R8QtsSLcmA== Date: Fri, 31 May 2024 10:04:24 -0300 From: Arnaldo Carvalho de Melo To: linux-kernel@vger.kernel.org Cc: Adrian Hunter , Christian Brauner , Ian Rogers , Jiri Olsa , Kan Liang , Kent Overstreet , Namhyung Kim Subject: [PATCH 1/1 fyi] tools headers uapi: Sync linux/stat.h with the kernel sources to pick STATX_SUBVOL Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tldr; Just FYI, I'm carrying this on the perf tools tree. Full explanation: There used to be no copies, with tools/ code using kernel headers directly. From time to time tools/perf/ broke due to legitimate kernel hacking. At some point Linus complained about such direct usage. Then we adopted the current model. The way these headers are used in perf are not restricted to just including them to compile something. There are sometimes used in scripts that convert defines into string tables, etc, so some change may break one of these scripts, or new MSRs may use some different #define pattern, etc. E.g.: $ ls -1 tools/perf/trace/beauty/*.sh | head -5 tools/perf/trace/beauty/arch_errno_names.sh tools/perf/trace/beauty/drm_ioctl.sh tools/perf/trace/beauty/fadvise.sh tools/perf/trace/beauty/fsconfig.sh tools/perf/trace/beauty/fsmount.sh $ $ tools/perf/trace/beauty/fadvise.sh static const char *fadvise_advices[] = { [0] = "NORMAL", [1] = "RANDOM", [2] = "SEQUENTIAL", [3] = "WILLNEED", [4] = "DONTNEED", [5] = "NOREUSE", }; $ The tools/perf/check-headers.sh script, part of the tools/ build process, points out changes in the original files. So its important not to touch the copies in tools/ when doing changes in the original kernel headers, that will be done later, when check-headers.sh inform about the change to the perf tools hackers. To pick the changes from: 2a82bb02941fb53d ("statx: stx_subvol") This silences this perf build warning: Warning: Kernel ABI header differences: diff -u tools/include/uapi/linux/stat.h include/uapi/linux/stat.h Cc: Adrian Hunter Cc: Christian Brauner Cc: Ian Rogers Cc: Jiri Olsa Cc: Kan Liang Cc: Kent Overstreet Cc: Namhyung Kim Link: https://lore.kernel.org/lkml/ Signed-off-by: Arnaldo Carvalho de Melo --- tools/include/uapi/linux/stat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/stat.h b/tools/include/uapi/linux/stat.h index 2f2ee82d55175d05..67626d53531664d0 100644 --- a/tools/include/uapi/linux/stat.h +++ b/tools/include/uapi/linux/stat.h @@ -126,8 +126,9 @@ struct statx { __u64 stx_mnt_id; __u32 stx_dio_mem_align; /* Memory buffer alignment for direct I/O */ __u32 stx_dio_offset_align; /* File offset alignment for direct I/O */ + __u64 stx_subvol; /* Subvolume identifier */ /* 0xa0 */ - __u64 __spare3[12]; /* Spare space for future expansion */ + __u64 __spare3[11]; /* Spare space for future expansion */ /* 0x100 */ }; @@ -155,6 +156,7 @@ struct statx { #define STATX_MNT_ID 0x00001000U /* Got stx_mnt_id */ #define STATX_DIOALIGN 0x00002000U /* Want/got direct I/O alignment info */ #define STATX_MNT_ID_UNIQUE 0x00004000U /* Want/got extended stx_mount_id */ +#define STATX_SUBVOL 0x00008000U /* Want/got stx_subvol */ #define STATX__RESERVED 0x80000000U /* Reserved for future struct statx expansion */ -- 2.45.1