1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/root/target/linux/bcm27xx/patches-5.14/0301-gpio-fsm-Fix-a-build-warning.patch
Ycarus (Yannick Chabanois) 5c593832cc Add 5.14 patches for RPI
2021-10-01 16:58:58 +02:00

27 lines
888 B
Diff

From 4ee740bd03cfed85c69fed422e47b6b67468778b Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 27 Oct 2020 12:10:04 +0000
Subject: [PATCH 301/552] gpio-fsm: Fix a build warning
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
drivers/gpio/gpio-fsm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-fsm.c b/drivers/gpio/gpio-fsm.c
index eb8b4d58d2d0..2cab50e51315 100644
--- a/drivers/gpio/gpio-fsm.c
+++ b/drivers/gpio/gpio-fsm.c
@@ -956,7 +956,8 @@ static int gpio_fsm_probe(struct platform_device *pdev)
// add reserved words to the symbol table
for (i = 0; i < ARRAY_SIZE(reserved_symbols); i++) {
if (reserved_symbols[i])
- add_symbol(&gf->symtab, reserved_symbols[i], (void *)i);
+ add_symbol(&gf->symtab, reserved_symbols[i],
+ (void *)(uintptr_t)i);
}
// parse the state
--
2.33.0