From patchwork Tue Mar 21 17:17:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 13182993 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 7A1E7C6FD1D for ; Tue, 21 Mar 2023 17:18:01 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.512902.793279 (Exim 4.92) (envelope-from ) id 1pefcG-0006mI-N5; Tue, 21 Mar 2023 17:17:44 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 512902.793279; Tue, 21 Mar 2023 17:17:44 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pefcG-0006mB-KY; Tue, 21 Mar 2023 17:17:44 +0000 Received: by outflank-mailman (input) for mailman id 512902; Tue, 21 Mar 2023 17:17:42 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pefcE-0006m5-HI for xen-devel@lists.xenproject.org; Tue, 21 Mar 2023 17:17:42 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pefcE-0002o1-3m; Tue, 21 Mar 2023 17:17:42 +0000 Received: from 54-240-197-224.amazon.com ([54.240.197.224] helo=dev-dsk-jgrall-1b-035652ec.eu-west-1.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pefcD-0005KL-RD; Tue, 21 Mar 2023 17:17:42 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date: Subject:Cc:To:From; bh=lg7n5v5ou7uw1fzn2Vt3F7Zl0Qr0cNq1qteLi9rcgOg=; b=3FbC+a tuJjMnWqmou6r2wlh/zGMYhMOpFJPdaPuysf4zilRmhMpt8ogqFxoOGHjK+ogR3qYJ5CxfKTFWmfL +BL9N8WENez8Pr4GfEpFDGYf0IpYdNnJZ+dch9stFemA3vuMjehXdqqX5fp3VVNdU7iSS4NMAhY5b OcYdb6CeodI=; From: Julien Grall To: xen-devel@lists.xenproject.org Cc: andrei.cherechesu@oss.nxp.com, Julien Grall , Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk Subject: [PATCH] xen/arm: irq: Constify the first parameter of platform_get_irq_byname() Date: Tue, 21 Mar 2023 17:17:21 +0000 Message-Id: <20230321171721.2502-1-julien@xen.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 From: Julien Grall platform_get_irq_byname() is not meant to modify the parameter 'np'. So constify it. Signed-off-by: Julien Grall Reviewed-by: Michal Orzel Acked-by: Stefano Stabellini --- xen/arch/arm/include/asm/irq.h | 2 +- xen/arch/arm/irq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/include/asm/irq.h b/xen/arch/arm/include/asm/irq.h index af94f41994f1..11bc85d1110c 100644 --- a/xen/arch/arm/include/asm/irq.h +++ b/xen/arch/arm/include/asm/irq.h @@ -89,7 +89,7 @@ int irq_set_type(unsigned int irq, unsigned int type); int platform_get_irq(const struct dt_device_node *device, int index); -int platform_get_irq_byname(struct dt_device_node *np, const char *name); +int platform_get_irq_byname(const struct dt_device_node *np, const char *name); void irq_set_affinity(struct irq_desc *desc, const cpumask_t *cpu_mask); diff --git a/xen/arch/arm/irq.c b/xen/arch/arm/irq.c index ded495792b7c..16e56f8945a8 100644 --- a/xen/arch/arm/irq.c +++ b/xen/arch/arm/irq.c @@ -718,7 +718,7 @@ int platform_get_irq(const struct dt_device_node *device, int index) return irq; } -int platform_get_irq_byname(struct dt_device_node *np, const char *name) +int platform_get_irq_byname(const struct dt_device_node *np, const char *name) { int index;