hi, kafai
./scripts/coccicheck report this warning. ________________________________________ 发件人: Martin KaFai Lau kafai@fb.com 发送时间: 2022年3月25日 4:28:48 收件人: 白浩文 抄送: shuah@kernel.org; ast@kernel.org; daniel@iogearbox.net; andrii@kernel.org; songliubraving@fb.com; yhs@fb.com; john.fastabend@gmail.com; kpsingh@kernel.org; linux-kselftest@vger.kernel.org; netdev@vger.kernel.org; bpf@vger.kernel.org; linux-kernel@vger.kernel.org 主题: Re: [PATCH] selftests/bpf: Fix warning comparing pointer to 0
On Thu, Mar 24, 2022 at 10:08:45AM +0800, Haowen Bai wrote:
Avoid pointer type value compared with 0 to make code clear.
Which compiler version that warns ? I don't see it with the latest llvm-project from github.
The patch lgtm.
Acked-by: Martin KaFai Lau kafai@fb.com