Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp648604lqj; Sun, 2 Jun 2024 15:59:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtk9ZVKuQu2+NHGH7dEClyVPoxGAyYZ0VOYzsbIaU39r4REf8SejVLCnyEYxsMmcG2n1wykCJ+vvCUOXYAy/pSaeFf2l9r1rmJzeGnkQ== X-Google-Smtp-Source: AGHT+IFVjxJHdcuaGUJXVzfzI0TRJMJtgByYaQjBFF1v+engk2srLiN2GtfI+ErS+maVlINl8j5w X-Received: by 2002:a05:6214:4384:b0:6ae:4b44:bc24 with SMTP id 6a1803df08f44-6aecd468640mr153673586d6.10.1717369193942; Sun, 02 Jun 2024 15:59:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717369193; cv=pass; d=google.com; s=arc-20160816; b=Rb+GUTpvozxh3jYRU0dT4jWlo8/+8JMGFMk/K+7789fKtFqR7syOzJGlJIar/GfQuY c5qIKSE30pkUayM3VStVjoSfYvjJDFV795ZB5A0TqMykru6iaqN6hdP+n27eiksMaAL6 aYJcZdhNjc3QZ4qTk/Xm+Xw0tSjDFANf7DSG6z6LSR2eUQMdvkF1xua3NGFxwfjn4UJp x5arjbqwzzE0mv06tTASsFV0tph5RnYRO67unz7H8VZgOdYZQ35TORzuGNM05FyYe2y8 GYLXq/S/dc0oTebydN0HRfwxky9UhcxVfqpQutoDMaglwtLdsrWuReNP2IqRDUaZq5Mz zQqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Vgz5Yhe7jSxxQC2hdhHj6CXGwU33aP6mTmuqhRfJa14=; fh=zRp7JvHeJytFkRPaytRL0oQsyvf9/ozoqX0nfE0Rf6o=; b=zH+DWl/yJ1ls+JvSxADU1ommuHtsorCBLYFRTiQJKEc2tbPi1AgljQtMEqDwQmw3/M QtM0UqELJ8IPG9t0uhmJ/g0fa/uz+qG+ysOIGNR4TjsRwH4RpQeIET1JAAlvgFYPzgzb dtOJ9gwlFt8F4bKZ66paOxWQuAL2YkdEpD57hAsx4Z7gPI0FdfE1lKhXng3w6xhkV70a Cux+ZFH9zkgIG+BGJS8f1jbS1NrBeDSsH6RxM4OL1gddivqdcRJ3L1qwIdRZR6OHdH6N DK07zU9t3kJ4qPhWxNgRE9CC7GvyUdaOs2AoEhEpG/6VsSuIzBEml3UUVneYowXY5fA5 1ygg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Xt5lKAa2; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-198467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198467-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b40236bsi57351156d6.230.2024.06.02.15.59.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 15:59:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198467-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; dkim=pass header.i=@collabora.com header.s=mail header.b=Xt5lKAa2; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-198467-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198467-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 AA7D91C2096C for ; Sun, 2 Jun 2024 22:59:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 894E67BAE5; Sun, 2 Jun 2024 22:59:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Xt5lKAa2" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 29005364A0; Sun, 2 Jun 2024 22:59:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717369182; cv=none; b=uMlj60pGs3vHEOtccBClahwSUzsu6qpgiLLKIVvrhKftKQy/IWCE7i44pqLpEeVmgk20JVk+pAFEQnQXHUs403L7cFNlxH3NEPjeR54TkNwUMqDiMy4SPoe6mB3audwTWEqg9YBZfE0TXAuhDaKquogkLr0945GnYqkVY/5W8GU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717369182; c=relaxed/simple; bh=yZcI6Fr8DY8YGyk+xlFWtHSX7RVfsv9IYwtg1aNm3Dk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RES2nGOW5ZRGBMfrxmThWVhD9YD98GmveiRoroPSSW6kHyiwK+o6dYLhRYPNBETff4NfU8NjFD1nUyrtKDj+WNfHFmqkeWdyEFhsHBpJZj1MWSCpiP9g00LXwhjwH//Y6Nm6LWdo1hQxETiayaQly8saacAzZnEWiW6HkkBR7mM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=Xt5lKAa2; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1717369179; bh=yZcI6Fr8DY8YGyk+xlFWtHSX7RVfsv9IYwtg1aNm3Dk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xt5lKAa2N3tMMEZAl/UW+f8Y9W7VPr9vSsAoFdDCvYdq7/7ONk+5XwqPQQZPY0ot6 5JRK43JEAp+dK+V8rndrKJk+I+TZp51YC4b0XStY+NlFZNQSMHsilaapsMrc3HTn4N kJoiaCyqWwwkqVeR8koopAbzsC+KCq8pSecRJpdMRezPtF6j6pPiLEsMK9pkV04rMY TSw0Sv82U+xAPsfe64NT84roQmjr8zEloSbBU92/+ciGrQLEmCQFst39g1blURMM/S uC250+2l0nJg0QgYl9UgqsR9pnXHVWBlRhuoqJ1TN798kf2Nbi2t2NfWSth3ST03tY akWNdkKgI/NuA== Received: from mercury (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 517FE3781116; Sun, 2 Jun 2024 22:59:39 +0000 (UTC) Received: by mercury (Postfix, from userid 1000) id BA19B10611D2; Mon, 03 Jun 2024 00:59:38 +0200 (CEST) Date: Mon, 3 Jun 2024 00:59:38 +0200 From: Sebastian Reichel To: Christophe JAILLET Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 2/2] power: supply: samsung-sdi-battery: Constify struct power_supply_maintenance_charge_table Message-ID: References: <02c6ad69a3ace192c9d609b7336a681a8fc7ba94.1717253900.git.christophe.jaillet@wanadoo.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3s5fgqs6cwwgl5ak" Content-Disposition: inline In-Reply-To: <02c6ad69a3ace192c9d609b7336a681a8fc7ba94.1717253900.git.christophe.jaillet@wanadoo.fr> --3s5fgqs6cwwgl5ak Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Sat, Jun 01, 2024 at 05:00:29PM +0200, Christophe JAILLET wrote: > 'struct power_supply_maintenance_charge_table' is not modified in this > driver. >=20 > Constifying this structure moves some data to a read-only section, so > increase overall security. >=20 > In order to do it, some code also needs to be adjusted to this new const > qualifier. >=20 > On a x86_64, with allmodconfig: > Before: > =3D=3D=3D=3D=3D=3D > $ size drivers/power/supply/samsung-sdi-battery.o > text data bss dec hex filename > 4055 4584 0 8639 21bf drivers/power/supply/samsung-sdi-= battery.o >=20 > After: > =3D=3D=3D=3D=3D > $ size drivers/power/supply/samsung-sdi-battery.o > text data bss dec hex filename > 4087 4552 0 8639 21bf drivers/power/supply/samsung-sdi-= battery.o >=20 > Signed-off-by: Christophe JAILLET > --- > Compile tested-only > --- Looks like that compile testing did not include ab8500_chargalg :) Fixing the error reported by the Intel bot should be trivial (i.e. add another const). When you send a new version, please also Cc Linus Walleij . Thanks for your patches and greetings, -- Sebastian --3s5fgqs6cwwgl5ak Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmZc+VMACgkQ2O7X88g7 +pqjYhAAhWSnuCwUT8O+ov/tnAB82dz8t+GhKdxleL0ha+zqLdnA5j21cbUVOULS TRbokpnIOF5CHcoOYxsWCrKwM3vZvQ9ptLNCtCxe4+c7S13gfahv5UDYNzCyL2dF Z+9Ta5Lf2okzv/qsw+FO4uAcVhrUz2PpZ72BDsWBYWqWlHjd/vCGrTZ5kjwknHIz tbC2ql/YVQPcPau9ZAM5aOjeiDQqc+QL8e9D8aGAGokoWwx1LqW1AO7H+xUEb8XX NM7v+pOercZXQdC4hoMHwFdkyotJYRAZQ4TdRtfMC9Itt83dPzERoMKirQWtDsIG FuXfuQN4fAQH6S2vix1gkoaQjL3pHiVmay/ujUcLYA/iYVvC2u3nCwqcig/KDHFT 3zaLdrs7L3WVeLlMVVYxuJ9JPzR2HEk+cBQrkn3ijf82VI+JzpdnABpAN2eydEuH uzOTZZXHDRoRL6rqLHEa+rFWY8Do3PiaHGWZSiWyCt1BahgDGd0jT3ElJ2IAJr8T 7YXNxqGB6UujJGiO6CEiY96u0cQMeAuDx4mtxSgihIiAOyiHD3nwk3jDCeXIqfsT bHKdnCJg0IjgQE8l3F7ew69iZPT7vHp9vxeED4boWcCeqkCD4ARZF1jiNsLT7p8Q KNhOHFVm93cOmENyRPKoRDFwThz+ZA5G9v4EECP9Bo0ayvcyPvA= =z3Sd -----END PGP SIGNATURE----- --3s5fgqs6cwwgl5ak--