From patchwork Thu Dec 12 00:47:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1208046 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="SQEyMo9c"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47YFYc6gp4z9sR7 for ; Thu, 12 Dec 2019 11:49:24 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6382D81675; Thu, 12 Dec 2019 01:48:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.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" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="SQEyMo9c"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 65AC6814DE; Thu, 12 Dec 2019 01:48:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x144.google.com (mail-il1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) (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 6EE54814E2 for ; Thu, 12 Dec 2019 01:48:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x144.google.com with SMTP id b15so501006ila.7 for ; Wed, 11 Dec 2019 16:48:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aXa2eRbgp7dNxAwDwQ5ThJy4OW8Wg6B3d63oe9pW8Bo=; b=SQEyMo9csEUQMQ6dg9srgmCUKmlqC9/WUFsK4HlrnI3q6iltLHMp5bzL9cAhT87nTl /PwK5BBkxxHdDPTCVTJ+rK/DNZyfpsNhdYI6RN07A7yGsc1dYm1akqYqjV28QhIrD5pn XAwEITcOKknL2d0NrBYt0Ca0pKVrKkNxkZB6E= 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=aXa2eRbgp7dNxAwDwQ5ThJy4OW8Wg6B3d63oe9pW8Bo=; b=W3JOiWvo56OXWytzq/crNT9nEqyOSgbeslaA0oMr5u4ZjVPRcnCZ39CklvUOU1SNpG LawiU+e4atyk3V314+f8oi5TRfTNt7acf/KsdtlRu0K6Cyk+ScJg5jqWWn6pIuVvUghw /Ad7IgVJfAcfZgKwnfwWRUr3J4dmzX1DbhfCS24bnNpaLbxdxZF86Xe1aat6StfzjjRP NhQBdAU/t1OwUoB0xK9TXpN40ZYHOqJUyys9qGUx68bxO5E2rGTdDGfO/dY7ia8PveWb b0qGTTvNWOZFSZ9K6gNV3dM/U/x/uFrpGMq2BYyz2bva+eCQxdgQOqrEfQEIUeKwQWdx Er/Q== X-Gm-Message-State: APjAAAWUVj33Fk+ADS3/DAHf0xdcarMIujysYbf9wbxZVFjHMxh//NXT eUUvtQd4LCXNZn2rigxShTCWQxGv1kc= X-Google-Smtp-Source: APXvYqzyG9fNUcqh4/XOljDLT61ITUlCsBWWRuDqlI2uLNJoe+h7Re6FjVwHa9LttFv00JP5MdCJXw== X-Received: by 2002:a92:9a56:: with SMTP id t83mr6087259ili.200.1576111698978; Wed, 11 Dec 2019 16:48:18 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id a11sm880194ioc.86.2019.12.11.16.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 16:48:18 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Subject: [PATCH 09/35] common: Move jumptable_init() out of common.h Date: Wed, 11 Dec 2019 17:47:28 -0700 Message-Id: <20191211174637.9.I31c2a08e96eb127d8205900e76038d1160837a0f@changeid> X-Mailer: git-send-email 2.24.0.525.g8f36a354ae-goog In-Reply-To: <20191212004755.11091-2-sjg@chromium.org> References: <20191212004755.11091-2-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom Rini , Stefan Roese , Stephen Warren , Bartosz Golaszewski , Joe Hershberger , Heinrich Schuchardt , Boris Brezillon , Alexander Graf Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean This function is defined in exports.c so move it to its header file. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- common/board_r.c | 1 + include/common.h | 3 --- include/exports.h | 3 +++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index cda90bd385..4910a5da34 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include /* TODO: can we just include all these headers whether needed or not? */ diff --git a/include/common.h b/include/common.h index 90391d262e..71bf39180c 100644 --- a/include/common.h +++ b/include/common.h @@ -81,9 +81,6 @@ extern ulong load_addr; /* Default Load Address */ extern ulong save_addr; /* Default Save Address */ extern ulong save_size; /* Default Save Size */ -/* common/exports.c */ -void jumptable_init(void); - /* common/kallsysm.c */ const char *symbol_lookup(unsigned long addr, unsigned long *caddr); diff --git a/include/exports.h b/include/exports.h index 35f463287f..cbd16fc518 100644 --- a/include/exports.h +++ b/include/exports.h @@ -13,6 +13,9 @@ struct spi_slave; +/* Set up the jump table for use by the API */ +void jumptable_init(void); + /* These are declarations of exported functions available in C code */ unsigned long get_version(void); int getc(void);