This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Kernel fails to build wihtout "Support for hot-pluggable devices" enabled

I'm trying to build minimalistic kernel for OMAP3 EVM based on PSP-02.01.02.09. The goal is to minimize boot time. However kernel fails to build without "Support for hot-pluggable devices" enabled:

  MODPOST vmlinux.o
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      vmlinux
`gpio_twl4030_remove' referenced in section `.devinit.text' of drivers/built-in.o: defined in discarded section `.devexit.text' of drivers/built-in.o
`omap2_onenand_remove' referenced in section `.data' of drivers/built-in.o: defined in discarded section `.devexit.text' of drivers/built-in.o
`omap2_onenand_shutdown' referenced in section `.data' of drivers/built-in.o: defined in discarded section `.devexit.text' of drivers/built-in.o
make: *** [vmlinux] Error 1

 

Is this behavior intentional?