[PATCH] clk: imx: scu: Fix compile error with module build of clk-scu.o
Valdis Kl=?utf-8?Q?=c4=93?=tnieks
valdis.kletnieks at vt.edu
Mon Nov 2 16:01:39 EST 2020
On Mon, 02 Nov 2020 09:15:20 -0800, Randy Dunlap said:
> also
> Reported-by: kernel test robot <lkp at intel.com>
>
> However, this driver does not directly use <linux/module.h>.
Just my luck - I looked at 3 or 4 other things that include of_platform.h
and they all *did* include module.h.
> platform_device.h #includes <linux/device.h>, which is where the
> problem lies:
>
> <linux/device.h> uses macros that are provided by <linux/module.h>
> so <linux/device.h> should #include <linux/module.h>.
>
> and that fixes this commit:
>
> commit 4c002c978b7f2f2306d53de051c054504af920a9
> Author: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Date: Mon Dec 9 20:33:03 2019 +0100
>
> device.h: move 'struct driver' stuff out to device/driver.h
OK.. who's going to do that? Me, or Randy, or Greg?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201102/ae514962/attachment-0001.sig>
More information about the linux-arm-kernel
mailing list