Return-Path: Received: from mail-pl0-f67.google.com ([209.85.160.67]:36472 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751527AbeCTIAi (ORCPT ); Tue, 20 Mar 2018 04:00:38 -0400 Received: by mail-pl0-f67.google.com with SMTP id 61-v6so522689plf.3 for ; Tue, 20 Mar 2018 01:00:38 -0700 (PDT) From: Sam Protsenko To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , Praneeth Bajjuri , Sekhar Nori , Roger Quadros , Tero Kristo , Milosz Wasilewski , Dan Rue Subject: [PATCH 3/3] ARM: OMAP2+: omap_hwmod: provide space for more hwmod flags Date: Tue, 20 Mar 2018 16:00:27 +0800 Message-Id: <20180320080027.8948-4-semen.protsenko@linaro.org> In-Reply-To: <20180320080027.8948-1-semen.protsenko@linaro.org> References: <20180320080027.8948-1-semen.protsenko@linaro.org> Sender: stable-owner@vger.kernel.org List-ID: From: Sekhar Nori commit 390c06828dd22549706946113a0783cb8e2a3240 upstream. 'flags' member of omap_hwmod structure is fast running out of space with 16 different flags already defined. Make flags a 32-bit entity so as to allow for more flags. This results is a ~2.3K data section size increase with omap2plus_defconfig on v4.11-rc2. before: text data bss dec hex filename 8186930 3082444 8252992 19522366 129e33e vmlinux after: text data bss dec hex filename 8186922 3084812 8252992 19524726 129ec76 vmlinux Signed-off-by: Sekhar Nori Signed-off-by: Tony Lindgren Signed-off-by: Sam Protsenko --- arch/arm/mach-omap2/omap_hwmod.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.h b/arch/arm/mach-omap2/omap_hwmod.h index f772f6c77125..c320bbe2ff35 100644 --- a/arch/arm/mach-omap2/omap_hwmod.h +++ b/arch/arm/mach-omap2/omap_hwmod.h @@ -699,7 +699,7 @@ struct omap_hwmod { struct list_head node; struct omap_hwmod_ocp_if *_mpu_port; unsigned int (*xlate_irq)(unsigned int); - u16 flags; + u32 flags; u8 mpu_rt_idx; u8 response_lat; u8 rst_lines_cnt; -- 2.16.1