bcm27xx: switch to 5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0363-gpio-fsm-Fix-a-build-warning.patch
1 From f6df23eb130f2407565db92e60b66a56b9b6fdea Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 27 Oct 2020 12:10:04 +0000
4 Subject: [PATCH] gpio-fsm: Fix a build warning
5
6 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
7 ---
8 drivers/gpio/gpio-fsm.c | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11 --- a/drivers/gpio/gpio-fsm.c
12 +++ b/drivers/gpio/gpio-fsm.c
13 @@ -956,7 +956,8 @@ static int gpio_fsm_probe(struct platfor
14 // add reserved words to the symbol table
15 for (i = 0; i < ARRAY_SIZE(reserved_symbols); i++) {
16 if (reserved_symbols[i])
17 - add_symbol(&gf->symtab, reserved_symbols[i], (void *)i);
18 + add_symbol(&gf->symtab, reserved_symbols[i],
19 + (void *)(uintptr_t)i);
20 }
21
22 // parse the state