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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 994FBC3DA7F for ; Thu, 15 Aug 2024 04:30:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XaJb7XYFW7KpkiNv7QxE+iE0SINIHxz3wc4g2IApOGA=; b=ySc3vB58dFxILYUS1cm5Nzv4IE MUdjPPH5/qVep/6il7xNpPpbr0UN9++qMx8jZBgczNGRZXRMfCARfWbAhficXKnxfpno8AYXnupvA 3BYF63aME1eZ9C77Hg7uRJqS5BYLtYnwzZGd1Xks1Zs+ZKuGF8+TShlSzUOAPwsT+GxW5MyilITrd 4C5WWaLVCUohT0clPpuy/MS9AOwuLddLP1TliapclfT3/iVzHwVhQUcfwSn9NfdeZv6iEwQRzPjif NRz9I5gmdnoKzu01j2uroZCgkiRqeInc6P5amjP8SkmOasO5GbKnxzebYRxe+YU+WwOWJjgeo5e3e KHo0wKeA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seS8F-00000008zQe-0vxP; Thu, 15 Aug 2024 04:30:39 +0000 Received: from mgamail.intel.com ([198.175.65.18]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1seS7a-00000008zIn-3HlT for linux-arm-kernel@lists.infradead.org; Thu, 15 Aug 2024 04:30:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723696198; x=1755232198; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CPDaoJ64MA8oja2aEn10Ppdbuz5HP6TspRNHi2lAS8U=; b=hgDYT1fr1T05W9cUARm1ANfiIJOtOSwaUgnk1rGyaTbDb9K9iYq91Y8P RouP3PW9PqG/WkFg6zpM+R2DjYCCk9JoweaetX013hJX66Ng9DTJ7EToQ CFJ2/rgIu4+KAwIF+7VO31N/b30f/fgyquywHfLPUadfPb/pCBE/+Zt65 4utqTgeKUbXMQsblTggxigSelyuKMHbiuIRX/D2SmKNvv/0d8sJNo74ZI jOh56MGultrFne11KzNhsCWra9VQaWOHf7Uk2H+dcEiLCm54fNqWbVDd/ jcs0bPqKCfKb1tlCULNts+SolVkTVt6aZc+Bk/szpDxVXHB13Jyfqpa+e g==; X-CSE-ConnectionGUID: mwGFzjN0TOyRMXvsdqwW/g== X-CSE-MsgGUID: R8bG7HwxSZyi8eRxTMTKBg== X-IronPort-AV: E=McAfee;i="6700,10204,11164"; a="22092482" X-IronPort-AV: E=Sophos;i="6.10,147,1719903600"; d="scan'208";a="22092482" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2024 21:29:58 -0700 X-CSE-ConnectionGUID: LoD3C6ZFSrWtdm3hdSgkOg== X-CSE-MsgGUID: s3Oumv5gQ420Qx5fMd49xA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,147,1719903600"; d="scan'208";a="63394766" Received: from lkp-server01.sh.intel.com (HELO 9a732dc145d3) ([10.239.97.150]) by fmviesa003.fm.intel.com with ESMTP; 14 Aug 2024 21:29:55 -0700 Received: from kbuild by 9a732dc145d3 with local (Exim 4.96) (envelope-from ) id 1seS7U-0003Bu-2y; Thu, 15 Aug 2024 04:29:52 +0000 Date: Thu, 15 Aug 2024 12:29:40 +0800 From: kernel test robot To: Shanker Donthineni , Marc Zyngier , Thomas Gleixner , Catalin Marinas , Will Deacon , Jonathan Corbet , Sudeep Holla Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shanker Donthineni Subject: Re: [PATCH] irqchip/gic-v3: Allow unused SGIs for drivers/modules Message-ID: <202408151208.vuvL1AtV-lkp@intel.com> References: <20240813033925.925947-1-sdonthineni@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240813033925.925947-1-sdonthineni@nvidia.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240814_212958_893965_0B32E9E4 X-CRM114-Status: GOOD ( 13.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Shanker, kernel test robot noticed the following build errors: [auto build test ERROR on arm64/for-next/core] [also build test ERROR on tip/irq/core soc/for-next linus/master v6.11-rc3 next-20240814] [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/Shanker-Donthineni/irqchip-gic-v3-Allow-unused-SGIs-for-drivers-modules/20240814-221122 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core patch link: https://lore.kernel.org/r/20240813033925.925947-1-sdonthineni%40nvidia.com patch subject: [PATCH] irqchip/gic-v3: Allow unused SGIs for drivers/modules config: arm-defconfig (https://download.01.org/0day-ci/archive/20240815/202408151208.vuvL1AtV-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240815/202408151208.vuvL1AtV-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/202408151208.vuvL1AtV-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/irqchip/irq-gic-v3.c:1658:26: error: use of undeclared identifier 'MAX_IPI' if (fwspec->param[0] < MAX_IPI) { ^ 1 error generated. vim +/MAX_IPI +1658 drivers/irqchip/irq-gic-v3.c 1600 1601 static int gic_irq_domain_translate(struct irq_domain *d, 1602 struct irq_fwspec *fwspec, 1603 unsigned long *hwirq, 1604 unsigned int *type) 1605 { 1606 if (fwspec->param_count == 1 && fwspec->param[0] < 16) { 1607 *hwirq = fwspec->param[0]; 1608 *type = IRQ_TYPE_EDGE_RISING; 1609 return 0; 1610 } 1611 1612 if (is_of_node(fwspec->fwnode)) { 1613 if (fwspec->param_count < 3) 1614 return -EINVAL; 1615 1616 switch (fwspec->param[0]) { 1617 case 0: /* SPI */ 1618 *hwirq = fwspec->param[1] + 32; 1619 break; 1620 case 1: /* PPI */ 1621 *hwirq = fwspec->param[1] + 16; 1622 break; 1623 case 2: /* ESPI */ 1624 *hwirq = fwspec->param[1] + ESPI_BASE_INTID; 1625 break; 1626 case 3: /* EPPI */ 1627 *hwirq = fwspec->param[1] + EPPI_BASE_INTID; 1628 break; 1629 case GIC_IRQ_TYPE_LPI: /* LPI */ 1630 *hwirq = fwspec->param[1]; 1631 break; 1632 case GIC_IRQ_TYPE_PARTITION: 1633 *hwirq = fwspec->param[1]; 1634 if (fwspec->param[1] >= 16) 1635 *hwirq += EPPI_BASE_INTID - 16; 1636 else 1637 *hwirq += 16; 1638 break; 1639 default: 1640 return -EINVAL; 1641 } 1642 1643 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; 1644 1645 /* 1646 * Make it clear that broken DTs are... broken. 1647 * Partitioned PPIs are an unfortunate exception. 1648 */ 1649 WARN_ON(*type == IRQ_TYPE_NONE && 1650 fwspec->param[0] != GIC_IRQ_TYPE_PARTITION); 1651 return 0; 1652 } 1653 1654 if (is_fwnode_irqchip(fwspec->fwnode)) { 1655 if(fwspec->param_count != 2) 1656 return -EINVAL; 1657 > 1658 if (fwspec->param[0] < MAX_IPI) { 1659 pr_err(FW_BUG "Illegal GSI%d translation request\n", 1660 fwspec->param[0]); 1661 return -EINVAL; 1662 } 1663 1664 *hwirq = fwspec->param[0]; 1665 *type = fwspec->param[1]; 1666 1667 WARN_ON(*type == IRQ_TYPE_NONE); 1668 return 0; 1669 } 1670 1671 return -EINVAL; 1672 } 1673 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki