Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id F1330C05027 for ; Mon, 20 Feb 2023 06:13:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CECD1857B1; Mon, 20 Feb 2023 07:13:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="d5UXqC66"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="e593GnYW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5D2EB857E9; Mon, 20 Feb 2023 07:13:11 +0100 (CET) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 003A9857DC for ; Mon, 20 Feb 2023 07:13:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 697443200CC6; Mon, 20 Feb 2023 01:13:07 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 20 Feb 2023 01:13:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1676873587; x=1676959987; bh=1h 0JsFk6GpOo/F4zBH4swnOcJZd2JYv4bRwnYek3XT0=; b=d5UXqC66Xk+XPArI+m HfgInuocxZbHld0MBtR9b0sT5Or/OAcD5dO0Uygk926kVBoTXMsmMaJpYckRYH+O LrQCx8XkKTIkoXoM/3D67uNw+Y8hfw5MPXjVeghnXPqkB5q0hJpjAur7keWWGlrB vAHj5TIRP2M2jMTCRWnrQpLkMdLu6W/kfD10bQlbbbo3tmEPKpEoRFy+dPf8plsM yismO82UjjpDekQrHsX6sZ2Es1+gA4UjBwQMMeMonoVCQQAiUxko9Da1pdazko8E GjTibmz27NeuS/YD9atCvKiRxdFR44zNDWDht9d5Uaddua1cuLH3Wc4klgLaj0/K MsZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1676873587; x=1676959987; bh=1h0JsFk6GpOo/ F4zBH4swnOcJZd2JYv4bRwnYek3XT0=; b=e593GnYW/5X9A4iw37NjjpfP3Jm9J HugLFldQQHpBF1w2dQU6SmZIeM/x/4WTrJcRPCGIwd7EJqI+3cKpJhos8d3R18An liKM54m8J6olFT4Z7KeSjQ1iDoguRdDSAxk6QgtP8ysd17dCOPvB93fqYFg+9rwk EnF+B8fP/E4fVVj+pBrNIXwpU1u6bZyGmSD0MaIVl4x2OIrQllFzilbmTXMdMXjg 15l+xsV32a22E65AySD0veGz1RUqCpDlLJXUifSiGZRfMG9dZoIvXiPqD/WyaRg/ UmAy8015diKo5ovKYq+nJ/d3lVYiZMBfA0K7ZsZA9HPMWVb+SVEJIAWiA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejgedgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefurghmuhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhes shhhohhllhgrnhgurdhorhhgqeenucggtffrrghtthgvrhhnpedukeetueduhedtleetve fguddvvdejhfefudelgfduveeggeehgfdufeeitdevteenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurd horhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Feb 2023 01:13:06 -0500 (EST) From: Samuel Holland To: u-boot@lists.denx.de Cc: Samuel Holland Subject: [PATCH 1/3] remoteproc: Move rproc_cfg_arr out of the uclass header Date: Mon, 20 Feb 2023 00:13:01 -0600 Message-Id: <20230220061304.43198-2-samuel@sholland.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230220061304.43198-1-samuel@sholland.org> References: <20230220061304.43198-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean This array is private to the IPU driver, so it should be declared there. Signed-off-by: Samuel Holland --- drivers/remoteproc/ipu_rproc.c | 4 +++- include/remoteproc.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/ipu_rproc.c b/drivers/remoteproc/ipu_rproc.c index b4a06bc955a..2783628b23a 100644 --- a/drivers/remoteproc/ipu_rproc.c +++ b/drivers/remoteproc/ipu_rproc.c @@ -145,6 +145,8 @@ unsigned long mem_count; unsigned int pgtable_l2_map[MAX_NUM_L2_PAGE_TABLES]; unsigned int pgtable_l2_cnt; +static struct rproc *rproc_cfg_arr[2]; + void *ipu_alloc_mem(struct udevice *dev, unsigned long len, unsigned long align) { unsigned long mask; @@ -597,7 +599,7 @@ struct rproc ipu2_config = { .intmem_to_l3_mapping = &ipu2_intmem_to_l3_mapping }; -struct rproc *rproc_cfg_arr[2] = { +static struct rproc *rproc_cfg_arr[2] = { [IPU2] = &ipu2_config, [IPU1] = &ipu1_config, }; diff --git a/include/remoteproc.h b/include/remoteproc.h index f48054de6ba..d8cde73748b 100644 --- a/include/remoteproc.h +++ b/include/remoteproc.h @@ -383,7 +383,6 @@ struct rproc { u32 trace_len; }; -extern struct rproc *rproc_cfg_arr[2]; /** * enum rproc_mem_type - What type of memory model does the rproc use * @RPROC_INTERNAL_MEMORY_MAPPED: Remote processor uses own memory and is memory -- 2.39.2