From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B074AC04A68 for ; Wed, 27 Jul 2022 11:32:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E31DE940014; Wed, 27 Jul 2022 07:32:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DBA98940012; Wed, 27 Jul 2022 07:32:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C5AEB940014; Wed, 27 Jul 2022 07:32:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id AF8CE940012 for ; Wed, 27 Jul 2022 07:32:27 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 663D280C47 for ; Wed, 27 Jul 2022 11:32:27 +0000 (UTC) X-FDA: 79732666734.19.2DF3043 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf14.hostedemail.com (Postfix) with ESMTP id EF8C31000D1 for ; Wed, 27 Jul 2022 11:32:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658921546; x=1690457546; h=date:from:to:cc:subject:message-id:mime-version; bh=2H3GPihQlJit2NC1wZEjFq/m48ez9tBPKISCweyXzAs=; b=YTVuPjiSyyx93JsR5pemzEbUm151cs5q0HJh4pRQdX2ugosIy+tvLeec 8OJoexeb7AaVy9vAH9egxg8hbA83FWf3zhKBn8OK8PO8JrpYdoLo+MQHr oNdxq5N2wrNMBQ/saNg/tNC1Fqe/Vd99CwJPk2UELT3PTyyKOWfLZBBsP uX9Cyd6HQpfJ2E/9ymIlrJroQ/xPkS9n1EApEKa1r4Qhus7DHFP3hHJ7Z M1R46ZC+qAVIqFrh+KIgyOZfnK3YeIrl73hSQRGzOp7F/oL8kh2Sxs7Lc lc8utHd4vSQ4z8DZotBUSPUaiF/yBh9izFpSihusGVRzPNYlrSWcNdCH7 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10420"; a="288973814" X-IronPort-AV: E=Sophos;i="5.93,195,1654585200"; d="scan'208";a="288973814" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2022 04:32:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,195,1654585200"; d="scan'208";a="575946961" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 27 Jul 2022 04:32:18 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oGfGz-0008gC-1h; Wed, 27 Jul 2022 11:32:17 +0000 Date: Wed, 27 Jul 2022 19:31:45 +0800 From: kernel test robot To: Matthew Rosato Cc: kbuild-all@lists.01.org, Linux Memory Management List , Christian Borntraeger Subject: [linux-next:master 8282/13104] arch/s390/kvm/pci.c:58:68: sparse: sparse: Using plain integer as NULL pointer Message-ID: <202207271954.IctLQQYT-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=YTVuPjiS; spf=pass (imf14.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658921547; a=rsa-sha256; cv=none; b=FTQS3lHlhjogQmYzLaCqy+aoP6hCW0KIwVFZcLTOVXWr+MiRoL90WKGMv78b/VxjzvtcOo QwDfzzU8i4o1oRVJ8mDZiR3k73LLrSAFuDgasy8+C13aS/ak9l2rBl/H20Q1btEiupilx9 RknpJM//BkLt6yYi39LoBCBS7ejX4as= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658921547; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=RSuQw0KnwnfTTiHpmAd9VeCid9i0HL2trlbh98465+0=; b=x+DOolkNdJCDY7FzQxem98tJkvAeyHhe81OimbfdIY4PcUHwRw2ZNd323LYsFH/HAu47ss g4KwyZRx5Wyikuj1yfER7iXSFNtWlAV8gFX+fD3Gb1mh5kmLud1m3sZqESVXbSzMqBmP+W 4CKa80kD2w1tw7IKy451zARN1AbToDk= X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: EF8C31000D1 Authentication-Results: imf14.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=YTVuPjiS; spf=pass (imf14.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: oaxna3d9hak9p4qbmct4uc8zj1qinc9a X-Rspam-User: X-HE-Tag: 1658921545-904833 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 058affafc65a74cf54499fb578b66ad0b18f939b commit: 98b1d33dac5fd09060486762c02fd1a78baeb1e0 [8282/13104] KVM: s390: pci: do initial setup for AEN interpretation config: s390-randconfig-s051-20220727 (https://download.01.org/0day-ci/archive/20220727/202207271954.IctLQQYT-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=98b1d33dac5fd09060486762c02fd1a78baeb1e0 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 98b1d33dac5fd09060486762c02fd1a78baeb1e0 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=s390 SHELL=/bin/bash arch/s390/kvm/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> arch/s390/kvm/pci.c:58:68: sparse: sparse: Using plain integer as NULL pointer vim +58 arch/s390/kvm/pci.c 48 49 static int zpci_setup_aipb(u8 nisc) 50 { 51 struct page *page; 52 int size, rc; 53 54 zpci_aipb = kzalloc(sizeof(union zpci_sic_iib), GFP_KERNEL); 55 if (!zpci_aipb) 56 return -ENOMEM; 57 > 58 aift->sbv = airq_iv_create(ZPCI_NR_DEVICES, AIRQ_IV_ALLOC, 0); 59 if (!aift->sbv) { 60 rc = -ENOMEM; 61 goto free_aipb; 62 } 63 zpci_aif_sbv = aift->sbv; 64 size = get_order(PAGE_ALIGN(ZPCI_NR_DEVICES * 65 sizeof(struct zpci_gaite))); 66 page = alloc_pages(GFP_KERNEL | __GFP_ZERO, size); 67 if (!page) { 68 rc = -ENOMEM; 69 goto free_sbv; 70 } 71 aift->gait = (struct zpci_gaite *)page_to_phys(page); 72 73 zpci_aipb->aipb.faisb = virt_to_phys(aift->sbv->vector); 74 zpci_aipb->aipb.gait = virt_to_phys(aift->gait); 75 zpci_aipb->aipb.afi = nisc; 76 zpci_aipb->aipb.faal = ZPCI_NR_DEVICES; 77 78 /* Setup Adapter Event Notification Interpretation */ 79 if (zpci_set_irq_ctrl(SIC_SET_AENI_CONTROLS, 0, zpci_aipb)) { 80 rc = -EIO; 81 goto free_gait; 82 } 83 84 return 0; 85 86 free_gait: 87 free_pages((unsigned long)aift->gait, size); 88 free_sbv: 89 airq_iv_release(aift->sbv); 90 zpci_aif_sbv = NULL; 91 free_aipb: 92 kfree(zpci_aipb); 93 zpci_aipb = NULL; 94 95 return rc; 96 } 97 -- 0-DAY CI Kernel Test Service https://01.org/lkp