From: Tom Rini Date: Tue, 4 May 2021 14:45:18 -0400 Subject: [PATCH] pinctrl: mscc: fix multiple definitions In-Reply-To: <20210504184040.353578-1-daniel.schwierzeck@gmail.com> References: <20210504184040.353578-1-daniel.schwierzeck@gmail.com> Message-ID: <20210504184518.GZ17669@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, May 04, 2021 at 08:40:40PM +0200, Daniel Schwierzeck wrote: > gcc-11 complains about multiple definitions: > > /opt/gcc-11.0.20210426-nolibc/mips-linux/bin/mips-linux-ld.bfd: drivers/pinctrl/mscc/pinctrl-ocelot.o:drivers/pinctrl/mscc/mscc-common.h:64: multiple definition of `mscc_pinctrl_ops'; drivers/pinctrl/mscc/mscc-common.o:drivers/pinctrl/mscc/mscc-common.h:64: first defined here > /opt/gcc-11.0.20210426-nolibc/mips-linux/bin/mips-linux-ld.bfd: drivers/pinctrl/mscc/pinctrl-ocelot.o:drivers/pinctrl/mscc/mscc-common.h:66: multiple definition of `mscc_gpio_ops'; drivers/pinctrl/mscc/mscc-common.o:drivers/pinctrl/mscc/mscc-common.h:66: first defined here > > mscc_pinctrl_ops and mscc_gpio_ops are instantiated in mscc-common.c and > just referenced by SoC specific pinctrl drivers. Annotate the exports > in mscc-common.h with `extern` to avoid creating new instances > when including mscc-common.h. > > Signed-off-by: Daniel Schwierzeck I posted this yesterday as part of: https://patchwork.ozlabs.org/project/uboot/list/?series=241916&state=* BTW. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: