mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master] optee: include linux/limits.h to define U64_MAX
@ 2024-08-05 16:38 Ahmad Fatoum
  2024-08-06  5:54 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-08-05 16:38 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

U64_MAX is defined by <linux/limits.h>, which so far was included only
indirectly. To avoid breaking the build when this indirect include
disappears, include it directly in the file where it is used.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 common/optee.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/optee.c b/common/optee.c
index 7fe93e441974..31442b1a498d 100644
--- a/common/optee.c
+++ b/common/optee.c
@@ -5,6 +5,7 @@
 #include <tee/optee.h>
 #include <linux/printk.h>
 #include <linux/errno.h>
+#include <linux/limits.h>
 
 static u64 optee_membase = U64_MAX;
 
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH master] optee: include linux/limits.h to define U64_MAX
  2024-08-05 16:38 [PATCH master] optee: include linux/limits.h to define U64_MAX Ahmad Fatoum
@ 2024-08-06  5:54 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2024-08-06  5:54 UTC (permalink / raw)
  To: barebox, Ahmad Fatoum


On Mon, 05 Aug 2024 18:38:37 +0200, Ahmad Fatoum wrote:
> U64_MAX is defined by <linux/limits.h>, which so far was included only
> indirectly. To avoid breaking the build when this indirect include
> disappears, include it directly in the file where it is used.
> 
> 

Applied, thanks!

[1/1] optee: include linux/limits.h to define U64_MAX
      https://git.pengutronix.de/cgit/barebox/commit/?id=2f46b786f0cb (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-06  5:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-05 16:38 [PATCH master] optee: include linux/limits.h to define U64_MAX Ahmad Fatoum
2024-08-06  5:54 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox