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 87F8BC531DC for ; Thu, 15 Aug 2024 03:38:50 +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=V/SFekW74Ak/5o6sL54iUQ/H0rlSk9BS4GXVj4nah+E=; b=WDG6n4xjSoquIRqIk6YNEKnqrz CnGqxKudHf1C5EhBDEyw4D0OhT5A3XIJQycK3pfgVDZWPyANkog9JQ9/pfV9A7dJcVLO6OkNOh1Ac 9/frmhVorvFY4AYN3XWn3nvAvgiBZzL1XTGrb7MthkIZ1kbzJhW2MbW29mnzjv8Vbl+f32bLLQcvT zvtew2TlIIEY5WIHmQgx1S4CtweuPlZPEy+LXdqeY+PLfetbZh5dy9lbIzFeedcImh4josH97557F UPRxswdcmRIi3n7NGgpe7nQV0EQ6WrQVsyQEkY2JJJ/pnOZ2D/rMP0jGO5qbHIOpBIZ5DmnXvvTD0 oinnLYPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seRJu-00000008vec-49rO; Thu, 15 Aug 2024 03:38:38 +0000 Received: from mgamail.intel.com ([192.198.163.19]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1seRJG-00000008vYp-1901 for linux-arm-kernel@lists.infradead.org; Thu, 15 Aug 2024 03:38:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723693078; x=1755229078; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=RUsSzefQLL5RIfWA58S2AELi2vV5CEh7fOcoNvMJO0k=; b=S2meSyhsaDIqjPq3CU1NDB6mvfy5rNB83Uy6g+7GS+FfPfeCJzi9cDH6 GYQOa8SYd4RTCahSmlLhU0Uh7qfTsc8Q52DW06kmJrAxBzmb5s8+bhks+ 4HuCRu6z6CyFi+mLk+qSb7z8HvdRTSFNJ1Xvg6sAvkNW9WAAZPVbLjBA2 IaAJy36o6CuU8nFDExHgwwGkMqHz01bDcZRDKv/oXPz5F7Y7V1l5Jpwq0 MPwqgI4XbJCenIfYa4aLi8zbqBqQmlIY8OMwjBr/FTVqyS1yiblNKxCca bvK4mb4ak/dGec/pSWDF9tfxuMsOoepCbxjBldDzPrWDh3wU0inaw6z5X A==; X-CSE-ConnectionGUID: 3hMFpyPVRyOhZeCqeUr6Fw== X-CSE-MsgGUID: S6vq1o48T2ygJl6LumvnFA== X-IronPort-AV: E=McAfee;i="6700,10204,11164"; a="21585530" X-IronPort-AV: E=Sophos;i="6.10,147,1719903600"; d="scan'208";a="21585530" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2024 20:37:55 -0700 X-CSE-ConnectionGUID: RmMIUmLJTZO8j0qFQEYi3Q== X-CSE-MsgGUID: /DMoub1oTq29BheBM+yWCw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,147,1719903600"; d="scan'208";a="59208691" Received: from lkp-server01.sh.intel.com (HELO 9a732dc145d3) ([10.239.97.150]) by fmviesa008.fm.intel.com with ESMTP; 14 Aug 2024 20:37:53 -0700 Received: from kbuild by 9a732dc145d3 with local (Exim 4.96) (envelope-from ) id 1seRJ9-00038w-0O; Thu, 15 Aug 2024 03:37:51 +0000 Date: Thu, 15 Aug 2024 11:37:05 +0800 From: kernel test robot To: Shanker Donthineni , Marc Zyngier , Thomas Gleixner , Catalin Marinas , Will Deacon , Jonathan Corbet , Sudeep Holla Cc: 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: <202408151138.JtTxkiQ6-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_203758_351046_179EC968 X-CRM114-Status: GOOD ( 17.12 ) 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-randconfig-004-20240815 (https://download.01.org/0day-ci/archive/20240815/202408151138.JtTxkiQ6-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240815/202408151138.JtTxkiQ6-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/202408151138.JtTxkiQ6-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/irqchip/irq-gic-v3.c: In function 'gic_irq_domain_translate': >> drivers/irqchip/irq-gic-v3.c:1658:40: error: 'MAX_IPI' undeclared (first use in this function); did you mean 'MAX_INPUT'? 1658 | if (fwspec->param[0] < MAX_IPI) { | ^~~~~~~ | MAX_INPUT drivers/irqchip/irq-gic-v3.c:1658:40: note: each undeclared identifier is reported only once for each function it appears in vim +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