From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3FAAC2B9F4 for ; Fri, 25 Jun 2021 19:23:27 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2B98A61973 for ; Fri, 25 Jun 2021 19:23:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B98A61973 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D900382C64; Fri, 25 Jun 2021 21:23:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="n+MXN0aS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6AEBD82C60; Fri, 25 Jun 2021 21:23:22 +0200 (CEST) Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A53E282C32 for ; Fri, 25 Jun 2021 21:23:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=aford173@gmail.com Received: by mail-il1-x136.google.com with SMTP id v5so10686302ilo.5 for ; Fri, 25 Jun 2021 12:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=moE/E6Aj6L8S/rbvoHvnXetNFl+kzXSDmYhGcHRGDzc=; b=n+MXN0aSBeQoVEgkicMpVAnyYV/XSza+7pL5uj2+x88Ats6RD5UvZgByIZN3Ddknym 7KWepmvxAXfn75y4NpIY96ukpDpgd2zxFAdOVE6a/wXm93/eo5EvdGY0yIt1ex5g3rXq DIULSCLIaErIH0HXrJPm4eiO8+iHk7jpDKO+SZL8WSCyXaSFvWzG/Gc85cd4JIs4sEOQ NnnjVPJ6tPg9hcemMiqLCtV5vdCA93ePk/aWwE2sbPG7F2uqKUh3h/gg9d5aBgXpZOXs WZL7K4W6Vlelv1Obb7451SiAvoUH7qHrAti/ntRXyIErOVXoLHuKc0nIJ1RFCTPwyTOR URBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=moE/E6Aj6L8S/rbvoHvnXetNFl+kzXSDmYhGcHRGDzc=; b=ugxcV1k54HTCNnLGhnqMJ7lb1Ck3h5LN9qBNKFBcnnxc+ZblUal6aUWTBrJyaOv/j/ pVPgf8Vns6JODKlzgXgtPUmV/WTZlCw29jSunEmpM8r6p7/9ZR/O3OSwTvmqzodwiTes fwColtPMRUczBzXxyIEgBVT9PYt/hsEeP0hem7oLtRbZS9xYyEsJZaZAsg7xouJno36Z YIgBQS8rL3ARZfNm7VpAryPl2dWJxEPOSgA4APAe1PFUxCabElhL5Gz7Dyoqifjcp37e HqLNzdidibZK+U1eIS+Oee1Jb9W5Ax8NCoh+heKlXqS5VklGjSObMyZ6rvpidCN81rrL 9yow== X-Gm-Message-State: AOAM533ZHWsQjG/eMBrqD0i2/5b1KcZDkdWFkn8ApMD7VyPiW+6HlO9W 0d8VBt5qHBWIpcirbrbY53hf3Y/JydQakg== X-Google-Smtp-Source: ABdhPJyIzmTr7mJ9yQY+RGBI1BFfK13zGNOTtMcW5MzGuUVjah0d9LTjau6+WGv9evsvJeJ42U/U2A== X-Received: by 2002:a92:ccd1:: with SMTP id u17mr8364939ilq.239.1624648997089; Fri, 25 Jun 2021 12:23:17 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id n20sm3826136ioo.23.2021.06.25.12.23.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 12:23:16 -0700 (PDT) From: Adam Ford To: u-boot@lists.denx.de Cc: lukma@denx.de, pavel@ucw.cz, pali@kernel.org, lokeshvutla@ti.com, aford@beaconembedded.com, Adam Ford Subject: [PATCH V2 0/3] Make omap3 board functions static Date: Fri, 25 Jun 2021 14:23:05 -0500 Message-Id: <20210625192308.277136-1-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Several functions in omap3/board.c are only used in that file, and two of them are only called when certain conditions are true in an ifdef. Rearange these functions to also be inside the ifdef and make them static. Before: text data bss dec hex filename 49998 1057 1888 52943 cecf spl/u-boot-spl 605972 29244 53020 688236 a806c u-boot After Patch 3/3: text data bss dec hex filename 605744 29244 52996 687984 a7f70 u-boot 49918 1057 1888 52863 ce7f spl/u-boot-spl Adam Ford (3): arm: omap3: Make try_unlock_memory() static arm: omap3: Make secureworld_exit() static arm: omap3: Make secure_unlock_mem() static arch/arm/include/asm/arch-omap3/sys_proto.h | 2 -- arch/arm/mach-omap2/omap3/board.c | 21 +++++++++++---------- 2 files changed, 11 insertions(+), 12 deletions(-) -- 2.25.1