From nobody Mon Oct 6 15:24:12 2025 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 EC39720C000; Fri, 18 Jul 2025 21:35:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874520; cv=none; b=QXJd3EuXWXdLr8RKfLfTkfxeZCGJDI+bgNWOf5nzEqXAP1iNxslBevHbd/HBqzvRjLR75B/Q6Mo6sIhoIlcF0uraGCkU9MX1v2vUkVReW5YabPnjKupxDiChqPjw7wux2pYy3smb1IG3xYEDBqCkRsjsV6V21H5kF/5oKzB+Yvw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874520; c=relaxed/simple; bh=+dM1bld6YqFuWFqTeVy2M0W6B7tgTC8OPQdbIxYR2qs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LKD8yqmcxqS7hhj5NAzeG60l+pV8TDclhzLctSfelycwy5o+GO4+Tn9UEPvdUg2j6NMZlPqOXYhy6FU2k3GwgVs0bxKQPmwq3PPVvSS1lgQu7rFk/n+FOTvGynodi7gTuwwY7PibuHuQ+qh8T0WzgXzMYfltBg5f/s3+15FAYbk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=Kx/7ty58; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="Kx/7ty58" Received: from mail.zytor.com ([IPv6:2601:646:8081:9482:197f:c1e5:8ae9:2d06]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 56ILX0sj2795198 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 18 Jul 2025 14:33:08 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 56ILX0sj2795198 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2025062101; t=1752874392; bh=vsGxPzzTTwhbkBTwSIw4sMhUPUpWMkx20cB75uEuQgk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kx/7ty58HGwlQQ9wukr5GLlArF7WbH8FuLxY3YsNTqgBvNvDn0WLESCp9yJlEkRvK D4v3jsyACGn/Zs+sckVl4E860FaFow+wHRJOWxoCMXIYb5M2IMBAuSPrJjBVrsUBhD /z/2WYf/0/n2ZRIQN1GkLQfeh2VxSfqhR08ebExZYrzLD/q2cp0wIUqMd8i/5oolkG m9q4A3UgO3CxGt0qZyknk+aBLuIVgK4P11GErU8wEHk64cwd2VWdUQYXO2EbfL8jqY h9urWUThtVvbUsShKEJP0wwRg/YQQwYh6tfsnwTvBJ48CiN2PxQ0jt/Wp6SDYN/z5X 4iujXkUVnsq5A== From: "H. Peter Anvin" To: Cc: "H. Peter Anvin" , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , "Michael S. Tsirkin" , Al Viro , Alexei Starovoitov , Alexey Dobriyan , Andrew Morton , Andrii Nakryiko , Arnd Bergmann , Borislav Petkov , Cong Wang , Dan Williams , Daniel Borkmann , Dave Hansen , David Laight , David Lechner , Dinh Nguyen , Eduard Zingerman , Gatlin Newhouse , Hao Luo , Ingo Molnar , Linus Torvalds , Jakub Sitnicki , Jan Hendrik Farr , Jason Wang , Jiri Olsa , John Fastabend , Jonathan Cameron , Josh Poimboeuf , KP Singh , Kees Cook , Luc Van Oostenryck , Marc Herbert , Martin KaFai Lau , Mateusz Guzik , Michal Luczaj , Miguel Ojeda , Mykola Lysenko , NeilBrown , Peter Zijlstra , Przemek Kitszel , Sami Tolvanen , Shuah Khan , Song Liu , Stanislav Fomichev , Thomas Gleixner , Thorsten Blum , Uros Bizjak , Xuan Zhuo , Yafang Shao , Ye Bin , Yonghong Song , Yufeng Wang , bpf@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-sparse@vger.kernel.org, virtualization@lists.linux.dev, x86@kernel.org Subject: [PATCH 1/7] compiler_types.h: add "auto" as a macro for "__auto_type" Date: Fri, 18 Jul 2025 14:32:44 -0700 Message-ID: <20250718213252.2384177-2-hpa@zytor.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250718213252.2384177-1-hpa@zytor.com> References: <20250718213252.2384177-1-hpa@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" "auto" was defined as a keyword back in the K&R days, but as a storage type specifier. No one ever used it, since it was and is the default storage type for local variables. C++11 recycled the keyword to allow a type to be declared based on the type of an initializer. This was finally adopted into standard C in C23. gcc and clang provide the "__auto_type" alias keyword as an extension for pre-C23, however, there is no reason to pollute the bulk of the source base with this temporary keyword; instead define "auto" as a macro unless the compiler is running in C23+ mode. This macro is added in because that header is included in some of the tools headers, wheres is not as it has a bunch of very kernel-specific things in it. Signed-off-by: H. Peter Anvin (Intel) --- include/linux/compiler_types.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index 2b77d12e07b2..c8b1ee37934e 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -13,6 +13,19 @@ =20 #ifndef __ASSEMBLY__ =20 +/* + * C23 introduces "auto" as a standard way to define type-inferred + * variables, but "auto" has been a (useless) keyword even since K&R C, + * so it has always been "namespace reserved." + * + * Until at some future time we require C23 support, we need the gcc + * extension __auto_type, but there is no reason to put that elsewhere + * in the source code. + */ +#if __STDC_VERSION__ < 202311L +# define auto __auto_type +#endif + /* * Skipped when running bindgen due to a libclang issue; * see https://github.com/rust-lang/rust-bindgen/issues/2244. --=20 2.50.1 From nobody Mon Oct 6 15:24:12 2025 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 EC2FD207A32; Fri, 18 Jul 2025 21:35:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874520; cv=none; b=dxsG/Prk82FrkWR5qZYNQdz+4NVGQEpalFcp3ryDlKpPw8tYPByu+JX65XxXptxzRzV5I/3al9jlPYrOO2H3UPf44YtPU3/9JOTVU6jUaguykUmbtcEUdC4fG1cN+DQ5YBRmP/QJm6ADzUVzXUHCMKTsWSh2h7lyujititaRZ9I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874520; c=relaxed/simple; bh=9dtVCcaoM7scDr6iHjz+kfoV+3QGDIWOIuOPomYWM8w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=e5gZNX5Hp+to1koPFe68vlQ581nZnm/Zps/Pa2eADIQk4zG56fEbr8ER/OKEh6iUBuvutAZkk0Ts/B2xVxG97r5E2TdBI68qjZE3bqrruy4xnmh7DBX6LpU17etbK8qD8D/WaoesUeTWVpyF12OZI/1jnxy2J+41blkPzq01gmk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=Zk9YCLSE; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="Zk9YCLSE" Received: from mail.zytor.com ([IPv6:2601:646:8081:9482:197f:c1e5:8ae9:2d06]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 56ILX0sk2795198 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 18 Jul 2025 14:33:12 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 56ILX0sk2795198 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2025062101; t=1752874395; bh=Z4WmS4NAnxtVl2zGz5v9dKawPFHSnciPALGaXZnv+mI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zk9YCLSE+KfX8gmZ6wswqlqJW5JOx+SissEJ5Ra2wJTy1z7ecBDKHBGRc64XXQhNE YZVhdTFGXR/Dh1aYxkOOAJUbRtB0NhBTa5/4TeGRJt3f4bZAIv+vF+od9n7EFsWHPE 5mcyAnxN1JS+C7sEx7Kb1S7AvDFnoN5+K4Mec9vf5RXaUDj0vWkuV+yLe/lwL9obPj XRNn1oKKwl+4Sq0358zKr91s43RP7AdpGWVM5D8r6mlYTJ/Bw0kHkLiojNOjKikOdz rMOKgmauDhfRoWu0WTCVxGtC3lY8ioEkKUyWrnmWMgNrwmvCe4+kbH3kmHJWdY8JlL Uv8GXdJ/L0ZNQ== From: "H. Peter Anvin" To: Cc: "H. Peter Anvin" , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , "Michael S. Tsirkin" , Al Viro , Alexei Starovoitov , Alexey Dobriyan , Andrew Morton , Andrii Nakryiko , Arnd Bergmann , Borislav Petkov , Cong Wang , Dan Williams , Daniel Borkmann , Dave Hansen , David Laight , David Lechner , Dinh Nguyen , Eduard Zingerman , Gatlin Newhouse , Hao Luo , Ingo Molnar , Linus Torvalds , Jakub Sitnicki , Jan Hendrik Farr , Jason Wang , Jiri Olsa , John Fastabend , Jonathan Cameron , Josh Poimboeuf , KP Singh , Kees Cook , Luc Van Oostenryck , Marc Herbert , Martin KaFai Lau , Mateusz Guzik , Michal Luczaj , Miguel Ojeda , Mykola Lysenko , NeilBrown , Peter Zijlstra , Przemek Kitszel , Sami Tolvanen , Shuah Khan , Song Liu , Stanislav Fomichev , Thomas Gleixner , Thorsten Blum , Uros Bizjak , Xuan Zhuo , Yafang Shao , Ye Bin , Yonghong Song , Yufeng Wang , bpf@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-sparse@vger.kernel.org, virtualization@lists.linux.dev, x86@kernel.org Subject: [PATCH 2/7] include/linux: change "__auto_type" to "auto" Date: Fri, 18 Jul 2025 14:32:45 -0700 Message-ID: <20250718213252.2384177-3-hpa@zytor.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250718213252.2384177-1-hpa@zytor.com> References: <20250718213252.2384177-1-hpa@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace instances of "__auto_type" with "auto" in include/linux. Signed-off-by: H. Peter Anvin (Intel) --- include/linux/cleanup.h | 4 ++-- include/linux/compiler.h | 2 +- include/linux/minmax.h | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/cleanup.h b/include/linux/cleanup.h index 7093e1d08af0..08973560e81d 100644 --- a/include/linux/cleanup.h +++ b/include/linux/cleanup.h @@ -201,8 +201,8 @@ =20 #define __get_and_null(p, nullvalue) \ ({ \ - __auto_type __ptr =3D &(p); \ - __auto_type __val =3D *__ptr; \ + auto __ptr =3D &(p); \ + auto __val =3D *__ptr; \ *__ptr =3D nullvalue; \ __val; \ }) diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 6f04a1d8c720..f50183b71bb6 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -186,7 +186,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f,= int val, #define data_race(expr) \ ({ \ __kcsan_disable_current(); \ - __auto_type __v =3D (expr); \ + auto __v =3D (expr); \ __kcsan_enable_current(); \ __v; \ }) diff --git a/include/linux/minmax.h b/include/linux/minmax.h index eaaf5c008e4d..7c6fba53ea5b 100644 --- a/include/linux/minmax.h +++ b/include/linux/minmax.h @@ -89,7 +89,7 @@ __cmp_once_unique(op, type, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_)) =20 #define __careful_cmp_once(op, x, y, ux, uy) ({ \ - __auto_type ux =3D (x); __auto_type uy =3D (y); \ + auto ux =3D (x); auto uy =3D (y); \ BUILD_BUG_ON_MSG(!__types_ok(ux, uy), \ #op"("#x", "#y") signedness error"); \ __cmp(op, ux, uy); }) @@ -129,7 +129,7 @@ __careful_cmp(max, (x) + 0u + 0ul + 0ull, (y) + 0u + 0ul + 0ull) =20 #define __careful_op3(op, x, y, z, ux, uy, uz) ({ \ - __auto_type ux =3D (x); __auto_type uy =3D (y);__auto_type uz =3D (z);\ + auto ux =3D (x); auto uy =3D (y); auto uz =3D (z); \ BUILD_BUG_ON_MSG(!__types_ok3(ux, uy, uz), \ #op"3("#x", "#y", "#z") signedness error"); \ __cmp(op, ux, __cmp(op, uy, uz)); }) @@ -203,7 +203,7 @@ * This macro checks @val/@lo/@hi to make sure they have compatible * signedness. */ -#define clamp(val, lo, hi) __careful_clamp(__auto_type, val, lo, hi) +#define clamp(val, lo, hi) __careful_clamp(auto, val, lo, hi) =20 /** * clamp_t - return a value clamped to a given range using a given type --=20 2.50.1 From nobody Mon Oct 6 15:24:12 2025 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 B645A1E832E; Fri, 18 Jul 2025 21:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874521; cv=none; b=bHXFPmokQw3ZlqJCcEshzdTl+ycmhUxTRETb56qZWb5gn7M8KXQWe/7kpQEjiO9CJRMzmKEygeLcv8Xeh5vGOdAPq11X84jpCdLrmkFsCuSIgMRuZ+bw9EPmIdTZ2VZbUo2O0beHxTRtc6Nuf8z7Cvv46Gn3Nr28/uAzpDZZyOU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874521; c=relaxed/simple; bh=NXPmr3BOE2u5fhRNvI0cqLh8kd9rVIcOhU8I/rc0IfU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ffc3lpriEMgoChkwa7kiRMFadiRn6FU4wcRs3cqt4n6iVzbIuKbLvkOxWdnNrc9RXw65MhEhVBPl/mTmCrIasMXuSDulxlOpuVpak1lPsBeHovc1NzEWEwU0ZN9uzLiBC9j5V0ww+4SbQyf6iWBFPmn/yn8En6Wx5i+ZwHjd9H0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=DSCKhfYx; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="DSCKhfYx" Received: from mail.zytor.com ([IPv6:2601:646:8081:9482:197f:c1e5:8ae9:2d06]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 56ILX0sl2795198 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 18 Jul 2025 14:33:15 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 56ILX0sl2795198 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2025062101; t=1752874399; bh=NhtjXHm8n19JlB0jzDbzbq1BDP9/2sJrEr7ZMM4ZOgY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DSCKhfYxOzSL+px0MZ4TAnvg9uQlNuCGi4G73+n+wLx8Q7YavwZc2Px2zSXZTQto3 1plvjh0/sLhIWPgZ22widI7khU7thmRtxGpmZ8Vozu1xui9m2wBFjOpBYeIPY3sW0v LIxvVM/18kTHW4mYpl9cD6VppG2BnuROjoT9VWHPmo+4hEPK8d551nRF9Xzr7B1Zdz bgBYSod1ouE0y6Zq9mS6sYis6nfVI2XP6tVkzVjrqavrvI2lGuHnjfJA9Nmvn0yURT ExMFs5//bPncOz5SZVUb0vdGel503WRCiJcGv/42xy9Cau2hsrD3sETZgg1DtC4ffC nhPb+bff8AJ6g== From: "H. Peter Anvin" To: Cc: "H. Peter Anvin" , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , "Michael S. Tsirkin" , Al Viro , Alexei Starovoitov , Alexey Dobriyan , Andrew Morton , Andrii Nakryiko , Arnd Bergmann , Borislav Petkov , Cong Wang , Dan Williams , Daniel Borkmann , Dave Hansen , David Laight , David Lechner , Dinh Nguyen , Eduard Zingerman , Gatlin Newhouse , Hao Luo , Ingo Molnar , Linus Torvalds , Jakub Sitnicki , Jan Hendrik Farr , Jason Wang , Jiri Olsa , John Fastabend , Jonathan Cameron , Josh Poimboeuf , KP Singh , Kees Cook , Luc Van Oostenryck , Marc Herbert , Martin KaFai Lau , Mateusz Guzik , Michal Luczaj , Miguel Ojeda , Mykola Lysenko , NeilBrown , Peter Zijlstra , Przemek Kitszel , Sami Tolvanen , Shuah Khan , Song Liu , Stanislav Fomichev , Thomas Gleixner , Thorsten Blum , Uros Bizjak , Xuan Zhuo , Yafang Shao , Ye Bin , Yonghong Song , Yufeng Wang , bpf@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-sparse@vger.kernel.org, virtualization@lists.linux.dev, x86@kernel.org Subject: [PATCH 3/7] fs/proc: replace "__auto_type" with "auto" Date: Fri, 18 Jul 2025 14:32:46 -0700 Message-ID: <20250718213252.2384177-4-hpa@zytor.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250718213252.2384177-1-hpa@zytor.com> References: <20250718213252.2384177-1-hpa@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace uses of "__auto_type" in fs/proc/inode.c with "auto". Signed-off-by: H. Peter Anvin (Intel) Reviewed-by: Alexey Dobriyan --- fs/proc/inode.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 3604b616311c..e5b150e70166 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -303,7 +303,7 @@ static ssize_t proc_reg_read_iter(struct kiocb *iocb, s= truct iov_iter *iter) =20 static ssize_t pde_read(struct proc_dir_entry *pde, struct file *file, cha= r __user *buf, size_t count, loff_t *ppos) { - __auto_type read =3D pde->proc_ops->proc_read; + auto read =3D pde->proc_ops->proc_read; if (read) return read(file, buf, count, ppos); return -EIO; @@ -325,7 +325,7 @@ static ssize_t proc_reg_read(struct file *file, char __= user *buf, size_t count, =20 static ssize_t pde_write(struct proc_dir_entry *pde, struct file *file, co= nst char __user *buf, size_t count, loff_t *ppos) { - __auto_type write =3D pde->proc_ops->proc_write; + auto write =3D pde->proc_ops->proc_write; if (write) return write(file, buf, count, ppos); return -EIO; @@ -347,7 +347,7 @@ static ssize_t proc_reg_write(struct file *file, const = char __user *buf, size_t =20 static __poll_t pde_poll(struct proc_dir_entry *pde, struct file *file, st= ruct poll_table_struct *pts) { - __auto_type poll =3D pde->proc_ops->proc_poll; + auto poll =3D pde->proc_ops->proc_poll; if (poll) return poll(file, pts); return DEFAULT_POLLMASK; @@ -369,7 +369,7 @@ static __poll_t proc_reg_poll(struct file *file, struct= poll_table_struct *pts) =20 static long pde_ioctl(struct proc_dir_entry *pde, struct file *file, unsig= ned int cmd, unsigned long arg) { - __auto_type ioctl =3D pde->proc_ops->proc_ioctl; + auto ioctl =3D pde->proc_ops->proc_ioctl; if (ioctl) return ioctl(file, cmd, arg); return -ENOTTY; @@ -392,7 +392,7 @@ static long proc_reg_unlocked_ioctl(struct file *file, = unsigned int cmd, unsigne #ifdef CONFIG_COMPAT static long pde_compat_ioctl(struct proc_dir_entry *pde, struct file *file= , unsigned int cmd, unsigned long arg) { - __auto_type compat_ioctl =3D pde->proc_ops->proc_compat_ioctl; + auto compat_ioctl =3D pde->proc_ops->proc_compat_ioctl; if (compat_ioctl) return compat_ioctl(file, cmd, arg); return -ENOTTY; @@ -414,7 +414,7 @@ static long proc_reg_compat_ioctl(struct file *file, un= signed int cmd, unsigned =20 static int pde_mmap(struct proc_dir_entry *pde, struct file *file, struct = vm_area_struct *vma) { - __auto_type mmap =3D pde->proc_ops->proc_mmap; + auto mmap =3D pde->proc_ops->proc_mmap; if (mmap) return mmap(file, vma); return -EIO; @@ -497,7 +497,7 @@ static int proc_reg_open(struct inode *inode, struct fi= le *file) if (!use_pde(pde)) return -ENOENT; =20 - __auto_type release =3D pde->proc_ops->proc_release; + auto release =3D pde->proc_ops->proc_release; if (release) { pdeo =3D kmem_cache_alloc(pde_opener_cache, GFP_KERNEL); if (!pdeo) { @@ -534,7 +534,7 @@ static int proc_reg_release(struct inode *inode, struct= file *file) struct pde_opener *pdeo; =20 if (pde_is_permanent(pde)) { - __auto_type release =3D pde->proc_ops->proc_release; + auto release =3D pde->proc_ops->proc_release; if (release) { return release(inode, file); } --=20 2.50.1 From nobody Mon Oct 6 15:24:12 2025 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 C4ADA42AA4; Fri, 18 Jul 2025 21:35:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874520; cv=none; b=Nrora2z5ktDGIjMVOkFkGWZ5Lf1XWa5uxrJBjS7bJ5m/SVMFfR0IHqcbZteyz2v+8KXpZgXblfECAaoPqxWh0HxiW79ukVaA6x+vj9oEimJ2kQY9abIYPbLqEJjeCxADTA5+GE9amc1cGM3XyQD4Nz1UnI/iujeovS9T9rf3FQw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874520; c=relaxed/simple; bh=lBKUGA6zNqcsPATDf41Ebh8yrcRzfOT5mMVIGxIAdVs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YdahYm7V1DM7bopythFAoqQgqJkZ6Deu/FU5D6JB+bxkZfhErmdXebq93z+yZYiMolhX32soyNFCSgT6qGAIaqBIhtQCkzX+o+as1aF7u/s2NpAhZl+37Oe3mt5ZqP9aML/DV54Oj+wWtk/rFqjBP3hbsRVBuSxzqQVbuWOua4g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=V5Z//aag; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="V5Z//aag" Received: from mail.zytor.com ([IPv6:2601:646:8081:9482:197f:c1e5:8ae9:2d06]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 56ILX0sm2795198 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 18 Jul 2025 14:33:19 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 56ILX0sm2795198 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2025062101; t=1752874403; bh=jOYLooryEKHScahs/oq1OSMQ5trl6tIglcozgM03cmk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V5Z//aagl38qTHkyKVLjtRYpQg6NLFKlGhO4PTrXNQ+X5WlkCRSfUKB8e2A3YoZ9C 6bf3/7kfIkGso1z32JhBGAFS9WqaGkYL84wlFTTFIVb0f3t24PPSHDMczaXVzUZKlD 1hBIlHdmZtg1ELHdMO3eX1lzbmqGZZiZG9RMV9MALm5IuUA2GXvk7mZRsQnC4MchvN peq3QRvYPRphYqYX3+Zxyf4UXYjOVs0umThbe4E6PvXQuYappn97AzFeAG+ZZCHh9t 0xU5RxTb+3BCZg47mZp5WG6FWvOYUrZgb/aRzR85G4MN49aqicMrwuy0oUkbBtpZcp 0mMeiaVOOH6ow== From: "H. Peter Anvin" To: Cc: "H. Peter Anvin" , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , "Michael S. Tsirkin" , Al Viro , Alexei Starovoitov , Alexey Dobriyan , Andrew Morton , Andrii Nakryiko , Arnd Bergmann , Borislav Petkov , Cong Wang , Dan Williams , Daniel Borkmann , Dave Hansen , David Laight , David Lechner , Dinh Nguyen , Eduard Zingerman , Gatlin Newhouse , Hao Luo , Ingo Molnar , Linus Torvalds , Jakub Sitnicki , Jan Hendrik Farr , Jason Wang , Jiri Olsa , John Fastabend , Jonathan Cameron , Josh Poimboeuf , KP Singh , Kees Cook , Luc Van Oostenryck , Marc Herbert , Martin KaFai Lau , Mateusz Guzik , Michal Luczaj , Miguel Ojeda , Mykola Lysenko , NeilBrown , Peter Zijlstra , Przemek Kitszel , Sami Tolvanen , Shuah Khan , Song Liu , Stanislav Fomichev , Thomas Gleixner , Thorsten Blum , Uros Bizjak , Xuan Zhuo , Yafang Shao , Ye Bin , Yonghong Song , Yufeng Wang , bpf@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-sparse@vger.kernel.org, virtualization@lists.linux.dev, x86@kernel.org Subject: [PATCH 4/7] arch/nios: replace "__auto_type" with "auto" Date: Fri, 18 Jul 2025 14:32:47 -0700 Message-ID: <20250718213252.2384177-5-hpa@zytor.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250718213252.2384177-1-hpa@zytor.com> References: <20250718213252.2384177-1-hpa@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace uses of "__auto_type" in arch/nios2/include/asm/uaccess.h with "auto". Signed-off-by: H. Peter Anvin (Intel) --- arch/nios2/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/nios2/include/asm/uaccess.h b/arch/nios2/include/asm/uacc= ess.h index b8299082adbe..fa9b06a7d7c6 100644 --- a/arch/nios2/include/asm/uaccess.h +++ b/arch/nios2/include/asm/uaccess.h @@ -172,14 +172,14 @@ do { \ =20 #define __put_user(x, ptr) \ ({ \ - __auto_type __pu_ptr =3D (ptr); \ + auto __pu_ptr =3D (ptr); \ typeof(*__pu_ptr) __pu_val =3D (typeof(*__pu_ptr))(x); \ __put_user_common(__pu_val, __pu_ptr); \ }) =20 #define put_user(x, ptr) \ ({ \ - __auto_type __pu_ptr =3D (ptr); \ + auto __pu_ptr =3D (ptr); \ typeof(*__pu_ptr) __pu_val =3D (typeof(*__pu_ptr))(x); \ access_ok(__pu_ptr, sizeof(*__pu_ptr)) ? \ __put_user_common(__pu_val, __pu_ptr) : \ --=20 2.50.1 From nobody Mon Oct 6 15:24:12 2025 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 F25C420E70B; Fri, 18 Jul 2025 21:35:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874520; cv=none; b=F1COb3XW6XjCd9RNMtFygV2TYfNbxMhNI0o4P+1wEhnmrlG2/TWEShtX64Y2w5r00v7GUcZG3+csjoREjT7pkY0r2oAm3yX35+BCeXPGQP5ZujLp7lpRLdbzBtnVE5fgXVFPHBTgK8WfYQcaFxDh1xemQYKT33Whyx7/1cvHqgo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874520; c=relaxed/simple; bh=wMzR91h+TTsVUPy1C9Ptk1wSfGkXWgH6/ZpbQTxAPyQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jyyh4xdqcqFlKo5KLth0pWWCkxqg4LBddXNgFq5Vp2B1fxCfQNQgd0zQnqxedOw1JqEEhJS+qjt7LI9ttagOXKnnaD9HCfHH4sKTycigX1Rwfr2qMLxHe+U5Tw8wxmEVIKl8v1XyjlUSmw9LXI4Nj9YJZZS/IQI+JXXxySp/fiw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=IW9rzXlw; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="IW9rzXlw" Received: from mail.zytor.com ([IPv6:2601:646:8081:9482:197f:c1e5:8ae9:2d06]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 56ILX0sn2795198 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 18 Jul 2025 14:33:23 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 56ILX0sn2795198 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2025062101; t=1752874406; bh=qL1eHen7HIDVH6yqsXjkpDMtAGllh3zedpoW2tNYpvo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IW9rzXlwv/uOkas2T3V1khmJxnERsM2el1H1phxIc7qBkga4MRMTJqZm/DomFnl35 13DgyxteCdDLxQXAMTjZT4QCKOAa2XlTB4RRqROrWiW8v+aUAPtPup3VvZX79UZ0w4 M/Dp8YZJJo3weiB7ePx+x6MdyGAJbnCehkeS7eAUcBdDl/7qWeHNyKvwq3+ywo09lV mh4Yp6iGpkGN+EVv1osRLkRAXVmGvmJ47UjqsYwnHpb7etq5FpyBctcUjTEvClOX1r JSTu9U0f1LXRMf0PUUcicVM0fKa34mwPaZF94RKc1s4ReHsuyk9Bm5gpbcgdPuY4rE N9SyHnaYWmTrg== From: "H. Peter Anvin" To: Cc: "H. Peter Anvin" , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , "Michael S. Tsirkin" , Al Viro , Alexei Starovoitov , Alexey Dobriyan , Andrew Morton , Andrii Nakryiko , Arnd Bergmann , Borislav Petkov , Cong Wang , Dan Williams , Daniel Borkmann , Dave Hansen , David Laight , David Lechner , Dinh Nguyen , Eduard Zingerman , Gatlin Newhouse , Hao Luo , Ingo Molnar , Linus Torvalds , Jakub Sitnicki , Jan Hendrik Farr , Jason Wang , Jiri Olsa , John Fastabend , Jonathan Cameron , Josh Poimboeuf , KP Singh , Kees Cook , Luc Van Oostenryck , Marc Herbert , Martin KaFai Lau , Mateusz Guzik , Michal Luczaj , Miguel Ojeda , Mykola Lysenko , NeilBrown , Peter Zijlstra , Przemek Kitszel , Sami Tolvanen , Shuah Khan , Song Liu , Stanislav Fomichev , Thomas Gleixner , Thorsten Blum , Uros Bizjak , Xuan Zhuo , Yafang Shao , Ye Bin , Yonghong Song , Yufeng Wang , bpf@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-sparse@vger.kernel.org, virtualization@lists.linux.dev, x86@kernel.org Subject: [PATCH 5/7] arch/x86: replace "__auto_type" with "auto" Date: Fri, 18 Jul 2025 14:32:48 -0700 Message-ID: <20250718213252.2384177-6-hpa@zytor.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250718213252.2384177-1-hpa@zytor.com> References: <20250718213252.2384177-1-hpa@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace instances of "__auto_type" with "auto" in: arch/x86/include/asm/bug.h arch/x86/include/asm/string_64.h arch/x86/include/asm/uaccess_64.h Signed-off-by: H. Peter Anvin (Intel) --- arch/x86/include/asm/bug.h | 2 +- arch/x86/include/asm/string_64.h | 6 +++--- arch/x86/include/asm/uaccess_64.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/include/asm/bug.h b/arch/x86/include/asm/bug.h index f0e9acf72547..4cce2ce8657b 100644 --- a/arch/x86/include/asm/bug.h +++ b/arch/x86/include/asm/bug.h @@ -94,7 +94,7 @@ do { \ */ #define __WARN_FLAGS(flags) \ do { \ - __auto_type __flags =3D BUGFLAG_WARNING|(flags); \ + auto __flags =3D BUGFLAG_WARNING|(flags); \ instrumentation_begin(); \ _BUG_FLAGS(ASM_UD2, __flags, ANNOTATE_REACHABLE(1b)); \ instrumentation_end(); \ diff --git a/arch/x86/include/asm/string_64.h b/arch/x86/include/asm/string= _64.h index 79e9695dc13e..4635616863f5 100644 --- a/arch/x86/include/asm/string_64.h +++ b/arch/x86/include/asm/string_64.h @@ -31,7 +31,7 @@ KCFI_REFERENCE(__memset); #define __HAVE_ARCH_MEMSET16 static inline void *memset16(uint16_t *s, uint16_t v, size_t n) { - const __auto_type s0 =3D s; + const auto s0 =3D s; asm volatile ( "rep stosw" : "+D" (s), "+c" (n) @@ -44,7 +44,7 @@ static inline void *memset16(uint16_t *s, uint16_t v, siz= e_t n) #define __HAVE_ARCH_MEMSET32 static inline void *memset32(uint32_t *s, uint32_t v, size_t n) { - const __auto_type s0 =3D s; + const auto s0 =3D s; asm volatile ( "rep stosl" : "+D" (s), "+c" (n) @@ -57,7 +57,7 @@ static inline void *memset32(uint32_t *s, uint32_t v, siz= e_t n) #define __HAVE_ARCH_MEMSET64 static inline void *memset64(uint64_t *s, uint64_t v, size_t n) { - const __auto_type s0 =3D s; + const auto s0 =3D s; asm volatile ( "rep stosq" : "+D" (s), "+c" (n) diff --git a/arch/x86/include/asm/uaccess_64.h b/arch/x86/include/asm/uacce= ss_64.h index c8a5ae35c871..b0e4533ce625 100644 --- a/arch/x86/include/asm/uaccess_64.h +++ b/arch/x86/include/asm/uaccess_64.h @@ -72,7 +72,7 @@ static inline void __user *mask_user_address(const void _= _user *ptr) return ret; } #define masked_user_access_begin(x) ({ \ - __auto_type __masked_ptr =3D (x); \ + auto __masked_ptr =3D (x); \ __masked_ptr =3D mask_user_address(__masked_ptr); \ __uaccess_begin(); __masked_ptr; }) =20 --=20 2.50.1 From nobody Mon Oct 6 15:24:12 2025 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 881CF1FE45D; Fri, 18 Jul 2025 21:35:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874520; cv=none; b=CdlJf/6xn+ryj2zP40y+bucpJOtWsY2FPVmX7ZFEklSbuMBxjDTJsLPKIIpg0GHSJl23ialWnEv/axP3Aow5biloL5HEFN5b0qjZ94NwyxBPpOLdbcXH5/XPIOBWfcms/MEMcTYyUz5AlS9znEPJv24hPtgBiFRFj1lcxafbCAM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874520; c=relaxed/simple; bh=qTM7AwfdMSpV4NjWdyBTj056XS0XUIw4MsAivRgxjA0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iJ9+1A70DQ5U8JJ2t2Qx4fycQ8bJydXM2QgrIQntvq7xJYYugzacPeXcN1d0v1Dv0DkOqrnaffz0xXzdmigoYgr434KiJoy6i8RIZoAYfyHvR6eyz07g9cAB1n7ODgHVc/WhayCvZYCP9UzRHLwprPfTPMwFF4G/lowKFh6AsP8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=kUtLsUmn; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="kUtLsUmn" Received: from mail.zytor.com ([IPv6:2601:646:8081:9482:197f:c1e5:8ae9:2d06]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 56ILX0so2795198 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 18 Jul 2025 14:33:26 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 56ILX0so2795198 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2025062101; t=1752874410; bh=jdACkDnI1i4f1cAIvfWumKYM1ftH6IqzvEllMEW8ooQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kUtLsUmnGPo16uDqJL2qnrWMXseSawh9pJpv2YNt13h/uBXId+AZ31/sNWTpQXkp2 SjEAlw3kdXesYtDUSnlCvfAQNJLFsTtaIo6MXGBTKn3LylDCR6PPhMBLUd5mcsQyfX 57ujEYGvSBblQt4abQ3lWHNmuhdAwG0gyzOAMOeE/ztt60vidgLq9F+AOBLr4XsBmW r8LStmai4OmIZA0okWI//xBbtAIjITaM3K3apWhtvxdZpYXAIHuowGsM8KQJDSmR1v j/alPUDZy6ED9LuWWNAZgancdZ4nVifLbixnsyiSXDaE1mUcmhczWyQeYdRKFPGu6S KQCwtaZV5Xgtg== From: "H. Peter Anvin" To: Cc: "H. Peter Anvin" , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , "Michael S. Tsirkin" , Al Viro , Alexei Starovoitov , Alexey Dobriyan , Andrew Morton , Andrii Nakryiko , Arnd Bergmann , Borislav Petkov , Cong Wang , Dan Williams , Daniel Borkmann , Dave Hansen , David Laight , David Lechner , Dinh Nguyen , Eduard Zingerman , Gatlin Newhouse , Hao Luo , Ingo Molnar , Linus Torvalds , Jakub Sitnicki , Jan Hendrik Farr , Jason Wang , Jiri Olsa , John Fastabend , Jonathan Cameron , Josh Poimboeuf , KP Singh , Kees Cook , Luc Van Oostenryck , Marc Herbert , Martin KaFai Lau , Mateusz Guzik , Michal Luczaj , Miguel Ojeda , Mykola Lysenko , NeilBrown , Peter Zijlstra , Przemek Kitszel , Sami Tolvanen , Shuah Khan , Song Liu , Stanislav Fomichev , Thomas Gleixner , Thorsten Blum , Uros Bizjak , Xuan Zhuo , Yafang Shao , Ye Bin , Yonghong Song , Yufeng Wang , bpf@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-sparse@vger.kernel.org, virtualization@lists.linux.dev, x86@kernel.org Subject: [PATCH 6/7] selftests/bpf: replace "__auto_type" with "auto" Date: Fri, 18 Jul 2025 14:32:49 -0700 Message-ID: <20250718213252.2384177-7-hpa@zytor.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250718213252.2384177-1-hpa@zytor.com> References: <20250718213252.2384177-1-hpa@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace instances of "__auto_type" with "auto" in: tools/testing/selftests/bpf/prog_tests/socket_helpers.h This file does not seem to be including directly or indirectly, so copy the definition but guard it with !defined(auto). Signed-off-by: H. Peter Anvin (Intel) --- tools/testing/selftests/bpf/prog_tests/socket_helpers.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/prog_tests/socket_helpers.h b/tool= s/testing/selftests/bpf/prog_tests/socket_helpers.h index e02cabcc814e..958b65aa29ea 100644 --- a/tools/testing/selftests/bpf/prog_tests/socket_helpers.h +++ b/tools/testing/selftests/bpf/prog_tests/socket_helpers.h @@ -17,11 +17,16 @@ #define VMADDR_CID_LOCAL 1 #endif =20 +/* include/linux/compiler_types.h */ +#if __STDC_VERSION__ < 202311L && !defined(auto) +# define auto __auto_type +#endif + /* include/linux/cleanup.h */ #define __get_and_null(p, nullvalue) = \ ({ \ - __auto_type __ptr =3D &(p); \ - __auto_type __val =3D *__ptr; \ + auto __ptr =3D &(p); \ + auto __val =3D *__ptr; \ *__ptr =3D nullvalue; \ __val; \ }) --=20 2.50.1 From nobody Mon Oct 6 15:24:12 2025 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 B8C3F1F8725; Fri, 18 Jul 2025 21:35:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874520; cv=none; b=jfTSpWRZ8q7Znyp33DvJbmUwbCPp4mIwzRDQHqjX0+4KMrh5nWYarCb6hctDjoJrIMd9GjCqokjQnASTrZ6KTAb8QdZHXpBqH6R+iSAgqzEVmq6vwOdhT803a1x4nneBklbIMsHhMVnBykjuSFrOJUscFdNrstJLS0Kx784TeQI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752874520; c=relaxed/simple; bh=OPia4yWRRB0ETvHg3iEu6ZARkqU6LQuX0N7+VdhAdZY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mTf13X+jZR40QuqQSKWIPOw/ruuXOGpstSEQCemD8p/OyZptPebF+J+YlGHK3J6JVf/ny66bz7GpfITIMrSV61J1tgFQp3/Y0evr/UoQO8XdtgXD+h7D0BY+mC0bcqR1TE4YDS2RWXhGIcGuWB6F56ReAAQcT70wW53KBV0HJC4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=cFg+031R; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="cFg+031R" Received: from mail.zytor.com ([IPv6:2601:646:8081:9482:197f:c1e5:8ae9:2d06]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 56ILX0sp2795198 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 18 Jul 2025 14:33:30 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 56ILX0sp2795198 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2025062101; t=1752874414; bh=PBGN4oO/waKGE3jC/Ll9lbwkGvnnLUY8sUOeeNBmyj4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cFg+031RqaaaPlckPQZdrk7tHRtUQ91gMNZp0PCiAL+WS4vDpv5381NXCbOx9+vvi vA2jRIb+O5/TVvIfLSuwnuFCz0DXgInWqk0DTtrJi8gPLUe1MVqpOm2n5j0W3DxwAJ tZAeEeTeTQWXhL+b+HKBe5o7KVHhnv/VYE/5PTiVKLImFHUL30VJ3SiEiEkDceRwIQ j22Dtvl6wpGlQSC4QquExka0Lf8ys+jSvS1EgRDoVCuzSPtlcM+fBkck//a3x1N7r9 y1P3/wLVyPO9mfdNhI6s4gnvNmYd8pAlAeKvUir8mEV0gjLzQYUn3RG9wWSMQC6YUp rWuLmL/fzY+bA== From: "H. Peter Anvin" To: Cc: "H. Peter Anvin" , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , "Michael S. Tsirkin" , Al Viro , Alexei Starovoitov , Alexey Dobriyan , Andrew Morton , Andrii Nakryiko , Arnd Bergmann , Borislav Petkov , Cong Wang , Dan Williams , Daniel Borkmann , Dave Hansen , David Laight , David Lechner , Dinh Nguyen , Eduard Zingerman , Gatlin Newhouse , Hao Luo , Ingo Molnar , Linus Torvalds , Jakub Sitnicki , Jan Hendrik Farr , Jason Wang , Jiri Olsa , John Fastabend , Jonathan Cameron , Josh Poimboeuf , KP Singh , Kees Cook , Luc Van Oostenryck , Marc Herbert , Martin KaFai Lau , Mateusz Guzik , Michal Luczaj , Miguel Ojeda , Mykola Lysenko , NeilBrown , Peter Zijlstra , Przemek Kitszel , Sami Tolvanen , Shuah Khan , Song Liu , Stanislav Fomichev , Thomas Gleixner , Thorsten Blum , Uros Bizjak , Xuan Zhuo , Yafang Shao , Ye Bin , Yonghong Song , Yufeng Wang , bpf@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-sparse@vger.kernel.org, virtualization@lists.linux.dev, x86@kernel.org Subject: [PATCH 7/7] tools/virtio: replace "__auto_type" with "auto" Date: Fri, 18 Jul 2025 14:32:50 -0700 Message-ID: <20250718213252.2384177-8-hpa@zytor.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250718213252.2384177-1-hpa@zytor.com> References: <20250718213252.2384177-1-hpa@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace one instance of "__auto_type" with "auto" in: tools/virtio/linux/compiler.h This file *does* include directly, so there is no need to duplicate the definition. Signed-off-by: H. Peter Anvin (Intel) --- tools/virtio/linux/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virtio/linux/compiler.h b/tools/virtio/linux/compiler.h index 204ef0e9f542..b6e94c2ebe49 100644 --- a/tools/virtio/linux/compiler.h +++ b/tools/virtio/linux/compiler.h @@ -31,7 +31,7 @@ */ #define data_race(expr) \ ({ \ - __auto_type __v =3D (expr); \ + auto __v =3D (expr); \ __v; \ }) =20 --=20 2.50.1