git: c3da468befd3 - stable/12 - boolean_t: change to unsigned int to avoid signed bitfield warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 May 2023 10:41:35 UTC
The branch stable/12 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=c3da468befd3c3c4dd5d24cca9c9b2b98998d74c
commit c3da468befd3c3c4dd5d24cca9c9b2b98998d74c
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-04-25 17:52:40 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-05-03 09:36:36 +0000
boolean_t: change to unsigned int to avoid signed bitfield warnings
This is the final part, which actually makes boolean_t unsigned. Note
that we do not change its size, nor do we try to change it directly to
bool, since that results in a lot of regressions.
Converting the remaining instances of boolean_t to plain C99 bool can
now be done in a piecemeal fashion, after which boolean_t may hopefully
be retired.
MFC after: 1 week
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D39753
(cherry picked from commit 3029b0b0e9d68eb54e3bdd9e3e49e0f0d2d57835)
---
sys/sys/types.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/sys/types.h b/sys/sys/types.h
index 0b8887912509..72889f3d5a93 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -269,7 +269,7 @@ typedef __vm_size_t vm_size_t;
typedef __rman_res_t rman_res_t;
#ifdef _KERNEL
-typedef int boolean_t;
+typedef unsigned int boolean_t;
typedef struct device *device_t;
typedef __intfptr_t intfptr_t;