From: kernel test robot <[email protected]>
To: zhengding chen <[email protected]>
Cc: [email protected],
GNU/Weeb Mailing List <[email protected]>,
[email protected], Todd Kjos <[email protected]>
Subject: [ammarfaizi2-block:google/android/kernel/common/android12-5.10 2348/9999] drivers/android/binder.c:1373:70: sparse: sparse: Using plain integer as NULL pointer
Date: Tue, 15 Mar 2022 01:34:09 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-5.10
head: f3ca80cced4e447653b51be876c026c337d84702
commit: 35014985c266face161f6d107f8d8338e02a0b2d [2348/9999] ANDROID: vendor_hooks: Add hooks for binder proc transaction
config: x86_64-randconfig-s021 (https://download.01.org/0day-ci/archive/20220315/[email protected]/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/ammarfaizi2/linux-block/commit/35014985c266face161f6d107f8d8338e02a0b2d
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-5.10
git checkout 35014985c266face161f6d107f8d8338e02a0b2d
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/android/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
sparse warnings: (new ones prefixed by >>)
>> drivers/android/binder.c:1373:70: sparse: sparse: Using plain integer as NULL pointer
drivers/android/binder.c:2508:41: sparse: sparse: Using plain integer as NULL pointer
drivers/android/binder.c:4580:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __poll_t @@ got int @@
drivers/android/binder.c:4580:24: sparse: expected restricted __poll_t
drivers/android/binder.c:4580:24: sparse: got int
vim +1373 drivers/android/binder.c
1363
1364 /**
1365 * binder_free_ref() - free the binder_ref
1366 * @ref: ref to free
1367 *
1368 * Free the binder_ref. Free the binder_node indicated by ref->node
1369 * (if non-NULL) and the binder_ref_death indicated by ref->death.
1370 */
1371 static void binder_free_ref(struct binder_ref *ref)
1372 {
> 1373 trace_android_vh_binder_del_ref(ref->proc ? ref->proc->tsk : 0, ref->data.desc);
1374 if (ref->node)
1375 binder_free_node(ref->node);
1376 kfree(ref->death);
1377 kfree(ref);
1378 }
1379
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/[email protected]
reply other threads:[~2022-03-14 17:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox