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 85CC914B08A for ; Tue, 16 Dec 2025 20:52:50 +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=1765918372; cv=none; b=f6gYGYSeqxuXgNamKL78UCE5dNva4ATu6uHhh0u5cBgyQi1p5t8LtzPz/6kRKiY003C9pHQpmoVFITLLLHnRojnvqgrw30KZE3jCaVQcGeVZHUdEyglgPdbLIQhemYEyQfWlEKhV/B7tblG5xLxTGCAgTn2lNNCm7mImSCfNppk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765918372; c=relaxed/simple; bh=FPodRYenm62mM2eSYMnCT4aciVzs5v9uxdB+15g9aM0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=vExqmfYYRF4H/JkGLpBXVO5Zaywf03Qs12kZptbAPa9IFb/aoFLEdGL9823pAHefC6V0pVfCKoaS4BJsgrkOTqR2qg2xrg8jL9RMsStHo8D+rtttv4J2AZDAPnmieWxO2RqvVUsw9yTHdlysCyAuwLerhgl/5yFUW39vADpsGIE= 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=aobYv/+e; 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="aobYv/+e" 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 5BGKqhLt2525877 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 16 Dec 2025 12:52:45 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 5BGKqhLt2525877 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2025112201; t=1765918366; bh=KtluHlHPV1VmC37CRX6B9YMyzyNzlEEcIjhtd8RnQK4=; h=From:To:Cc:Subject:Date:From; b=aobYv/+ewkN5c8peagg4wlLBj5QtKmVNtazN+mUPZo3j5f+NXCWJ1aCk+Ow1SfFdU nv1FpsQSd9h+6JeG9QTyi88EZ0WzQL1X5kwFBGWxl96g9fOh18zYCMeLaXAx3/wWv1 EulcNwL9XmmzNctPZgdmCrEZ/3dnXmmMvPij2X6fKTfyZnrItDXveFy5n4/4G3MtXz +7GX+31k8t0l4UdMtOYFriQ16zMXORsO3hmQN5UmyeMg2vriyssoTggQr06aSLo2Jk M3Z0MV7pPQOhfxcj09+oK0v83gBCzdUZhmr0sYYQlPLAL144aahd384xM46qLai1GS Uzsk04UrT+x+w== From: "H. Peter Anvin" To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , "H. Peter Anvin" , Yury Norov , Rasmus Villemoes Subject: [PATCH 1/1] linux/bitfield.h: replace __auto_type with auto Date: Tue, 16 Dec 2025 12:52:38 -0800 Message-ID: <20251216205238.1241694-1-hpa@zytor.com> X-Mailer: git-send-email 2.52.0 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" Cc: Yury Norov (maintainer:BITMAP API) Cc: Rasmus Villemoes (reviewer:BITMAP API) Signed-off-by: H. Peter Anvin (Intel) --- include/linux/bitfield.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/bitfield.h b/include/linux/bitfield.h index 126dc5b380af..ecdb8e66dbbe 100644 --- a/include/linux/bitfield.h +++ b/include/linux/bitfield.h @@ -243,7 +243,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 +252,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