From mboxrd@z Thu Jan 1 00:00:00 1970 From: maxime.ripard@free-electrons.com (Maxime Ripard) Date: Mon, 3 Jul 2017 23:29:43 +0200 Subject: [PATCH] drm/sun4i : constify drm_plane_helper_funcs In-Reply-To: References: Message-ID: <20170703212943.g2i2c2x5w5jwva4c@flea> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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. > > File size before: > text data bss dec hex filename > 981 40 0 1021 3fd drivers/gpu/drm/sun4i/sun4i_layer.o > > File size After adding 'const': > text data bss dec hex filename > 1021 0 0 1021 3fd drivers/gpu/drm/sun4i/sun4i_layer.o > > Signed-off-by: Arvind Yadav Queued for 4.14, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: