Message ID | 20180122115054.GA14714@lenoch (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
On Mon, Jan 22, 2018 at 12:50 PM, Ladislav Michl <ladis@linux-mips.org> wrote: > Linus, > > after moving managed io function declarations into device.h, above error > was triggered. Please consider folowing patch: > >>8-------------- > > From: Ladislav Michl <ladis@linux-mips.org> > Subject: [PATCH] include/pinctrl: Forward declare struct device > > pinctrl/devinfo.h is using forward declaration from pinctrl/consumer.h > for configurations with CONFIG_PINCTRL defined, however nothing declares > it in the opposite case. Fix this by adding a forward declaration. > > Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Ah good catch. Patch applied. Yours, Linus Walleij
diff --git a/include/linux/pinctrl/devinfo.h b/include/linux/pinctrl/devinfo.h index 05082e407c4a..d01a8638bb45 100644 --- a/include/linux/pinctrl/devinfo.h +++ b/include/linux/pinctrl/devinfo.h @@ -43,6 +43,8 @@ extern int pinctrl_init_done(struct device *dev); #else +struct device; + /* Stubs if we're not using pinctrl */ static inline int pinctrl_bind_pins(struct device *dev)