Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1120520lqh; Sun, 5 May 2024 18:03:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVkAcsUDfeMHzxzTuk3pferpQhFlTxWwpDuNFmaBhcRNB/y4ugmGq64i6zcbtSxhFrJbnPV+cMNpyPILQQgn0lMDI8IEemvPZkso4G3g== X-Google-Smtp-Source: AGHT+IF7RGHIaP7GjhUiKuN/nzvUeiDC7AgOpPx8MD+rpqHPvME6liAuFTqvapWj4FcNHxHc+OPX X-Received: by 2002:ae9:c207:0:b0:792:6b1d:a161 with SMTP id j7-20020ae9c207000000b007926b1da161mr9086791qkg.66.1714957409407; Sun, 05 May 2024 18:03:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714957409; cv=pass; d=google.com; s=arc-20160816; b=Zr7CoXXiolFoWuMUdNEVS50j7oGn/Js60X4nkmLrPTmiQxhDXu34CKSopZcAyJn2sp nuZTi0NoHwDc2xUbEWMmvRYtI9+dSe1OTtWCosBrP0+sd6Yt6SRQ4oHF7h4sqWHKiQhO c9XPpSdrqyOYKhglraTtHiIWlfGFJg8eCGEnt6P0pDmj4Ktjx8VbovviiFR2QhtB0p+q HiGaQefpobpvKR4XremHm1bUkVzYbFw1HYnspxacpeRQKCVfS9ZPzDRSyy7PTnT0M9e0 RxE6cf1H8mU2vOCKcLiNfgnMLfPqYDx8ouvrQQ1LrGVczGa2XVmitSj/65ZmvYZuR/zs piBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=m5ad+X5mnU1o+1VNes229jlzf4/N/itOm0a7CE8QrkQ=; fh=ZuTjkXDgxp761SuJpv0AZZH44EuE5pRw1zTaPlL6SgE=; b=glvwHICvspEcyrWBZgfyMEKlccFMtA2Qh+P7rUHAv75IKVsLDmqerFJ935gxqoAG5D xvFQUWVqYxE/AXgTpaqZMpPq3gM9/YaWAGwBGWYwAdia1O5iocZYbMDa4CQS8tPuaZgD fJCOz83mmSp7Sip7JGJT7cvZFrCsUz03Ga7IZnTt5Eeh2p71srnygBYLs3YbA4I/S4w0 x3zlxRXthaQP1OypGkJalqpAzi6RAW1NJTJf6y1DangZ5M1BL2pe79IUgL0XlHqS2VQk iQ/PRmGAAZFe2WljvKIuzHzJVgPk4h0fZPrclexi0PHarTHP6qUWXkpTB2lU6d+YagUk jIpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-169216-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169216-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dv23-20020a05620a1b9700b007928d2b7336si3781797qkb.86.2024.05.05.18.03.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 18:03:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169216-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-169216-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169216-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com 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 163101C21020 for ; Mon, 6 May 2024 01:03:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 321DA3B79F; Mon, 6 May 2024 01:03:23 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (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 E97686FBF for ; Mon, 6 May 2024 01:03:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714957402; cv=none; b=NtFpSQVKZjVrG9kKfmDkzgLlrvHIBewvdxGWJ2bBVih19juqgAdFUp4MVoqDcDa/y++xvoveTsPmgzeFf9D2KV3dZsB+2jiNdrWNSpJ18ph9eBSwFco9QRRw9ypk5NP6uQd6NREM2CKplAdsu/sOh1rcnk5XgKvBW3uDGDrIDTA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714957402; c=relaxed/simple; bh=SOd6zG3YGzocMe2eSnAlOoMrqEZAvtmT0QgFko6u+Ls=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=SJlfH5HIrQJMNmnraC4TJJJO8hF2tk4zYoxWirLC7Neia2pPFc+1pFwIy10Iza52psAqRtoMskcCOzfIXwGhp1fAptHoxIos5hb6cmCVyV9N/SPds9YScBXCadPTkCeG6bxYTizpUQetzQDYGovm1EZxJ19a75odVJH0voZKh9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.255 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4VXjk84x94z1RBbc; Mon, 6 May 2024 09:00:00 +0800 (CST) Received: from dggpemm500002.china.huawei.com (unknown [7.185.36.229]) by mail.maildlp.com (Postfix) with ESMTPS id 54A1118005C; Mon, 6 May 2024 09:03:17 +0800 (CST) Received: from [10.174.178.247] (10.174.178.247) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 6 May 2024 09:03:16 +0800 Subject: Re: [PATCH] clocksource/drivers/arm_arch_timer: Mark hisi_161010101_oem_info const To: Stephen Boyd , Daniel Lezcano , Thomas Gleixner CC: , , , dann frazier , Hanjun Guo , Marc Zyngier , Mark Rutland References: <20240502233447.420888-1-swboyd@chromium.org> From: Hanjun Guo Message-ID: Date: Mon, 6 May 2024 09:03:03 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240502233447.420888-1-swboyd@chromium.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500002.china.huawei.com (7.185.36.229) On 2024/5/3 7:34, Stephen Boyd wrote: > This isn't modified at runtime. Mark it const so it can move to > read-only data. > > Cc: dann frazier > Cc: Hanjun Guo > Cc: Marc Zyngier > Cc: Mark Rutland > Signed-off-by: Stephen Boyd > --- > drivers/clocksource/arm_arch_timer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c > index 8d4a52056684..5bb43cc1a8df 100644 > --- a/drivers/clocksource/arm_arch_timer.c > +++ b/drivers/clocksource/arm_arch_timer.c > @@ -331,7 +331,7 @@ static u64 notrace hisi_161010101_read_cntvct_el0(void) > return __hisi_161010101_read_reg(cntvct_el0); > } > > -static struct ate_acpi_oem_info hisi_161010101_oem_info[] = { > +static const struct ate_acpi_oem_info hisi_161010101_oem_info[] = { > /* > * Note that trailing spaces are required to properly match > * the OEM table information. Looks good to me, Reviewed-by: Hanjun Guo