Comment 0 for bug 2007365

Revision history for this message
Roxana Nicolescu (roxanan) wrote : rtl8821ce fails to build when CONFIG_CFG80211 is not enabled

[SRU Justification]

Impact:
jammy:linux-kvm does not have CONFIG_CFG80211 enabled.
Module rtl8821ce-dkms requires it, otherwise build will fail.
Build was not performed before because of this rule:

# Only build on wifi enabled kernels
if ! grep -q '^CONFIG_CFG80211=[ym]$' $kernel_source_dir/.config; then
BUILD_EXCLUSIVE_KERNEL="^$"
fi

But in the last update: 5.5.2.1-0ubuntu11~0.22.04.1 this was overridden by
BUILD_EXCLUSIVE_KERNEL="^5.15.*"
instead of appending the new exclude rule.

This lead to new regression in autopkgtest for jammy:linux-kvm-5.15.0-1029.34.

Fix
Append the last rule:

BUILD_EXCLUSIVE_KERNEL+=" ^5.15.*"

Tescase
autopkgtest rtl8821ce fails during build with the error from below

Regression potential:
None. Build is skipped so no tests are performed.
...
ERROR: modpost: "cfg80211_rx_mgmt_khz" [/var/lib/dkms/rtl8821ce/5.5.2.1/build/rtl8821ce.ko] undefined!
ERROR: modpost: "cfg80211_mgmt_tx_status" [/var/lib/dkms/rtl8821ce/5.5.2.1/build/rtl8821ce.ko] undefined!
ERROR: modpost: "wiphy_apply_custom_regulatory" [/var/lib/dkms/rtl8821ce/5.5.2.1/build/rtl8821ce.ko] undefined!
ERROR: modpost: "__cfg80211_alloc_reply_skb" [/var/lib/dkms/rtl8821ce/5.5.2.1/build/rtl8821ce.ko] undefined!
ERROR: modpost: "cfg80211_new_sta" [/var/lib/dkms/rtl8821ce/5.5.2.1/build/rtl8821ce.ko] undefined!
ERROR: modpost: "cfg80211_inform_bss_frame_data" [/var/lib/dkms/rtl8821ce/5.5.2.1/build/rtl8821ce.ko] undefined!
ERROR: modpost: "cfg80211_unlink_bss" [/var/lib/dkms/rtl8821ce/5.5.2.1/build/rtl8821ce.ko] undefined!
ERROR: modpost: "cfg80211_connect_done" [/var/lib/dkms/rtl8821ce/5.5.2.1/build/rtl8821ce.ko] undefined!
ERROR: modpost: "cfg80211_put_bss" [/var/lib/dkms/rtl8821ce/5.5.2.1/build/rtl8821ce.ko] undefined!
ERROR: modpost: "cfg80211_roamed" [/var/lib/dkms/rtl8821ce/5.5.2.1/build/rtl8821ce.ko] undefined!
WARNING: modpost: suppressed 18 unresolved symbol warnings because there were too many)
make[2]: *** [scripts/Makefile.modpost:133: /var/lib/dkms/rtl8821ce/5.5.2.1/build/Module.symvers] Error 1
make[2]: *** Deleting file '/var/lib/dkms/rtl8821ce/5.5.2.1/build/Module.symvers'
make[1]: *** [Makefile:1821: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-1029-kvm'
make: *** [Makefile:2262: modules] Error 2
====================
./rtl8821ce/5.5.2.1/build/make.log
autopkgtest [02:46:16]: test dkms-autopkgtest: -----------------------]
dkms-autopkgtest FAIL non-zero exit status 1
autopkgtest [02:46:17]: test dkms-autopkgtest: - - - - - - - - - - results - - - - - - - - - -
autopkgtest [02:46:17]: @@@@@@@@@@@@@@@@@@@@ summary
dkms-autopkgtest FAIL non-zero exit status 1
Creating nova instance adt-jammy-amd64-rtl8821ce-20230214-023910-lrg-root1 from image adt/ubuntu-jammy-amd64-server-20230213.img (UUID ed711e13-2823-486e-8ade-d9996e82af9a)...