* [PATCH v2 1/1] logic_pio: Use RESOURCE_SIZE_MAX definition
@ 2025-11-09 21:00 Andy Shevchenko
2025-11-24 14:14 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2025-11-09 21:00 UTC (permalink / raw)
To: Andy Shevchenko, linux-kernel; +Cc: Andrew Morton, Arnd Bergmann
Use a predefined limit instead of hard coding it.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v2: Cc:ed more people
lib/logic_pio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/logic_pio.c b/lib/logic_pio.c
index e29496a38d06..6d6a7498dbe5 100644
--- a/lib/logic_pio.c
+++ b/lib/logic_pio.c
@@ -175,7 +175,7 @@ resource_size_t logic_pio_to_hwaddr(unsigned long pio)
if (range)
return range->hw_start + pio - range->io_start;
- return (resource_size_t)~0;
+ return RESOURCE_SIZE_MAX;
}
/**
--
2.50.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 1/1] logic_pio: Use RESOURCE_SIZE_MAX definition
2025-11-09 21:00 [PATCH v2 1/1] logic_pio: Use RESOURCE_SIZE_MAX definition Andy Shevchenko
@ 2025-11-24 14:14 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2025-11-24 14:14 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton, Arnd Bergmann
On Sun, Nov 09, 2025 at 10:00:55PM +0100, Andy Shevchenko wrote:
> Use a predefined limit instead of hard coding it.
Can anybody apply this, please? Or should I do something about it?
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-24 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-09 21:00 [PATCH v2 1/1] logic_pio: Use RESOURCE_SIZE_MAX definition Andy Shevchenko
2025-11-24 14:14 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox