On Wed, May 08, 2024 at 09:51:33AM -0700, Jeff Johnson wrote: > On 5/8/2024 5:29 AM, Dan Carpenter wrote: > > Hello Baochen Qiang, > > > > Commit 692921ead832 ("wifi: ath12k: flush all packets before > > suspend") from Apr 22, 2024 (linux-next), leads to the following > > Smatch static checker warning: > > > > drivers/net/wireless/ath/ath12k/core.c:58 ath12k_core_suspend() > > warn: sleeping in atomic context > > Hi Dan, > I'm not seeing this as part of my standard make W=1 C=1 > > What do I need to do in order to see this? > build_kernel_data.sh ?? > Yeah. This is a smatch warning that requires build_kernel_data.sh (probably you have to build several times which takes forever). The might_sleep() is in synchronize_net(). It's better to do run time testing. If you run with CONFIG_DEBUG_ATOMIC_SLEEP=y then it will trigger a stack trace. regards, dan carpenter