Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp893693lqs; Fri, 14 Jun 2024 08:34:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhlQSR0ktZqOrTwvoOnnw0NTinG8DeTwNwF34L6kLFZZedUnJ3CIV0NtmO0ulcAt/gE2dHjYBoKZDIL0sScZXDwznj1+3MzgS7dWdZjg== X-Google-Smtp-Source: AGHT+IFp2CiSrqCs1p/xHpqueyZ9nhybtNf6I+VNmf9HspPBMfkiO84H++nFuAbHNIzoXd41oFwg X-Received: by 2002:a05:6808:171b:b0:3d2:2181:a911 with SMTP id 5614622812f47-3d24e9aec8cmr3030161b6e.46.1718379239875; Fri, 14 Jun 2024 08:33:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718379239; cv=pass; d=google.com; s=arc-20160816; b=tGTo8BvkhBUO7k92TBclQnNEAgfb8KpFLWMHBvRpgSDbSA1uj6v4imIsM7oMNPRRR3 fuKbEQ9zmOgf9x+/u2XKf8xMZLgfOIk1lFYlOkDGOqOM4cnUop7XfVxFQlnTSqpFCpTi U6hbSXbMNmbXAGpxd9s8TIpUWpQMEaSEQxrq8fdJ2+B+ic0X7d8THQnhXO+uXk+cvVdE /+yHM9PV3mmu121uxLEihX7TLAPD14oerRpAVDASarON++PK6n7+e9efVRp59otN/9dH 6DT0+fb6Pu1ddoMnEprMOjd7pdxdQEbT99Dymcth2TzWJEVG1dpOwlEF+1SXMmMANaV/ 52XA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=qbCeVvVAYIrkVgtKpjvgRe7PRBcFz9gH6W7Mb6oZE7c=; fh=h341zT4utc6+kTrZ37mS4LhOxQ+1QAbxVgmZZ/4o+Ic=; b=u3ujyKxYQfrLhqTuWGnHUNoYUhesM+3UI6h5ePvD5C7P2KIZI/uNrXIh15xeHmejNq mSIFmMhuxLhV4RQLecQ8QBugYhwg3RRN7vK2vsVZzGtMewb9V6qHPh3pXOKMObSd3spW nMYdqoKyECmdam280u1hq/7gTkDSVmOAPu7UMOaS+2n1xhElnlx60StOErFRRq9T6oA9 ypg3ZgNRLSwliFrQodh1+WQY/zuUAUXwC8uiW1GsSHgJNAbAbEXUkXd4/xZo2B72GiDu piGDxMdaZpFzE0STjD9dhZme4mAMNO6JX+w99ggcdky8tr3D243lJt5Z/Vt49pWcj6Cz 3k1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TFrW7etl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215151-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-798abe57d4esi422812285a.560.2024.06.14.08.33.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 08:33:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TFrW7etl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215151-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8788B1C212A3 for ; Fri, 14 Jun 2024 15:33:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF5BB1591E8; Fri, 14 Jun 2024 15:33:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TFrW7etl" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 ECDD1157A47 for ; Fri, 14 Jun 2024 15:33:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718379231; cv=none; b=naIztuh0WRs52xdiNdCnB0LYssgWz9Mr0LUiWZBXocu18g0qCuX705IK7oEFCwlzkJt6Z7X+XGYcOQ+OF/mtxpM/21DsdlnEjZrwdmamYvuoFEb0+Vvyoe9JdEAXSWnsPeJC5SbBL/7QI8Zocr3iwR7oACBt2Wp3wwnAr9Z1lAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718379231; c=relaxed/simple; bh=XPs2SWgcg9zduhMhSD7BO0xKySl3NyBcZQRSGIiEXLg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Dtqe8WpClvFTcHw2pQebdkEErSVnHXTWGx1UkoofR2XdGJQKclAXN0kLD+4ec3btRX+r5xkQWdlr9EY6rI9l/THozGRoA/lCH8y8BTTe3nElDvbEPUr0JJL1MzA6NxoOgF1mRhXpwIuIk3WeXg35JIaK3si/1drdsr1waiNmrcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TFrW7etl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0932CC2BD10; Fri, 14 Jun 2024 15:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718379230; bh=XPs2SWgcg9zduhMhSD7BO0xKySl3NyBcZQRSGIiEXLg=; h=From:To:Cc:Subject:Date:From; b=TFrW7etlj0iwXNYY0ftpeIkaSGEDDdSHHhLlHu9RY9Dcy1BKNE6BN709gSW23z6jN 4NYG+TrSA2WzJ768BqsUzeW7070uUkmVza1P4C9v4b0UwxDXgq6W8KyRqp4L3NBlDW XWAkmKLsAEYUrTrcfhiNUBSDwmSkucIAsA3zhs2NssPBxqplshjQNiPnkLAHkiFx/O 7+zW7HUXtP7wdwVyyIoaMXPmUtdy0kgq+CBTyK6dSvJNIBWdnHlkCviB2MvPuEVWHJ C5xJvPfOYAxtUwDQF6ri3dn3Gk0OhHRI2pXJZmsSAvTC/oKFLhrinAnOFuCqS0PELI FFZpS5vYjcNVA== From: Jisheng Zhang To: Anup Patel , Thomas Gleixner , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] irqchip/riscv-intc: Remove asmlinkage Date: Fri, 14 Jun 2024 23:19:55 +0800 Message-ID: <20240614151955.1949-1-jszhang@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The two functions riscv_intc_aia_irq() and riscv_intc_irq() are only called by C functions. Signed-off-by: Jisheng Zhang --- Hi riscv maintainers and all, Related question: I believe the asmlinkage in riscv is a nop, is it OK to remove asmlinkage from all riscv code? Anyway, no matter what will be the decision, it's correct to remove asmlinkage in riscv intc driver as this patch does. thanks drivers/irqchip/irq-riscv-intc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-riscv-intc.c b/drivers/irqchip/irq-riscv-intc.c index 4f3a12383a1e..47f3200476da 100644 --- a/drivers/irqchip/irq-riscv-intc.c +++ b/drivers/irqchip/irq-riscv-intc.c @@ -26,7 +26,7 @@ static unsigned int riscv_intc_nr_irqs __ro_after_init = BITS_PER_LONG; static unsigned int riscv_intc_custom_base __ro_after_init = BITS_PER_LONG; static unsigned int riscv_intc_custom_nr_irqs __ro_after_init; -static asmlinkage void riscv_intc_irq(struct pt_regs *regs) +static void riscv_intc_irq(struct pt_regs *regs) { unsigned long cause = regs->cause & ~CAUSE_IRQ_FLAG; @@ -34,7 +34,7 @@ static asmlinkage void riscv_intc_irq(struct pt_regs *regs) pr_warn_ratelimited("Failed to handle interrupt (cause: %ld)\n", cause); } -static asmlinkage void riscv_intc_aia_irq(struct pt_regs *regs) +static void riscv_intc_aia_irq(struct pt_regs *regs) { unsigned long topi; -- 2.43.0