From patchwork Tue Mar 14 12:07:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 95290 Delivered-To: patch@linaro.org Received: by 10.140.89.134 with SMTP id v6csp228142qgd; Tue, 14 Mar 2017 05:07:27 -0700 (PDT) X-Received: by 10.99.56.23 with SMTP id f23mr42360119pga.167.1489493247821; Tue, 14 Mar 2017 05:07:27 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t5si14579730pgj.171.2017.03.14.05.07.27; Tue, 14 Mar 2017 05:07:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750774AbdCNMH0 (ORCPT + 4 others); Tue, 14 Mar 2017 08:07:26 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:57518 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744AbdCNMH0 (ORCPT ); Tue, 14 Mar 2017 08:07:26 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v2EC7LWf012953; Tue, 14 Mar 2017 07:07:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1489493241; bh=zpRnQsVKE6NWcdayDffSOblMUwlcsYDYRT9t+RPFyXk=; h=Subject:To:References:CC:From:Date:In-Reply-To; b=BSQZAEf43giiDJo588Levro/qu+H2xPl3pj59Ta80cItmMLqfOhlxceq25dVgteCx 5hP3QVtVZeLpFZiL3Vt1rSGYWDldBzJKttxXSuHv46ZCYwKXYARszOUd2RBlE1a/Qi Wxrwi7Odtw9AUQKBMmX2XD7Dv2hNXw0gSFAn27Vw= Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v2EC7LsK013777; Tue, 14 Mar 2017 07:07:21 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.294.0; Tue, 14 Mar 2017 07:07:20 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v2EC7I4q019819; Tue, 14 Mar 2017 07:07:18 -0500 Subject: [PATCH v2 1/4] ARM: OMAP2+: omap_hwmod: provide space for more hwmod flags To: , References: <1489405996-10718-1-git-send-email-rogerq@ti.com> <1489405996-10718-2-git-send-email-rogerq@ti.com> CC: , , , , , From: Roger Quadros Message-ID: Date: Tue, 14 Mar 2017 14:07:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1489405996-10718-2-git-send-email-rogerq@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Sekhar Nori '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 --- v2: -Updated size metrics for v4.11-rc2 in commit message. arch/arm/mach-omap2/omap_hwmod.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/omap_hwmod.h b/arch/arm/mach-omap2/omap_hwmod.h index 7890401..9e1c4ed 100644 --- a/arch/arm/mach-omap2/omap_hwmod.h +++ b/arch/arm/mach-omap2/omap_hwmod.h @@ -698,7 +698,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;