Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp129920lqo; Tue, 7 May 2024 14:43:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbMtfY29MwzZA9Wp0mQH9qs2k0TX1FlFn03z+JUKhAdYUkFiM14p8c4mi4D/K1o9+thm3mCL5jy4ZoqnblHgrWYaN9UpDskyWcX8hsjw== X-Google-Smtp-Source: AGHT+IF7UCSxvac1j8x0w6ZjZMWnrCKrvZXtiJZf97wBJQmkAytGxSxOB49M2kZ9myhqmM5lALKH X-Received: by 2002:a05:6358:3205:b0:17f:8815:ef23 with SMTP id e5c5f4694b2df-192d2e55033mr115083555d.10.1715118238140; Tue, 07 May 2024 14:43:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715118238; cv=pass; d=google.com; s=arc-20160816; b=hVQ/SW1Kv1176Y+wTSNiH5Vm2GEmZVOwG1MS9N+wAtvQSfbnm/W7+mDSOkOTGkBxYK YTP+SMigJYsXk29k8m1I4ieSSm4lO/nQ3I65XiqyaeKqkY8FGb5QNh77qAXrevYTZFbj f0+Yva8CliYnJAzjHFftlZevPIS8rqdXyk9BpZJFLpSm4rwLIDlPUxwZKJeORZvZ7+cC LavvoxPsdW5jK2O3+gFx1VX4DvfnlFH3ALkf5JMdckoiBaJf0j1zXoD9sFVllw9yMPRb C4w8wl/4zZ1j9+HsvhK08TOd35rL4THs8uHtHcpqRaB01hRN4lxPGcfSFQGooJZ6FGDd OpIg== 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=dPjYXbBGoaNmBH70GuuSxMS8mJuyYhtqJ5BS72t4bnA=; fh=oLL3bG/ubaEVe/2cRshgf4xj15uJqUcdtBo42gNth84=; b=Xj9ewOObbELlLGrqNqFjfqrYW3KpD/9bkWreRyhKdfPRtxFDpHk2M0i6iX5yABL6Re VNTgTTc91g4i6LJa6GgbBhG3Ml64ba1mueqARZi0yvn10Vu50MyvNw/hRtdllCYr6ZRe VNfER5nCKJ+l0qSqOEV989YRCcQd7v1d12rQ00U2zR3PPSSReBp1iMvYSoFrb0oSbIzG 97alEPa2B4ZF6KwsyMR7a4zu8/SKglymQ99Vo/6oJBa0wlxT4XnCJyklQZ7+0ToeIL4U qfAG6F6vgBBULA//kkXgkZIv5lPneYCdAFpFdGxrEzLYWjlKrBv91706UjeYYlN1LqpW YJ6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=d4AVzzIp; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-172223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k6-20020a636f06000000b005f3cebee887si11750984pgc.483.2024.05.07.14.43.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 14:43:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=d4AVzzIp; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-172223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B91C328312B for ; Tue, 7 May 2024 21:43:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87C1678C70; Tue, 7 May 2024 21:43:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="d4AVzzIp" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 E69E575818; Tue, 7 May 2024 21:43:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715118228; cv=none; b=Xe+9zL+RrGL0gNw5cJF/2RH69ykN2zo/0DcNzfswLutiYxY/RqTYg6LRCGNOMIF2Ft5RAc/8IWPXUFT5pSHQwtyjWv/7+68fi+YVmV7KLQaphaykUoYs/DzD3cWjs4MIzlA8dj/DwkBlQaPlMkQ7cgvlYUzS6rr2zeMC99lkTYc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715118228; c=relaxed/simple; bh=9KUEQCcJ1WRlrmjnwhcCpsj0qPYhAXWExZXMwhhWK8o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NkAN2yalXpKPpm3ff7qmszJDy0AqOd+dE4508itAcRcZ0MShvA9EnXiFFfbmm6dxBC6aMCy5LUyOs5vHjh7VUQLYwYSvuTEkMlL7vubjzWLT3Y+uQkJ8sS/kQ9AWyQssUXlxr7aWTAfeLvjJuvLACwWYo8Yxwlf44IGIhS+ObYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=d4AVzzIp; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 1031AFF802; Tue, 7 May 2024 21:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1715118223; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dPjYXbBGoaNmBH70GuuSxMS8mJuyYhtqJ5BS72t4bnA=; b=d4AVzzIp9+jyKXOPkEkGKyCL+1qTxCaj7aUYrDh//VpAuomEBZnbkOdhJld+r3p09VhcrF YzTFpicEaYauND6ndIrPVS53uL/EyHMZ/j3lphnlSjuBDdrIr+kihFEama0J3ku2cvOTPN X28/JGsPHo0ked6jTCV8PlGk3mAYrKQZ023dg8YlDOVxaEBBugHzyoWJLxweSVKO7jxc3o +Hh1no4Mo/KAEK4RZJ7dsyxBCj4zLk3KqxK1wsNietGwNxYzRcaXgQ5LAJDDiurq1ps0Sx gFGN87h8CXT2eW6eNXGWjV1yicFkp4vOWHOeGm2t/V3gwRA+nGG7+vpOGiYxXw== Date: Tue, 7 May 2024 23:43:42 +0200 From: Alexandre Belloni To: Christophe JAILLET Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH] rtc: rx6110: Constify struct regmap_config Message-ID: <171511816313.992987.6441539046108137631.b4-ty@bootlin.com> References: <833a7f612c0de9dcb1179a0b75b189c237a335ac.1714862560.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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <833a7f612c0de9dcb1179a0b75b189c237a335ac.1714862560.git.christophe.jaillet@wanadoo.fr> X-GND-Sasl: alexandre.belloni@bootlin.com On Sun, 05 May 2024 00:43:07 +0200, Christophe JAILLET wrote: > 'regmap_spi_config' and 'regmap_i2c_config' are not modified in this diver > and are only used as a const struct regmap_config. > > Constifying these structures moves some data to a read-only section, so > increase overall security. > > On a x86_64, with allmodconfig: > Before: > text data bss dec hex filename > 8896 1554 32 10482 28f2 drivers/rtc/rtc-rx6110.o > > [...] Applied, thanks! [1/1] rtc: rx6110: Constify struct regmap_config https://git.kernel.org/abelloni/c/6a216cbadbe0 Best regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com