]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
pinctrl: sophgo: cv18xx: fix missed __iomem type identifier
authorInochi Amaoto <inochiama@outlook.com>
Fri, 30 Aug 2024 08:55:33 +0000 (16:55 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 31 Aug 2024 22:45:50 +0000 (00:45 +0200)
As the variable reg in "cv1800_pctrl_dbg_show" misses a "__iomem"
type identifier, a warning will be issued by the compiler. Add
this identifier to avoid this warning.

Fixes: a29d8e93e710 ("pinctrl: sophgo: add support for CV1800B SoC")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202408271555.kpOmi9I8-lkp@intel.com/
Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
Link: https://lore.kernel.org/IA1PR20MB495329EBE498DFFDAA1EC457BB972@IA1PR20MB4953.namprd20.prod.outlook.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sophgo/pinctrl-cv18xx.c

index e63cfcc37377a33e7f5f3ae6e7c6f4b8fcf89e8f..d18fc5aa84f750e6b1de610baffc6ecc4073ab23 100644 (file)
@@ -125,7 +125,7 @@ static void cv1800_pctrl_dbg_show(struct pinctrl_dev *pctldev,
        struct cv1800_pin *pin = cv1800_get_pin(pctrl, pin_id);
        enum cv1800_pin_io_type type = cv1800_pin_io_type(pin);
        u32 value;
-       void *reg;
+       void __iomem *reg;
 
        if (pin->pin >> PIN_BGA_ID_OFFSET)
                seq_printf(seq, "pos: %c%u ",