Re: [PATCHv5 5/5] misc: gehc-achc: new driver

From: Arnd Bergmann
Date: Tue Jun 22 2021 - 09:40:15 EST


On Tue, Jun 22, 2021 at 3:30 PM kernel test robot <lkp@xxxxxxxxx> wrote:
>
>
> ERROR: modpost: missing MODULE_LICENSE() in drivers/misc/nxp-ezport.o
> >> ERROR: modpost: "ezport_flash" [drivers/misc/gehc-achc.ko] undefined!
> >> ERROR: modpost: "ezport_reset" [drivers/misc/gehc-achc.ko] undefined!

It looks like this was only tested as a built-in driver. The easiest way would
be to change the Makefile to link both files into a combined driver module,
such as

obj-$(CONFIG_GEHC_ACHC) += gehc-achc-mod.o
gehc-achc-mod.o += gehc-achc.o nxp-ezport.o

Arnd