From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gnuweeb.org (Postfix) with ESMTPS id 52F1D804D1 for ; Wed, 10 Aug 2022 08:42:46 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=GP1Pq7x6; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660120966; x=1691656966; h=date:from:to:cc:subject:message-id:mime-version; bh=XrdM6ECofgginv+8R850a591vLIuy8d+Zj7kCF2D3PM=; b=GP1Pq7x6One9vQw47SvY33FgAG1J4FvrJnQzPcLKo6jwQLMFshBi/747 1tXKEEFxrD/ZAjARPFQaXlxoHeU5/iaUYQwlM4Dpmps8CLSVYQp26yFvX VjdTNdCzMbCqK3+cicPaO/sGoeJJocySHBmXnC7/63fow00o01GF3VVCu PKcGzPZ0PA/idyMEMmLXFXy8e8w4/P0Zf3jIod7PkJwuHccd5hehdZMwK Q/at5OXfFymozHS6De1rpW23Ce+rg9LcadbLsr5cQH3r56Msisjhsm+wS WES8sB9kt1ItWfCs2Rap2wXoHQQ5Qnn/YqooD338iuhdOl4rSfs8fjye6 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10434"; a="291821805" X-IronPort-AV: E=Sophos;i="5.93,226,1654585200"; d="scan'208";a="291821805" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2022 01:42:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,226,1654585200"; d="scan'208";a="633687492" Received: from lkp-server02.sh.intel.com (HELO 5d6b42aa80b8) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 10 Aug 2022 01:42:44 -0700 Received: from kbuild by 5d6b42aa80b8 with local (Exim 4.96) (envelope-from ) id 1oLhIZ-00005P-2g; Wed, 10 Aug 2022 08:42:43 +0000 Date: Wed, 10 Aug 2022 16:42:08 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: kbuild-all@lists.01.org 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 Message-ID: <202208101652.B2ooOD6c-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: 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/202208101652.B2ooOD6c-lkp@intel.com/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 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