Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1558705pxb; Tue, 8 Feb 2022 22:15:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5eYd2p0lATw8q4Cg5Or0gZSS90QR5SlRfh+P/6SmYOabWUL9CFQ27CClt7OdyiAAhR6v7 X-Received: by 2002:a17:902:b789:: with SMTP id e9mr668903pls.31.1644387325628; Tue, 08 Feb 2022 22:15:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644387325; cv=none; d=google.com; s=arc-20160816; b=d61Imd2iqh61be0F33ju33lwEcCwYx5Sksdrqvw0EHX6yAI/yWLI5zy2RFhck7z4LQ 31j714K5tSdpSVIeh5OW6vmdxys7wfHLDUbw9mcGU3hqHRzTcg6sX76eF7haKR1yUrgA GnY64w9yOuPQwaLePML/0/7anCykiWh7HKTHcLGlsghdCd3cd1joiLaz4N+lB8/onFv/ aUY1ISsSOh/SMwi0AuuUlZDbbwmlOCvYBEDFOq+luHRHQsjcFd1eycX7ivd7A5zDp/sb zghrOh+DFckc3oP/iYM1UC2D3TZLsyJvg8brgMppLC3Lu34RuOzBBK7mQioxT8jralnZ rHPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3/Udx6MddBj6XcwtiKZbyxOoOI1dz9F34GThp2Ze/lo=; b=ZcqkZrvxAdnJGe2apQUpTO4GlM9z8pB8ASaf7qHznxk0pGmn4O7mk+R15hNj5egYS2 BSp2uMHmkk563G0dYTZlz/qXbbEHfqRgZsJi7Cj1vuy0+DFoFbowXOKC4Hhlrm1CPWdE R2JlromufXvvyyoFT+DvXLpaF8eKT9CzJL7B1kMDN+UqZZxquk/eIC/ngw9l8vaZjifi kjk/1zuNm4u9lWsdJWns6Cx8M73nglcf3+C4mE6ohNbvepTdlcz0w1nMAC3HnSzuoyLX oi133YplXtCHXZMNioZUBQ8JMkUuD4iEQLZAkSiWOK3+jqL0qn9xa31RsPCVlfUW7Cm9 EMwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jgnmEPVa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s192si14375832pgs.424.2022.02.08.22.15.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 22:15:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jgnmEPVa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1D82AE03496A; Tue, 8 Feb 2022 21:57:52 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237589AbiBGVSd (ORCPT + 99 others); Mon, 7 Feb 2022 16:18:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235889AbiBGVSa (ORCPT ); Mon, 7 Feb 2022 16:18:30 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E7E0C061A73; Mon, 7 Feb 2022 13:18:27 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id b9so29396740lfq.6; Mon, 07 Feb 2022 13:18:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3/Udx6MddBj6XcwtiKZbyxOoOI1dz9F34GThp2Ze/lo=; b=jgnmEPVa6cXu53T2QFDLqTGX7FoYOgHfXmNdJdqJeFWrKmoj7EEmes0Yldm25nEznu XFhERP/WQxELdmBp7V9+WQC1ENa1yFryCZbBptkZZ7fHbsUToR/l69i7YugmMi9byOcD QAwJBDKffCF4vdaeXLPjucidYmE1JBAq4NgMJ6JA520GwIgid00snN3MgctO7mUUI4Z4 wRySp0shp/0c0D367Vh0ZFLEpDygTAJzre3uIrnUIj3I5OHULJNLpBXD8E824Ro7Slmw m9sHBrArwb7cLOViCSp9CdOa4+fQBPzNK8WSTpFLXEqVrMGPqtKQFqX2lT9bWFEgohDO qEMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3/Udx6MddBj6XcwtiKZbyxOoOI1dz9F34GThp2Ze/lo=; b=yhC+UmhcRBR1H38I65vpLZAVqpyuzjwGJTP2VygaecGRYMjnfGZwyU9NcsS7ayBinU zeHMuOv8DngfZHij0qWE+wl0pv4qA5i6DqAi8l4Iq4oPe9ctdKJmeoCuS4x0tr58nIde ccas+BE/cAJzLxeJRhFhl412wM/j3gGcXkazLhdD1/1XLGv6s+wH/frzsuIWYNx3j5gP EjgY7tzj9U4Plou5R0tkyU8k/RPDlQKnTAZAbARp+QWlBsBhhKEGhfnc7KwTMmZaU63c mLRU3jcRKlsloTGZq4fD5cC8U9cTgTpSINYfBw7rZP0GWpUcbi0YCtt20E17xYEszeN3 xI7g== X-Gm-Message-State: AOAM531UHj+ylmQeiIFLDTJ9FYASVA6xRhnsZlAlk0OsuhZxTEEmGKeK 6nppPxTJKRAr/ZhOXuK7A6g= X-Received: by 2002:a05:6512:131b:: with SMTP id x27mr479943lfu.96.1644268705666; Mon, 07 Feb 2022 13:18:25 -0800 (PST) Received: from localhost.localdomain (h-155-4-221-129.NA.cust.bahnhof.se. [155.4.221.129]) by smtp.gmail.com with ESMTPSA id s30sm1637978lfp.93.2022.02.07.13.18.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 13:18:25 -0800 (PST) From: Rikard Falkeborn To: Thomas Bogendoerfer Cc: Marc Zyngier , Mark Rutland , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Rikard Falkeborn Subject: [PATCH 2/3] MIPS: ath25: Constify static irq_domain_ops Date: Mon, 7 Feb 2022 22:18:15 +0100 Message-Id: <20220207211816.57860-3-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207211816.57860-1-rikard.falkeborn@gmail.com> References: <20220207211816.57860-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The only usage of these structs is to pass their address to either irq_domain_add_tree() or irq_domain_create_linear(), both which takes pointers to const struct irq_domain_ops. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- arch/mips/ath25/ar2315.c | 2 +- arch/mips/ath25/ar5312.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/ath25/ar2315.c b/arch/mips/ath25/ar2315.c index 76e43a73ba1b..8ccf167c167e 100644 --- a/arch/mips/ath25/ar2315.c +++ b/arch/mips/ath25/ar2315.c @@ -112,7 +112,7 @@ static int ar2315_misc_irq_map(struct irq_domain *d, unsigned irq, return 0; } -static struct irq_domain_ops ar2315_misc_irq_domain_ops = { +static const struct irq_domain_ops ar2315_misc_irq_domain_ops = { .map = ar2315_misc_irq_map, }; diff --git a/arch/mips/ath25/ar5312.c b/arch/mips/ath25/ar5312.c index 822b639dbd1e..cfa103518113 100644 --- a/arch/mips/ath25/ar5312.c +++ b/arch/mips/ath25/ar5312.c @@ -116,7 +116,7 @@ static int ar5312_misc_irq_map(struct irq_domain *d, unsigned irq, return 0; } -static struct irq_domain_ops ar5312_misc_irq_domain_ops = { +static const struct irq_domain_ops ar5312_misc_irq_domain_ops = { .map = ar5312_misc_irq_map, }; -- 2.35.1