I was in the process of debugging bluetooth. It may not be important, but I saw that if I enable CONFIG_WL127X_RFKILL, I get a compile failure.
CC drivers/bluetooth/btwilink.o
LD drivers/bluetooth/built-in.o
CC drivers/misc/ti-st/st_core.o
CC drivers/misc/ti-st/st_kim.o
CC drivers/misc/ti-st/st_ll.o
LD drivers/misc/ti-st/st_drv.o
LD drivers/misc/ti-st/built-in.o
CC drivers/misc/wl127x-rfkill.o
drivers/misc/wl127x-rfkill.c:31: warning: 'enum rfkill_state' declared inside parameter list
drivers/misc/wl127x-rfkill.c:31: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/misc/wl127x-rfkill.c:31: error: parameter 2 ('state') has incomplete type
drivers/misc/wl127x-rfkill.c: In function 'wl127x_rfkill_set_power':
drivers/misc/wl127x-rfkill.c:36: error: 'RFKILL_STATE_UNBLOCKED' undeclared (first use in this function)
drivers/misc/wl127x-rfkill.c:36: error: (Each undeclared identifier is reported only once
drivers/misc/wl127x-rfkill.c:36: error: for each function it appears in.)
drivers/misc/wl127x-rfkill.c:39: error: 'RFKILL_STATE_SOFT_BLOCKED' undeclared (first use in this function)
drivers/misc/wl127x-rfkill.c: In function 'wl127x_rfkill_probe':
drivers/misc/wl127x-rfkill.c:52: error: variable 'default_state' has initializer but incomplete type
drivers/misc/wl127x-rfkill.c:52: error: 'RFKILL_STATE_SOFT_BLOCKED' undeclared (first use in this function)
drivers/misc/wl127x-rfkill.c:52: error: storage size of 'default_state' isn't known
drivers/misc/wl127x-rfkill.c:62: error: implicit declaration of function 'rfkill_set_default'
drivers/misc/wl127x-rfkill.c:63: error: type of formal parameter 2 is incomplete
drivers/misc/wl127x-rfkill.c:65: error: implicit declaration of function 'rfkill_allocate'
drivers/misc/wl127x-rfkill.c:65: warning: assignment makes pointer from integer without a cast
drivers/misc/wl127x-rfkill.c:69: error: dereferencing pointer to incomplete type
drivers/misc/wl127x-rfkill.c:70: error: dereferencing pointer to incomplete type
drivers/misc/wl127x-rfkill.c:72: error: dereferencing pointer to incomplete type
drivers/misc/wl127x-rfkill.c:73: error: dereferencing pointer to incomplete type
drivers/misc/wl127x-rfkill.c:74: error: dereferencing pointer to incomplete type
drivers/misc/wl127x-rfkill.c:75: error: dereferencing pointer to incomplete type
drivers/misc/wl127x-rfkill.c:80: error: implicit declaration of function 'rfkill_free'
drivers/misc/wl127x-rfkill.c:52: warning: unused variable 'default_state'
make[2]: *** [drivers/misc/wl127x-rfkill.o] Error 1
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
repo diff showing my defconfig attached.