From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 D5FE51922E1; Sat, 11 Jan 2025 12:25:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736598303; cv=none; b=dh/y93PnkGtNPQOk9rCtpEZp8AnjD37FW5pNxc9xvMlJi8opgScl+hQppyGZFpH4eiaq1BbDYjinxeiBtalosz04XQ5AVW0slCNTB6w5CMIEZVhXZqcmwton8n0dXH3LL8Vown5/QWAszu+InHUidYJtYOrpWV7cIfLgXMog7Ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736598303; c=relaxed/simple; bh=A/8dZvb4PodA5W5f8//xP4ydt9geI9IEAZNNNqDbBBk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dIV0W2tgAbwGpmxHGpR+lpYdPFeD368hnQ/ah1SQvB7EeRRA6dz8gHYKLAUbR9h6TqsZW37Cp/p9reMNMtiLRosBLHX1hA23FKUtoRlADv4ML6vfGcT5EI1Ez15n7T8VpqhsZP+jF2JHxAboJjeVUNfJemF52VEqejT4rd8tXTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=YcDfaBly; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YcDfaBly" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1736598301; x=1768134301; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=A/8dZvb4PodA5W5f8//xP4ydt9geI9IEAZNNNqDbBBk=; b=YcDfaBly4P8jB4e0lZzQ435U8eBYocjlxC5FUroKVJyGAA1hr/agbpZG KrPfkqJSz/aTOfW8Akn5Z6Kl0cEbHksYYvSu5QitF4vSOwuXvQFZVMBcW x96/bmuPsiZhmZK9WZY+eXo5gxUt4caraYHBWiqnPpFDQ/v+Kb2tES26v tXktuRosOmNx7x3c9qU0pOOX4ik5w6X6Jwp9ARyt28npNHI2HjWvFmFPI 5/a5wmxreaPxhD1bxjCpBL5feUR3+1FLuyoZBiVLYvxu2eFthrsKm8GSk CBPuT4mukP82XaMlNjIUklb0f5u6TzCAyHgfd8YyuI7ia/yougGw7lxuS g==; X-CSE-ConnectionGUID: bpYfLJM3TXqNk2+5WKLCDA== X-CSE-MsgGUID: NDJOIFJKTrSP0c7oX4DNuA== X-IronPort-AV: E=McAfee;i="6700,10204,11312"; a="36568764" X-IronPort-AV: E=Sophos;i="6.12,307,1728975600"; d="scan'208";a="36568764" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2025 04:24:59 -0800 X-CSE-ConnectionGUID: s7uiThp/StuhE0Qw+ZroYg== X-CSE-MsgGUID: wIRlLujDR0CozHf5o3+rzQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="127260895" Received: from lkp-server01.sh.intel.com (HELO d63d4d77d921) ([10.239.97.150]) by fmviesa002.fm.intel.com with ESMTP; 11 Jan 2025 04:24:56 -0800 Received: from kbuild by d63d4d77d921 with local (Exim 4.96) (envelope-from ) id 1tWaXu-000Kcp-06; Sat, 11 Jan 2025 12:24:54 +0000 Date: Sat, 11 Jan 2025 20:24:15 +0800 From: kernel test robot To: Roger Pau Monne , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, linux-pci@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Roger Pau Monne , Juergen Gross , Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Subject: Re: [PATCH 3/3] pci/msi: remove pci_msi_ignore_mask Message-ID: <202501112048.6yCFh2ma-lkp@intel.com> References: <20250110140152.27624-4-roger.pau@citrix.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250110140152.27624-4-roger.pau@citrix.com> Hi Roger, kernel test robot noticed the following build errors: [auto build test ERROR on pci/next] [also build test ERROR on pci/for-linus xen-tip/linux-next tip/irq/core linus/master v6.13-rc6 next-20250110] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Roger-Pau-Monne/xen-pci-do-not-register-devices-outside-of-PCI-segment-scope/20250110-220331 base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next patch link: https://lore.kernel.org/r/20250110140152.27624-4-roger.pau%40citrix.com patch subject: [PATCH 3/3] pci/msi: remove pci_msi_ignore_mask config: riscv-defconfig (https://download.01.org/0day-ci/archive/20250111/202501112048.6yCFh2ma-lkp@intel.com/config) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250111/202501112048.6yCFh2ma-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202501112048.6yCFh2ma-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/pci/msi/msi.c:12: In file included from include/linux/irq.h:23: In file included from arch/riscv/include/asm/irq.h:10: In file included from include/linux/interrupt.h:22: In file included from arch/riscv/include/asm/sections.h:9: In file included from include/linux/mm.h:2223: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ >> drivers/pci/msi/msi.c:288:40: error: incomplete definition of type 'const struct irq_domain' 288 | const struct msi_domain_info *info = d->host_data; | ~^ include/linux/irq.h:130:8: note: forward declaration of 'struct irq_domain' 130 | struct irq_domain; | ^ drivers/pci/msi/msi.c:604:40: error: incomplete definition of type 'const struct irq_domain' 604 | const struct msi_domain_info *info = d->host_data; | ~^ include/linux/irq.h:130:8: note: forward declaration of 'struct irq_domain' 130 | struct irq_domain; | ^ drivers/pci/msi/msi.c:714:40: error: incomplete definition of type 'const struct irq_domain' 714 | const struct msi_domain_info *info = d->host_data; | ~^ include/linux/irq.h:130:8: note: forward declaration of 'struct irq_domain' 130 | struct irq_domain; | ^ 1 warning and 3 errors generated. vim +288 drivers/pci/msi/msi.c 283 284 static int msi_setup_msi_desc(struct pci_dev *dev, int nvec, 285 struct irq_affinity_desc *masks) 286 { 287 const struct irq_domain *d = dev_get_msi_domain(&dev->dev); > 288 const struct msi_domain_info *info = d->host_data; 289 struct msi_desc desc; 290 u16 control; 291 292 /* MSI Entry Initialization */ 293 memset(&desc, 0, sizeof(desc)); 294 295 pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &control); 296 /* Lies, damned lies, and MSIs */ 297 if (dev->dev_flags & PCI_DEV_FLAGS_HAS_MSI_MASKING) 298 control |= PCI_MSI_FLAGS_MASKBIT; 299 if (info->flags & MSI_FLAG_NO_MASK) 300 control &= ~PCI_MSI_FLAGS_MASKBIT; 301 302 desc.nvec_used = nvec; 303 desc.pci.msi_attrib.is_64 = !!(control & PCI_MSI_FLAGS_64BIT); 304 desc.pci.msi_attrib.can_mask = !!(control & PCI_MSI_FLAGS_MASKBIT); 305 desc.pci.msi_attrib.default_irq = dev->irq; 306 desc.pci.msi_attrib.multi_cap = FIELD_GET(PCI_MSI_FLAGS_QMASK, control); 307 desc.pci.msi_attrib.multiple = ilog2(__roundup_pow_of_two(nvec)); 308 desc.affinity = masks; 309 310 if (control & PCI_MSI_FLAGS_64BIT) 311 desc.pci.mask_pos = dev->msi_cap + PCI_MSI_MASK_64; 312 else 313 desc.pci.mask_pos = dev->msi_cap + PCI_MSI_MASK_32; 314 315 /* Save the initial mask status */ 316 if (desc.pci.msi_attrib.can_mask) 317 pci_read_config_dword(dev, desc.pci.mask_pos, &desc.pci.msi_mask); 318 319 return msi_insert_msi_desc(&dev->dev, &desc); 320 } 321 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki