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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59C5AC742A7 for ; Wed, 8 Mar 2023 09:11:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229996AbjCHJLG (ORCPT ); Wed, 8 Mar 2023 04:11:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbjCHJKn (ORCPT ); Wed, 8 Mar 2023 04:10:43 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F1539E30D; Wed, 8 Mar 2023 01:10:40 -0800 (PST) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0020A6602F64; Wed, 8 Mar 2023 09:10:37 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678266638; bh=oZpxuChfh/t93Mus5+/9plHeSiSfNTCOmsCVmHDTRow=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZNstprf46gnbu3obY8tXh1p2qMlk2DtYmHthKlfqRykaK6NM2aUOcP2VznPB3R0qB IRGUT40uSg9UyFv7Dt++qtcPs3In4Nj6OIZvFcJEWuf3ry2m2OHtFkgMyJUBLQk/T+ DJNuKK+N6lXz6dIdOVFmC461HTj7zTcp6sw5Kab3pdhh01val6h0RXORYTSQcahHXK i0IyuLp/1DdBTxxYaSCv3wefK73B5zD4dSDdnf1YFm/POgP2JPUk/9GDZKjhwg8uGE r5npst+gdkx6SpXe/A8qlp4FwwaAHB/fZD+C3TxOGXdiDhPOM8ZqIDhfyhNZMe0VqN vzqnE/r6E/nng== Message-ID: <1af76fd0-ea27-da60-cd22-8a65a8ef369e@collabora.com> Date: Wed, 8 Mar 2023 10:10:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] thermal/drivers/mediatek/lvts_thermal: fix memcpy's number of bytes in lvts_calibration_init() To: bchihi@baylibre.com, daniel.lezcano@linaro.org, rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com, matthias.bgg@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, rdunlap@infradead.org, ye.xingchen@zte.com.cn, p.zabel@pengutronix.de Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, khilman@baylibre.com, james.lo@mediatek.com, rex-bc.chen@mediatek.com References: <20230126161048.94089-1-bchihi@baylibre.com> <20230307134245.83599-1-bchihi@baylibre.com> Content-Language: en-US From: AngeloGioacchino Del Regno In-Reply-To: <20230307134245.83599-1-bchihi@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 07/03/23 14:42, bchihi@baylibre.com ha scritto: > From: Balsam CHIHI > > Replace memcpy 2 bytes by sizeof(int) bytes of LVTS calibration data. sizeof(int) is architecture dependant... please use a fixed size type instead. Also, shouldn't this be u16?! Regards, Angelo