[Android General] JJK96:
# Problem

The kernel compiles fine with the initial settings in `shamu_defconfig`, however when I set `CONFIG_MODULES=y` compilation fails with the errors shown below.

# Setup

- Repository: android.googlesource.com/kernel/msm

- Branch: android-msm-shamu-3.10-nougat-mr1.7

- Cross compiler: android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8

- Host system: Linux 5.5.6-arch1-1

# Steps to reproduce

1. Clone the kernel repository and checkout the correct branch.

2. Download the cross compiler.

3. Edit `arch/arm/configs/shamu_defconfig` to add `CONFIG_MODULES=y` at the end of the file.

4. Set environment variables:

```

export ARCH=arm

export SUBARCH=arm

export CROSS_COMPILE=/path/to/arm-eabi-4.8/bin/arm-eabi-

```

5. `make shamu_defconfig`

6. `make`

# Error messages

```

drivers/built-in.o: In function `qcedev_open':

/home/jjk/Documents/master/RET/no_sync/kernel/drivers/crypto/msm/qcedev.c:285: undefined reference to `g_fips140_status'

drivers/built-in.o: In function `qcedev_probe':

/home/jjk/Documents/master/RET/no_sync/kernel/drivers/crypto/msm/qcedev.c:2041: undefined reference to `g_fips140_status'

drivers/built-in.o: In function `qcedev_ioctl':

/home/jjk/Documents/master/RET/no_sync/kernel/drivers/crypto/msm/qcedev.c:1907: undefined reference to `_do_msm_fips_drbg_init'

/home/jjk/Documents/master/RET/no_sync/kernel/drivers/crypto/msm/qcedev.c:1938: undefined reference to `g_fips140_status'

/home/jjk/Documents/master/RET/no_sync/kernel/drivers/crypto/msm/qcedev.c:1938: undefined reference to `drbg_call_back'

drivers/built-in.o: In function `_qcrypto_ahash_cra_init':

/home/jjk/Documents/master/RET/no_sync/kernel/drivers/crypto/msm/qcrypto.c:745: undefined reference to `g_fips140_status'

drivers/built-in.o: In function `_qcrypto_cipher_cra_init':

/home/jjk/Documents/master/RET/no_sync/kernel/drivers/crypto/msm/qcrypto.c:715: undefined reference to `g_fips140_status'

drivers/built-in.o: In function `_qcrypto_probe':

/home/jjk/Documents/master/RET/no_sync/kernel/drivers/crypto/msm/qcrypto.c:4665: undefined reference to `g_fips140_status'

net/built-in.o: In function `nf_tproxy_get_sock_v6':

/home/jjk/Documents/master/RET/no_sync/kernel/include/net/netfilter/nf_tproxy_core.h:177: undefined reference to `udp6_lib_lookup'

/home/jjk/Documents/master/RET/no_sync/kernel/include/net/netfilter/nf_tproxy_core.h:177: undefined reference to `udp6_lib_lookup'

/home/jjk/Documents/master/RET/no_sync/kernel/include/net/netfilter/nf_tproxy_core.h:177: undefined reference to `udp6_lib_lookup'

/home/jjk/Documents/master/RET/no_sync/kernel/include/net/netfilter/nf_tproxy_core.h:177: undefined reference to `udp6_lib_lookup'

net/built-in.o: In function `tcp_is_local6':

/home/jjk/Documents/master/RET/no_sync/kernel/net/ipv4/tcp.c:3554: undefined reference to `rt6_lookup'

net/built-in.o: In function `tcp_nuke_addr':

/home/jjk/Documents/master/RET/no_sync/kernel/net/ipv4/tcp.c:3645: undefined reference to `in6addr_any'

net/built-in.o: In function `tproxy_tg_init':

/home/jjk/Documents/master/RET/no_sync/kernel/net/netfilter/xt_TPROXY.c:415: undefined reference to `nf_defrag_ipv6_enable'

net/built-in.o: In function `socket_mt_init':

/home/jjk/Documents/master/RET/no_sync/kernel/net/netfilter/xt_socket.c:388: undefined reference to `nf_defrag_ipv6_enable'

make: *** [Makefile:785: vmlinux] Error 1

```