From patchwork Thu Dec 24 16:37:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ivaylo Dimitrov X-Patchwork-Id: 7919661 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7C8BDBEEE5 for ; Thu, 24 Dec 2015 16:41:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 905D92055C for ; Thu, 24 Dec 2015 16:41:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B33F520529 for ; Thu, 24 Dec 2015 16:41:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755553AbbLXQk6 (ORCPT ); Thu, 24 Dec 2015 11:40:58 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:34331 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753635AbbLXQk5 (ORCPT ); Thu, 24 Dec 2015 11:40:57 -0500 Received: by mail-wm0-f42.google.com with SMTP id l126so184501874wml.1; Thu, 24 Dec 2015 08:40:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ax5spSj7mDWouUfa2UKBUBTPzY5TXud6+owfC2KgreQ=; b=v0DpSQX0B2GYm2LxsHVyudIKPX02TKEXlx4qNbXxNuzKYoQc3ToM0pTSt8NNxFr39J 6l6bn5uIRNYz0m3Z3F3fmkDvKst0f9AyhpyNU04jXfRE9QDs7CzZDTKQOYOWoELf9zCj YD2WbAGtyf4kdlYj+dV239Y9MQ7A+QaYJEItYAYNtaa933VlrGkmOHw4+Qdt11ZQCN1m NdK7X3+sSMNaT6ppCP4QmVxN2ZGIJHlnmb/OLm933U0tazqQpuG3l7els2fxrJlADROF Jfi6T7uwJQO3neoIQRDy7FAlHu0alSrp5WniB/eqXQ9MCwkHDT5NZ4u7NBqROA1qkLrs MZqA== X-Received: by 10.28.220.68 with SMTP id t65mr3977263wmg.92.1450975255497; Thu, 24 Dec 2015 08:40:55 -0800 (PST) Received: from localhost.localdomain ([46.249.74.23]) by smtp.gmail.com with ESMTPSA id dl8sm42225778wjb.29.2015.12.24.08.40.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Dec 2015 08:40:55 -0800 (PST) From: Ivaylo Dimitrov To: linux@arm.linux.org.uk, tony@atomide.com, nicolas.pitre@linaro.org, arnd@arndb.de, pali.rohar@gmail.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Ivaylo Dimitrov Subject: [PATCH 1/2] ARM: ATAGS: move save_atags() to include/asm arch/arm/include/asm/setup.h Date: Thu, 24 Dec 2015 18:37:55 +0200 Message-Id: <1450975076-7411-2-git-send-email-ivo.g.dimitrov.75@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450975076-7411-1-git-send-email-ivo.g.dimitrov.75@gmail.com> References: <20151224153536.GJ30871@n2100.arm.linux.org.uk> <1450975076-7411-1-git-send-email-ivo.g.dimitrov.75@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP So it can be used by code outside arch/arm/kernel/. Fix save_atags() declaration to match its definition while at it. Signed-off-by: Ivaylo Dimitrov Tested-by: Pali Rohár Acked-by: Tony Lindgren --- arch/arm/include/asm/setup.h | 6 ++++++ arch/arm/kernel/atags.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h index e0adb9f..3613d7e 100644 --- a/arch/arm/include/asm/setup.h +++ b/arch/arm/include/asm/setup.h @@ -25,4 +25,10 @@ extern int arm_add_memory(u64 start, u64 size); extern void early_print(const char *str, ...); extern void dump_machine_table(void); +#ifdef CONFIG_ATAGS_PROC +extern void save_atags(const struct tag *tags); +#else +static inline void save_atags(const struct tag *tags) { } +#endif + #endif diff --git a/arch/arm/kernel/atags.h b/arch/arm/kernel/atags.h index ec4164d..edfa226 100644 --- a/arch/arm/kernel/atags.h +++ b/arch/arm/kernel/atags.h @@ -1,9 +1,3 @@ -#ifdef CONFIG_ATAGS_PROC -extern void save_atags(struct tag *tags); -#else -static inline void save_atags(struct tag *tags) { } -#endif - void convert_to_tag_list(struct tag *tags); #ifdef CONFIG_ATAGS