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=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,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 29E7DC2B9F4 for ; Fri, 25 Jun 2021 19:23:43 +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 A6FB16142D for ; Fri, 25 Jun 2021 19:23:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A6FB16142D 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 865D782C65; Fri, 25 Jun 2021 21:23:35 +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="StQ9lcI0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8168E82C32; Fri, 25 Jun 2021 21:23:26 +0200 (CEST) Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (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 E50AB8020E for ; Fri, 25 Jun 2021 21:23:21 +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-io1-xd2a.google.com with SMTP id h2so13766870iob.11 for ; Fri, 25 Jun 2021 12:23:21 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=CsOI8TLQOFqijkVZPX8q6XdPPDUlt3saEh9lYa9X4mU=; b=StQ9lcI0YWJ5PyVSlt5oAHiYBAKdWBDnyHkrQJ2kj3Vi6KqAv+oY8Jm5F6aJkJmbiT cncLDD0NSOe6tSyLbvd0WRnoqI6uFhEQDqhz+1eCCehhlPoWE8x36DojhbLWTMJHpJLc mV5l80VF6IXGGr2Ms351OT59t+WHjWw/i8RrqkDVhvKSJtVjqgrb80VAelYc3Dv4rrbE F6FcTb1Hb1G95HcA/g4KuW8FScX9pTF/EB4LU1T3WlyYjls3eGzySoBH/rBCmtWeM9s7 rRNkCCZHQwZjFpE3aal/84mXoMeBhRfCBFARBsjHRrMN4lVENYJLAvzg3JWSsxLbjjd5 +1Bw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=CsOI8TLQOFqijkVZPX8q6XdPPDUlt3saEh9lYa9X4mU=; b=jo0FsEvP0594U3AspFWTHoV+eLEC0jtTWIk45/um5FRIrKYOiVukLEZznYrXV6faG6 7pfcnZoGmUT9yelJL/VXoeae0CKX8gZmBvkL29ajj2WxyWpaiX9dfhWfk+rSUIYPsXXU m4FuWX3TqhDVL0GBhZAcLpi526BzU2bzwkNOY3puZqWaIRCeleYyFjlna4vONcuLIOag sk5dzxUB0wfaa71D83qYlr2RfiT7OOiLlVxzhGf8jnYh165Arikc17njeNFle0PWqG5w fLCVfqE2929RtSFpius9i/cvReGF/+ynwYNEO7WN45UsNdbvUjZxCJkux7iL106f5f3B rVug== X-Gm-Message-State: AOAM531DR5Io4fjbGJQuM+wdXlTGLVwJI0lVaNlRnsMBQtTXysrZU/3M 9CUj8dfEIzuTRC3C4r+lZPtHAbQGGzRDBw== X-Google-Smtp-Source: ABdhPJy9THVQc1i+5tGOPOsbezDflK2ehG2/j+PGUwLvsQbOUHaz/hS4x2Xs1EW10XzYXxDwrsfMOw== X-Received: by 2002:a5d:840c:: with SMTP id i12mr9740150ion.185.1624649000312; Fri, 25 Jun 2021 12:23:20 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 12:23:19 -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 3/3] arm: omap3: Make secure_unlock_mem() static Date: Fri, 25 Jun 2021 14:23:08 -0500 Message-Id: <20210625192308.277136-4-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210625192308.277136-1-aford173@gmail.com> References: <20210625192308.277136-1-aford173@gmail.com> 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 secure_unlock_mem() is only used in one file, so make it static in that file. Signed-off-by: Adam Ford --- V2: Move secure_unlock_mem into area encompassed by ifdef to only define it when potentially used to avoid errors. diff --git a/arch/arm/mach-omap2/omap3/board.c b/arch/arm/mach-omap2/omap3/board.c index 41d0d3ef69..363af52845 100644 --- a/arch/arm/mach-omap2/omap3/board.c +++ b/arch/arm/mach-omap2/omap3/board.c @@ -71,12 +71,20 @@ const struct gpio_bank *const omap_gpio_bank = gpio_bank_34xx; #endif +void early_system_init(void) +{ + hw_data_init(); +} + +#if !defined(CONFIG_SKIP_LOWLEVEL_INIT) && \ + !defined(CONFIG_SKIP_LOWLEVEL_INIT_ONLY) + /****************************************************************************** * Routine: secure_unlock * Description: Setup security registers for access * (GP Device only) *****************************************************************************/ -void secure_unlock_mem(void) +static void secure_unlock_mem(void) { struct pm *pm_rt_ape_base = (struct pm *)PM_RT_APE_BASE_ADDR_ARM; struct pm *pm_gpmc_base = (struct pm *)PM_GPMC_BASE_ADDR_ARM; @@ -140,14 +148,6 @@ static void secureworld_exit(void) __asm__ __volatile__("mcr p15, 0, %0, c1, c1, 0":"=r"(i)); } -void early_system_init(void) -{ - hw_data_init(); -} - -#if !defined(CONFIG_SKIP_LOWLEVEL_INIT) && \ - !defined(CONFIG_SKIP_LOWLEVEL_INIT_ONLY) - /****************************************************************************** * Routine: try_unlock_sram() * Description: If chip is GP/EMU(special) type, unlock the SRAM for -- 2.25.1