From: kernel test robot <[email protected]>
To: Ammar Faizi <[email protected]>,
GNU/Weeb Mailing List <[email protected]>
Cc: [email protected]
Subject: [ammarfaizi2-block:google/android/kernel/common/android-trusty-5.4 4948/6879] mm/page_alloc.c:2741:29: sparse: sparse: Using plain integer as NULL pointer
Date: Wed, 10 Aug 2022 16:42:08 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-trusty-5.4
head: d556bac5a4d65c759ce3c5a7529aef568f05f650
commit: b9d3d8f1e991052edb89b0537b8f2e8b2aa941ac [4948/6879] ANDROID: GKI: cma: redirect page allocation to CMA
config: i386-randconfig-s003 (https://download.01.org/0day-ci/archive/20220810/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://github.com/ammarfaizi2/linux-block/commit/b9d3d8f1e991052edb89b0537b8f2e8b2aa941ac
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-trusty-5.4
git checkout b9d3d8f1e991052edb89b0537b8f2e8b2aa941ac
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>
sparse warnings: (new ones prefixed by >>)
mm/page_alloc.c:106:1: sparse: sparse: symbol 'pcpu_drain_mutex' was not declared. Should it be static?
>> mm/page_alloc.c:2741:29: sparse: sparse: Using plain integer as NULL pointer
mm/page_alloc.c:3252:51: sparse: sparse: incorrect type in argument 7 (different base types) @@ expected int cma @@ got restricted gfp_t @@
mm/page_alloc.c:3252:51: sparse: expected int cma
mm/page_alloc.c:3252:51: sparse: got restricted gfp_t
mm/page_alloc.c: note: in included file (through include/linux/mm.h):
include/linux/gfp.h:325:27: sparse: sparse: restricted gfp_t degrades to integer
include/linux/gfp.h:325:27: sparse: sparse: restricted gfp_t degrades to integer
vim +2741 mm/page_alloc.c
2736
2737 static struct page *__rmqueue_cma(struct zone *zone, unsigned int order,
2738 int migratetype,
2739 unsigned int alloc_flags)
2740 {
> 2741 struct page *page = 0;
2742
2743 retry:
2744 #ifdef CONFIG_CMA
2745 if (migratetype == MIGRATE_MOVABLE && !zone->cma_alloc)
2746 page = __rmqueue_cma_fallback(zone, order);
2747 else
2748 #endif
2749 page = __rmqueue_smallest(zone, order, migratetype);
2750
2751 if (unlikely(!page) && __rmqueue_fallback(zone, order, migratetype,
2752 alloc_flags))
2753 goto retry;
2754
2755 trace_mm_page_alloc_zone_locked(page, order, migratetype);
2756 return page;
2757 }
2758
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next reply other threads:[~2022-08-10 8:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-10 8:42 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-01-06 1:03 [ammarfaizi2-block:google/android/kernel/common/android-trusty-5.4 4948/6879] mm/page_alloc.c:2741:29: sparse: sparse: Using plain integer as NULL pointer kernel test robot
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] \
/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