Message ID | 20250121064519.18974-13-lihuisong@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 67FF1C02182 for <linux-arm-kernel@archiver.kernel.org>; Tue, 21 Jan 2025 07:14:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=NfP4egTfLcm8WyOBLObUFENx5MDBFH7IoZi/jQvUKxM=; b=mSbpqySWTbG5Xx5SAsPoinNF1+ QE4IK/isROBHvvcqsh5cyMPkQukC6mdjx0pzsMomVDpU1L9intC7uEC6OUxYt6ZzWs691hYFV0a8K 3JGa+pIHRD7GRa4pwiVEfZSEWZRQ0KcYXOJCk349DJvyW7NHpWup5xIPsURVHs3+4F1G8K691ry0t gJ0srwnK5p4pHGmcuvEIVb0+m5T6GQNwWoyqqe8L43eQWgbCVEywvdCUIyC+101YI4DXDfcQMqdKI f8PTj9ttqQgXQIqmLujyWY8JQtawU8scJQ43Gh7l/y6U+7GCKfv2ZoYyZsG7Iv0s44u5hEqxkp4J9 ck6nA/vQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1ta8Sv-000000076Mp-3obF; Tue, 21 Jan 2025 07:14:25 +0000 Received: from szxga04-in.huawei.com ([45.249.212.190]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1ta8Cg-000000072k1-1m4D for linux-arm-kernel@lists.infradead.org; Tue, 21 Jan 2025 06:57:40 +0000 Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4YcdGz1YGsz2FcWQ; Tue, 21 Jan 2025 14:54:19 +0800 (CST) Received: from dggemv704-chm.china.huawei.com (unknown [10.3.19.47]) by mail.maildlp.com (Postfix) with ESMTPS id EA2C41A0188; Tue, 21 Jan 2025 14:57:36 +0800 (CST) Received: from kwepemn100009.china.huawei.com (7.202.194.112) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 21 Jan 2025 14:57:36 +0800 Received: from localhost.localdomain (10.28.79.22) by kwepemn100009.china.huawei.com (7.202.194.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 21 Jan 2025 14:57:35 +0800 From: Huisong Li <lihuisong@huawei.com> To: <linux-hwmon@vger.kernel.org> CC: <linux-kernel@vger.kernel.org>, <linux-media@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <arm-scmi@vger.kernel.org>, <netdev@vger.kernel.org>, <linux-rtc@vger.kernel.org>, <oss-drivers@corigine.com>, <linux-rdma@vger.kernel.org>, <platform-driver-x86@vger.kernel.org>, <linuxarm@huawei.com>, <linux@roeck-us.net>, <jdelvare@suse.com>, <kernel@maidavale.org>, <pauk.denis@gmail.com>, <james@equiv.tech>, <sudeep.holla@arm.com>, <cristian.marussi@arm.com>, <matt@ranostay.sg>, <mchehab@kernel.org>, <irusskikh@marvell.com>, <andrew+netdev@lunn.ch>, <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <saeedm@nvidia.com>, <leon@kernel.org>, <tariqt@nvidia.com>, <louis.peens@corigine.com>, <hkallweit1@gmail.com>, <linux@armlinux.org.uk>, <kabel@kernel.org>, <W_Armin@gmx.de>, <hdegoede@redhat.com>, <ilpo.jarvinen@linux.intel.com>, <alexandre.belloni@bootlin.com>, <krzk@kernel.org>, <jonathan.cameron@huawei.com>, <zhanjie9@hisilicon.com>, <zhenglifeng1@huawei.com>, <liuyonglong@huawei.com>, <lihuisong@huawei.com> Subject: [PATCH v1 12/21] hwmon: (hp-wmi-sensors) Fix type of 'config' in struct hwmon_channel_info to u64 Date: Tue, 21 Jan 2025 14:45:10 +0800 Message-ID: <20250121064519.18974-13-lihuisong@huawei.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20250121064519.18974-1-lihuisong@huawei.com> References: <20250121064519.18974-1-lihuisong@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.28.79.22] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemn100009.china.huawei.com (7.202.194.112) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250120_225738_616479_1CC3C029 X-CRM114-Status: GOOD ( 10.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
hwmon: Fix the type of 'config' in struct hwmon_channel_info to u64
|
expand
|
diff --git a/drivers/hwmon/hp-wmi-sensors.c b/drivers/hwmon/hp-wmi-sensors.c index d6bdad26feb1..b0d7c7de0565 100644 --- a/drivers/hwmon/hp-wmi-sensors.c +++ b/drivers/hwmon/hp-wmi-sensors.c @@ -1921,8 +1921,8 @@ static int make_chip_info(struct hp_wmi_sensors *state, bool has_events) struct device *dev = &state->wdev->dev; enum hwmon_sensor_types type; u8 type_count = 0; - u32 *config; - u32 attr; + u64 *config; + u64 attr; u8 count; u8 i; @@ -1961,7 +1961,7 @@ static int make_chip_info(struct hp_wmi_sensors *state, bool has_events) attr = hp_wmi_hwmon_attributes[type]; channel_info->type = type; channel_info->config = config; - memset32(config, attr, count); + memset64(config, attr, count); *ptr_channel_info++ = channel_info++;
The type of 'config' in struct hwmon_channel_info has been fixed to u64. Modify the related code in driver to avoid compiling failure. Signed-off-by: Huisong Li <lihuisong@huawei.com> --- drivers/hwmon/hp-wmi-sensors.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)