Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752721AbdGCV3r (ORCPT ); Mon, 3 Jul 2017 17:29:47 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:56626 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752406AbdGCV3p (ORCPT ); Mon, 3 Jul 2017 17:29:45 -0400 Date: Mon, 3 Jul 2017 23:29:43 +0200 From: Maxime Ripard To: Arvind Yadav Cc: airlied@linux.ie, wens@csie.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/sun4i : constify drm_plane_helper_funcs Message-ID: <20170703212943.g2i2c2x5w5jwva4c@flea> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mwzffioplc64dogh" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1868 Lines: 53 --mwzffioplc64dogh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 03, 2017 at 09:35:20PM +0530, Arvind Yadav wrote: > drm_plane_helper_funcs are not supposed to change at runtime. > All functions working with drm_plane_helper_funcs provided by > work with const drm_plane_helper_funcs. > So mark the non-const structs as const. >=20 > File size before: > text data bss dec hex filename > 981 40 0 1021 3fd drivers/gpu/drm/sun4i/sun4i_layer= =2Eo >=20 > File size After adding 'const': > text data bss dec hex filename > 1021 0 0 1021 3fd drivers/gpu/drm/sun4i/sun4i_layer= =2Eo >=20 > Signed-off-by: Arvind Yadav Queued for 4.14, thanks! Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com --mwzffioplc64dogh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIbBAEBAgAGBQJZWrdHAAoJEBx+YmzsjxAgxZkP+JiaK8DU38kpFZzDg5x9VBdD pQ2sy94wDXl/ujGQ4LauG4Y/RsvAHfgTjQuw+S1eVsU/9xExhTTPSE+dvW9zCfuj Z6OQaoklt7ZRbOud8CYiSJ9O7FiPboVPgrln4iuL++YC5XnV9FOxBe+q/xr744TH vLrp/pJDqBvKVjs+ocCr67JJz0OZv1M0eTeTKE5Nv/wZVmsHEOlBkym5Uxb3dPfU 6kzsX+nvjM8eauT+4WomX0wyOSbgzvRN+wqJuW2xVQY+dmMr7T20Y+SCWtLBro44 V4WR7uuBC6zko3rDezH/ueI8BHIhouuBb82EW+lt6Qy69KcFC109OStTgNBufq+r x0ORmFZBlfDJ32jihY6G/SASnRsTNyM+zztuXrsAWTNzVfC5Hs9vmg5kyfFiq2X2 PDxpijGfCBSf54cmBfMoo5VCdMCMA2WLMACkYecPYS2bQTcSv6Vi9rfCKozvm4Wr E87AnmTpVXs2f+0xunQbt6l/Fy36OnqBTza/L9H1ZJv/DX4yGMUGieKFNpX3b+0Q xmNIOZOQ/mJZEsim/X/xPL3uoHljb6BU72hb89WoE/cfhFH3BA13U+fFLjEPblVs t9a9Z8/jJUBBtGL9oEewgRldg0RCew/u0S86Dh/aIYV+hiYr3dD1jqUYVICoN7G7 K5WWetpwB70nmz2RtZU= =z2XC -----END PGP SIGNATURE----- --mwzffioplc64dogh--