From: Tom Rini Date: Mon, 3 May 2021 20:48:56 +0000 (-0400) Subject: pinctrl: mscc: Fix multiple definition error X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5503435838f946697e78b9564a45595380a66dff;p=u-boot.git pinctrl: mscc: Fix multiple definition error With gcc-11 we get a multiple errors here as the declarations for mscc_pinctrl_ops and mscc_gpio_ops are missing an extern. CC: Gregory CLEMENT Cc: Lars Povlsen Cc: Horatiu Vultur Signed-off-by: Tom Rini Reviewed-by: Horatiu Vultur Reviewed-by: Daniel Schwierzeck --- diff --git a/drivers/pinctrl/mscc/mscc-common.h b/drivers/pinctrl/mscc/mscc-common.h index 3c5c1faf84..49c84a9f41 100644 --- a/drivers/pinctrl/mscc/mscc-common.h +++ b/drivers/pinctrl/mscc/mscc-common.h @@ -61,6 +61,6 @@ int mscc_pinctrl_probe(struct udevice *dev, int num_func, const struct mscc_pin_data *mscc_pins, int num_pins, char * const *function_names, const unsigned long *mscc_gpios); -const struct pinctrl_ops mscc_pinctrl_ops; +extern const struct pinctrl_ops mscc_pinctrl_ops; -const struct dm_gpio_ops mscc_gpio_ops; +extern const struct dm_gpio_ops mscc_gpio_ops;