From mboxrd@z Thu Jan 1 00:00:00 1970 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 1759E1CAB3 for ; Wed, 17 Dec 2025 01:22:01 +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=1765934525; cv=none; b=ediuh8MD7LZEQeUJkE2mCZVvJXvH7ecTI5Ze6JpPZjX6GT+KlggOdL9/2XVrb2ogscf68apDeiG/Tt6d9hXcW7wHH6eGa60l1+oGVoU9JW9rsY67VNDTLRI/1MWT7e9WmJm7D+K7P00pjZBxQMot31Vkb9KmlCh+x/R0+IzMa5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765934525; c=relaxed/simple; bh=oNDx1Y1CZm7btiVsroClNssT6nKLAFdS/GqWROaJ5jM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jz+5ZO2zMAHJUlh7fAJ+AXlgem4+2EnJ0b4ZcNQoFcVyCyysV7Da0+RCt0uXTQMN+FDPflMC+hJe3gNTKzo/5Y+rmpnkakuGwfQyrEdiVS0R3pWvOznpGSQvq7vjtTE/35EKDApgXPw9aKzJmGCXrr7C41TlSj232v0nSwq8pKI= 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=Z2AhF0QP; 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="Z2AhF0QP" Received: from mail.zytor.com (c-76-133-66-138.hsd1.ca.comcast.net [76.133.66.138]) (authenticated bits=0) by mail.zytor.com (8.18.1/8.17.1) with ESMTPSA id 5BH1Lvdp2994119 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 16 Dec 2025 17:21:58 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 5BH1Lvdp2994119 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2025112201; t=1765934518; bh=2CLukDQf6rpDw8gO+8XAY08Gi7RQJqAK4Erg0T3TJks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z2AhF0QPjPNlzgfibs7uwGs9BbENa1aIMmoiBLrXviH1KFzIAUk+Y8iFrO5JzgY3T 6K1rt1z0rVd6uf/veJiLpjTsMgBn4KeX94sXAo0ghJHpLj20ytoljMxBB+tOpIibUI JTjLf84X1baH4LZT3KxP39w56LIuVsxbgwjUUsMuE/RvvSVrx188E8RlOA47mgzyyF chNKXQ6+gLadpIRUaDrZKFwPAsF88W+7hTOm5yxa1yVEX0qJUSJ/4Pxr8bQnP7mnCG SPqpBwvRFrN9GwhMcZZiKUr0U2hyE32EJi+WRK6HNsbdN2IQOfD5hFhp3BL4Pm1swB 8g+xVcvmZsJGQ== From: "H. Peter Anvin" To: Linux Kernel Mailing List Cc: Linus Torvalds , "H. Peter Anvin" , Yury Norov , Rasmus Villemoes Subject: [PATCH v2 1/1] linux/bitfield.h: replace __auto_type with auto Date: Tue, 16 Dec 2025 17:21:53 -0800 Message-ID: <20251217012153.1628723-1-hpa@zytor.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Replace "__auto_type" as described in commit: 2fb6915fa22d compiler_types.h: add "auto" as a macro for "__auto_type" [ v2: add an explicit #include to this header ] Cc: Yury Norov (maintainer:BITMAP API) Cc: Rasmus Villemoes (reviewer:BITMAP API) Signed-off-by: H. Peter Anvin (Intel) --- include/linux/bitfield.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/bitfield.h b/include/linux/bitfield.h index 126dc5b380af..7c3fff2437d4 100644 --- a/include/linux/bitfield.h +++ b/include/linux/bitfield.h @@ -7,6 +7,7 @@ #ifndef _LINUX_BITFIELD_H #define _LINUX_BITFIELD_H +#include #include #include #include @@ -243,7 +244,7 @@ __MAKE_OP(64) #define __field_prep(mask, val) \ ({ \ - __auto_type __mask = (mask); \ + auto __mask = (mask); \ typeof(__mask) __val = (val); \ unsigned int __shift = BITS_PER_TYPE(__mask) <= 32 ? \ __ffs(__mask) : __ffs64(__mask); \ @@ -252,7 +253,7 @@ __MAKE_OP(64) #define __field_get(mask, reg) \ ({ \ - __auto_type __mask = (mask); \ + auto __mask = (mask); \ typeof(__mask) __reg = (reg); \ unsigned int __shift = BITS_PER_TYPE(__mask) <= 32 ? \ __ffs(__mask) : __ffs64(__mask); \ -- 2.52.0