On Mon, Nov 29, 2021 at 10:24:15AM +0800, Jeremy Kerr wrote:
> Hi Dan,
> 
> > smatch warnings:
> > net/mctp/test/utils.c:15 mctp_test_dev_tx() error: use kfree_skb() here 
> > instead of kfree(skb)
> 
> Thanks for the report! I've sent a fix, you're CCed.
> 
> However, I can 't seem to recreate the smatch warning; could you include
> the build command you're using for these? I've tried with
> 
>     make [...] C=1 CHECK=/path/to/smatch

The CHECK= string needs a -p=kernel added to it or it won't do kernel
specific checking.

        make [...] C=1 CHECK="/path/to/smatch -p=kernel"

regards,
dan carpenter
_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to