From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B067156C1 for ; Thu, 4 May 2023 23:56:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683244566; x=1714780566; h=date:from:to:cc:subject:message-id:mime-version; bh=8hIfYCG6vOHmM8KjAG6zQVshmXdhDEl2pABsd011/z8=; b=YAcASCMuww40KAYO/ie87r7zLbRMHJOU38CzIP+bmsF9mlfOtH5pTSpm skwGy8WfBoWpohaGusinQoxrB5YpXa3dE3+BrhA9M2s1GvOCTZQB0Rdrs m41/55O2+yfDXmSiyPYfNTyokWxoMr6FVv6HXk0jFc1HEbNts/eQRvFoO Acrq8IBJTdURjejrfDfCXVGGZZDlwQ7a9zadWPjAFSOn9Ccz80RfisFSt 6zl98Xd24jRghihtCpXKBX/h9sIOIqPnbNEm4DN4emkH6MENQpg+LH8CG UoKLdc6Jpd2AsfmWuuZcNlN3CK5HDJL8/u9LQDzOAF7+sggROIP17KMy1 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="377160358" X-IronPort-AV: E=Sophos;i="5.99,250,1677571200"; d="scan'208";a="377160358" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2023 16:55:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="1027182973" X-IronPort-AV: E=Sophos;i="5.99,250,1677571200"; d="scan'208";a="1027182973" Received: from lkp-server01.sh.intel.com (HELO 64cf2984a3fe) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 04 May 2023 16:55:56 -0700 Received: from kbuild by 64cf2984a3fe with local (Exim 4.96) (envelope-from ) id 1puinj-0000Dg-1Z; Thu, 04 May 2023 23:55:55 +0000 Date: Fri, 5 May 2023 07:54:56 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android11-5.4 5502/25679] mm/page_alloc.c:2741:29: sparse: sparse: Using plain integer as NULL pointer Message-ID: <202305050741.ZBUeGqPs-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://android.googlesource.com/kernel/common android11-5.4 head: 0779e2b555622658d357b54d96c427bfd8ba8600 commit: b9d3d8f1e991052edb89b0537b8f2e8b2aa941ac [5502/25679] ANDROID: GKI: cma: redirect page allocation to CMA config: i386-randconfig-s003 (https://download.01.org/0day-ci/archive/20230505/202305050741.ZBUeGqPs-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty git remote add android-common https://android.googlesource.com/kernel/common git fetch --no-tags android-common android11-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 olddefconfig 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 | Link: https://lore.kernel.org/oe-kbuild-all/202305050741.ZBUeGqPs-lkp@intel.com/ 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://github.com/intel/lkp-tests