From nobody Mon Feb 9 15:08:18 2026 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 742EC1EF38A for ; Sat, 22 Mar 2025 21:11:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742677887; cv=none; b=AOxCNAZyz0Rybcwi1JZjI6jFgyoxdbuVEceEWnIX9qZqboZcxqySBvi0EzYzt8qBO1IGOb5rUm3aXH+SPjW4gdI4AT1xzGXnWEDArmhWRfc9MKf17wI/mPaHt/vTtHhITgqg8Y0p0+Tj7w1k2IHmahr0mAMuZ3IeXRnOGnUnnnE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742677887; c=relaxed/simple; bh=zivpWO9gs+FtiuWU1lkLPt+QVn2ZMwhs6Ty/iDt1wyM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=VFE5NlWZ0XnW1HeexxbWjOYy9L50ekPvlxQjutNd53KJeohDy/bHYcHLhA/fhKX7cFK03hv5/UN6vA1oG8U93Ml8Qc/RGBsfkHMkxSji+7+voR+cegFOJZmHPJs70O/Ln81I2XdzZ6ObxceevyLqK7TBtXsifwswQNbuEvptUcU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=VZS1nKi3; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="VZS1nKi3" Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 52MJkYnr005489; Sat, 22 Mar 2025 21:11:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pp1; bh=bVVfrCJK+T/Fv+x04n5fAAuE5E9U gEqfzfsAU4caubo=; b=VZS1nKi3WBhbPJy2VuAfNzXnvGFABjyCKIPZ4n7M2EXb FkS/L0V/lubE1+rP/4Wc/Kxx6oAlD//jMyMHQw8fo5HKtl/i71HJOiZGZNwmr+uW 7Qt86VJ1ZPkkIhQv1mxQjcYcL4JzG4kjMtB2YIsfy9qDC6L1r1/bWBhfrjBA97L7 lNHTNAM84mEulF7Xr//BuY/7oyk4RSDz1z1yYvgUFgmhfnGNapAg5eSyJ5P3/4HB rY/sMmwub+Hd2WwlvNA9ufDxp/5zcZLsqm50w3709ddcC72vnNYmhdSl8IPk5Z8X zX7b0TOjzSP3xIvm4Jj5elt49mcUsGwHPOQ/mHvj4g== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 45hxmns5nx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 22 Mar 2025 21:11:12 +0000 (GMT) Received: from m0356517.ppops.net (m0356517.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 52MLBCHK026265; Sat, 22 Mar 2025 21:11:12 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 45hxmns5nu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 22 Mar 2025 21:11:12 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 52MJ6aGH003480; Sat, 22 Mar 2025 21:11:11 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 45hn8d2xr5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 22 Mar 2025 21:11:10 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 52MLB6f050069822 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 22 Mar 2025 21:11:06 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE0A420043; Sat, 22 Mar 2025 21:11:06 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6974620040; Sat, 22 Mar 2025 21:11:05 +0000 (GMT) Received: from ltcden6-lp1.aus.stglabs.ibm.com (unknown [9.3.101.155]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Sat, 22 Mar 2025 21:11:05 +0000 (GMT) From: Misbah Anjum N To: linuxppc-dev@lists.ozlabs.org Cc: maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, naveen@kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH] arch/powerpc: Remove redundant typedef for bool Date: Sat, 22 Mar 2025 16:11:04 -0500 Message-ID: <20250322211104.231795-1-misanjum@linux.ibm.com> X-Mailer: git-send-email 2.49.0 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="utf-8" Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: ukyu0jHVoQlVmz2zErze3Diy-8U7OqBB X-Proofpoint-GUID: ckjNjkZ-Ay5mhKq30Y2qB9xrL7Bsd4Iw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1093,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-03-22_09,2025-03-21_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 impostorscore=0 phishscore=0 mlxlogscore=415 lowpriorityscore=0 malwarescore=0 suspectscore=0 mlxscore=0 priorityscore=1501 clxscore=1011 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2503220158 The custom 'bool' typedef in arch/powerpc/boot/types.h is incompatible with the C23 standard, where 'bool', 'true', and 'false' are now reserved keywor= ds. With newer GCC versions (such as GCC 15), redefining 'bool' leads to compil= ation errors. For example: error: 'bool' cannot be defined via 'typedef' Since 'stdbool.h' is already included and provides a standard definition for 'bool', this typedef is redundant and can be removed to avoid conflicts. Compilation Error: $ make -j$(nproc) .... In file included from arch/powerpc/boot/ops.h:13, from arch/powerpc/boot/cuboot.c:12: arch/powerpc/boot/types.h:43:13: error: =E2=80=98bool=E2=80=99 cannot b= e defined via =E2=80=98typedef=E2=80=99 43 | typedef int bool; | ^~~~ arch/powerpc/boot/types.h:43:13: note: =E2=80=98bool=E2=80=99 is a keyw= ord with =E2=80=98-std=3Dc23=E2=80=99 onwards arch/powerpc/boot/types.h:43:1: warning: useless type name in empty dec= laration 43 | typedef int bool; | ^~~~~~~ .... make[2]: *** [arch/powerpc/boot/Makefile:235: arch/powerpc/boot/devtree= .o] Error 1 make[2]: *** [arch/powerpc/boot/Makefile:235: arch/powerpc/boot/ofconso= le.o] Error 1 make[2]: *** [arch/powerpc/boot/Makefile:235: arch/powerpc/boot/ns16550= .o] Error 1 make[2]: *** [arch/powerpc/boot/Makefile:235: arch/powerpc/boot/main.o]= Error 1 make[1]: *** [arch/powerpc/Makefile:236: zImage] Error 2 make: *** [Makefile:251: __sub-make] Error 2 Signed-off-by: Misbah Anjum N --- arch/powerpc/boot/types.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/boot/types.h b/arch/powerpc/boot/types.h index 8a4c418b7..abae1e93a 100644 --- a/arch/powerpc/boot/types.h +++ b/arch/powerpc/boot/types.h @@ -40,8 +40,6 @@ typedef s64 int64_t; #define min_t(type, a, b) min(((type) a), ((type) b)) #define max_t(type, a, b) max(((type) a), ((type) b)) =20 -typedef int bool; - #ifndef true #define true 1 #endif --=20 2.49.0