* [PATCH] regulator: uapi: Use UAPI integer type
@ 2025-12-22 7:45 Thomas Weißschuh
2025-12-22 9:23 ` Arnd Bergmann
2025-12-22 17:16 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Weißschuh @ 2025-12-22 7:45 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown
Cc: Arnd Bergmann, linux-kernel, Thomas Weißschuh
Using libc types and headers from the UAPI headers is problematic as it
introduces a dependency on a full C toolchain.
Use the fixed-width integer type provided by the UAPI headers instead.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
include/uapi/regulator/regulator.h | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/include/uapi/regulator/regulator.h b/include/uapi/regulator/regulator.h
index 71bf71a22e7f..c4f2d1c19828 100644
--- a/include/uapi/regulator/regulator.h
+++ b/include/uapi/regulator/regulator.h
@@ -8,11 +8,7 @@
#ifndef _UAPI_REGULATOR_H
#define _UAPI_REGULATOR_H
-#ifdef __KERNEL__
#include <linux/types.h>
-#else
-#include <stdint.h>
-#endif
/*
* Regulator notifier events.
@@ -62,7 +58,7 @@
struct reg_genl_event {
char reg_name[32];
- uint64_t event;
+ __u64 event;
};
/* attributes of reg_genl_family */
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251222-uapi-regulator-f9409186116c
Best regards,
--
Thomas Weißschuh <thomas.weissschuh@linutronix.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] regulator: uapi: Use UAPI integer type
2025-12-22 7:45 [PATCH] regulator: uapi: Use UAPI integer type Thomas Weißschuh
@ 2025-12-22 9:23 ` Arnd Bergmann
2025-12-22 17:16 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2025-12-22 9:23 UTC (permalink / raw)
To: Thomas Weißschuh, Liam Girdwood, Mark Brown; +Cc: linux-kernel
On Mon, Dec 22, 2025, at 08:45, Thomas Weißschuh wrote:
> Using libc types and headers from the UAPI headers is problematic as it
> introduces a dependency on a full C toolchain.
>
> Use the fixed-width integer type provided by the UAPI headers instead.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
I have the exact same patch in my backlog for a different series,
thanks for getting it out first!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] regulator: uapi: Use UAPI integer type
2025-12-22 7:45 [PATCH] regulator: uapi: Use UAPI integer type Thomas Weißschuh
2025-12-22 9:23 ` Arnd Bergmann
@ 2025-12-22 17:16 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2025-12-22 17:16 UTC (permalink / raw)
To: Liam Girdwood, Thomas Weißschuh; +Cc: Arnd Bergmann, linux-kernel
On Mon, 22 Dec 2025 08:45:48 +0100, Thomas Weißschuh wrote:
> Using libc types and headers from the UAPI headers is problematic as it
> introduces a dependency on a full C toolchain.
>
> Use the fixed-width integer type provided by the UAPI headers instead.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/1] regulator: uapi: Use UAPI integer type
commit: b61104e7a6349bd2c2b3e2fb3260d87f15eda8f4
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-12-22 17:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-22 7:45 [PATCH] regulator: uapi: Use UAPI integer type Thomas Weißschuh
2025-12-22 9:23 ` Arnd Bergmann
2025-12-22 17:16 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®