Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9192519rwr; Thu, 11 May 2023 11:12:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TETX3HopquZiOnSriF677Ctxx1VYRxJb/rPCRCLvSSETlC4MD8wn1+FUzfmK67ftrWWhX X-Received: by 2002:a05:6a00:1741:b0:646:421f:500b with SMTP id j1-20020a056a00174100b00646421f500bmr22671331pfc.10.1683828731759; Thu, 11 May 2023 11:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683828731; cv=none; d=google.com; s=arc-20160816; b=Iv06ibsmoVsgD+AzthP6Z4Bdwp7zADvxxk/pDFNsJ5IZGhxZd3xkp5kHtqGr9rGk2p pDNXGIHEpaAHhZ0KXz7hxfyYrn7giMY4BtvS8JEB0Pdg3QNXEw4HAji44LeqChfdubu/ elYU3ZYX4PGdVFsoMOv4PRGKMFpcC8rYkFMAoW3D1d2hRD5XLp3KElW4bzo52JtAMPvt WMYMpSIxF0rHHvXbjhNue9VS1pIoT+Ud2IVKhXV+Fl9cox9tyfhIYJtQCVEoj3UEsVCr khVbLmFwugdzZvMPq5z8sK/Pmt0D6CnXtZe0Bu9xgyilyZkTtFI3rWhp7WlA0GTO//ZE WIBg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=uWUkM7YNIz/qne/58Y7txSqq5Dsegg65dFtn1/ZBov0=; b=bfBAr/W2QOVpdhgKJkbsRwvqbI2GpAroVh0LDaN7t1n/cNqWAv1r12pU7qIsZ5ZgUw Obk6kyVBZpcdQXgrnHcl6YkFcCFM9YPeMlsA98LoBwi1QCPlaNCS9euJYokqPK1sW9si n/HC5whYnH5F1NgSzpEkI8kY6B2el6IKL1jEDfL1QI5iR+M+g++TU+4YxsIgy+MQZ/Nl FaPJawQ3x4nJy/d1C0hqzDGZQU3J93kIJu0qR9QX4rCKn9PlC17Km4qOCBEh+2AJQYVh v+BIHhrHyADLTgkGM8R5F2Y15RSHU8sXHolVWYS1Jm9pwUTL5tsGIuVMClO+dV6F8K03 pSpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NnQxm3VU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w129-20020a626287000000b00643fdad4119si8028404pfb.146.2023.05.11.11.11.59; Thu, 11 May 2023 11:12:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NnQxm3VU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239049AbjEKRzk (ORCPT + 99 others); Thu, 11 May 2023 13:55:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239020AbjEKRza (ORCPT ); Thu, 11 May 2023 13:55:30 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24FD28687 for ; Thu, 11 May 2023 10:54:58 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-965ab8ed1c0so1473859866b.2 for ; Thu, 11 May 2023 10:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683827693; x=1686419693; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uWUkM7YNIz/qne/58Y7txSqq5Dsegg65dFtn1/ZBov0=; b=NnQxm3VUs5u45jP+g9SmyDYRELyxfT87OPA2PzDmnu8TidwO21XH2U805f1ygs1p2H RKFtNsKPzDZQCEpTU7NZM2VRK87OPOpcehrjU0Fn/+mcxsaFejQoQJzJO7uP4F9gUTR5 3D/r1a8rDo4rvjtEIJ8M1a7bxNDGi2ZFEiq7tpvmKr+BgGX6IiyxfehvfVbiwrzkCVru 86fsw4NoiluECssqJVajADt01aY2sy0uZjpBho6onFfyqBARxqPBSKTZc8zhmfKoS1ZW LuWvaJpLPKLk+P9zOyoq9LX16U9jo5qJaE5mhRhPmOtePVBN7Ob+FwASLFsz4F0Ons2r A5lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683827693; x=1686419693; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uWUkM7YNIz/qne/58Y7txSqq5Dsegg65dFtn1/ZBov0=; b=HA1LLkUn1Ptnj1NCxTDixZKgzYwmMxJ5StQqs2FBK6KzI2fQxrDJU6VPB9h99GrWD9 NqnYT0B1nGceoViLVEKLaKRvvnj4xw1rjcMk7DC+Em7WGyr/2p6h6T/N7GuQcFDm+E0Y M3GRme5oEs3JO8MObSAYQefHpwDVMIw0sxHEV8nPPQ+IdC9N5oRoHnm/f17J1YxxeUeS lmmE6njLPMctctKC71sNPDszgtBiqOt2iIxoSAFUG2Dcghjmc0A0KwkpY9EKGL+/UsV5 l75zGuPEN8tuHM+t4z7Dg+AQBBG5f5Ok4fOG6WHAuIVa+7CeDNtyaMYIe5nnuOrQoOBb T8Ig== X-Gm-Message-State: AC+VfDwZPzgrRL+pAic9bDkhybX/dcU/4qirdAoqmiT1mmno1ckE8MAW R+hu0hT4DGf96GUfbbNTcHqw9w== X-Received: by 2002:a17:907:5c5:b0:95f:56e8:1c3c with SMTP id wg5-20020a17090705c500b0095f56e81c3cmr20269767ejb.17.1683827692748; Thu, 11 May 2023 10:54:52 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:d7cd:1be6:f89d:7218]) by smtp.gmail.com with ESMTPSA id j2-20020a170906410200b00965c076133esm4354527ejk.176.2023.05.11.10.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 10:54:52 -0700 (PDT) From: Krzysztof Kozlowski To: Alvaro Karsz , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RESEND PATCH] vdpa: solidrun: constify pointers to hwmon_channel_info Date: Thu, 11 May 2023 19:54:51 +0200 Message-Id: <20230511175451.282096-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Statically allocated array of pointers to hwmon_channel_info can be made const for safety. Acked-by: Michael S. Tsirkin Reviewed-by: Alvaro Karsz Signed-off-by: Krzysztof Kozlowski --- drivers/vdpa/solidrun/snet_hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vdpa/solidrun/snet_hwmon.c b/drivers/vdpa/solidrun/snet_hwmon.c index 42c87387a0f1..af531a339082 100644 --- a/drivers/vdpa/solidrun/snet_hwmon.c +++ b/drivers/vdpa/solidrun/snet_hwmon.c @@ -159,7 +159,7 @@ static const struct hwmon_ops snet_hwmon_ops = { .read_string = snet_hwmon_read_string }; -static const struct hwmon_channel_info *snet_hwmon_info[] = { +static const struct hwmon_channel_info * const snet_hwmon_info[] = { HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_CRIT | HWMON_T_LABEL, HWMON_T_INPUT | HWMON_T_CRIT | HWMON_T_LABEL), HWMON_CHANNEL_INFO(power, HWMON_P_INPUT | HWMON_P_LABEL), -- 2.34.1