From patchwork Thu May 7 17:34:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Ulli Kroll X-Patchwork-Id: 6359831 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7CA2A9F1C2 for ; Thu, 7 May 2015 17:38:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A705E202FE for ; Thu, 7 May 2015 17:38:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D4089202EC for ; Thu, 7 May 2015 17:38:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YqPie-0006eW-CB; Thu, 07 May 2015 17:36:20 +0000 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YqPiZ-0006RT-Dr for linux-arm-kernel@lists.infradead.org; Thu, 07 May 2015 17:36:16 +0000 Received: by wizk4 with SMTP id k4so168478wiz.1 for ; Thu, 07 May 2015 10:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=pQ1Njzfar9veqynI6uN/0RUCpdm3Itq7mSBTZoVVFys=; b=K7xra9unzgQzyyfYNMZZOg+416M9YdqfvQ5BAuBuQf2z0ATurjWZJqXIkShZX1oodI b/epdaFUAtt8ciji0LkXcDIBaEK5E/ZiVYG9G8shl6Fl1Y7ZsKuhTuQWH6BlpO/Ik0xa jFjDUqd4Bquqd07glP5VOM86J3rYoG/WV+yGcR4Nz+criOo2gSxkddlozFxBzeau149J QztyRWAIyEi7uXV/NXAfuuV2Q/GkhOzczA+YgJ0r0+bpVis4lZ8hErxGBrShi71fVjTH TFZQNapZJwVpFkF+kM+NZJiMwMy2tH0J2xuJq7pk7FIftcfSy00e1PUM33Dsi7SveJ/4 voMg== X-Received: by 10.180.186.99 with SMTP id fj3mr8953592wic.10.1431020153232; Thu, 07 May 2015 10:35:53 -0700 (PDT) Received: from localhost (cable-78-34-69-148.netcologne.de. [78.34.69.148]) by mx.google.com with ESMTPSA id e2sm5028643wij.5.2015.05.07.10.35.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2015 10:35:52 -0700 (PDT) From: Hans Ulli Kroll To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM:Gemini:fix compiler waring Date: Thu, 7 May 2015 19:34:28 +0200 Message-Id: <1431020068-19821-1-git-send-email-ulli.kroll@googlemail.com> X-Mailer: git-send-email 2.3.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150507_103615_655487_137BDFA3 X-CRM114-Status: GOOD ( 10.10 ) X-Spam-Score: -0.8 (/) Cc: Hans Ulli Kroll , linux-kernel@vger.kernel.org, Arnd Bergmann X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Signed-off-by: Hans Ulli Kroll --- arch/arm/mach-gemini/common.h | 4 +++- arch/arm/mach-gemini/reset.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-gemini/common.h b/arch/arm/mach-gemini/common.h index 38a4526..dd88369 100644 --- a/arch/arm/mach-gemini/common.h +++ b/arch/arm/mach-gemini/common.h @@ -12,6 +12,8 @@ #ifndef __GEMINI_COMMON_H__ #define __GEMINI_COMMON_H__ +#include + struct mtd_partition; extern void gemini_map_io(void); @@ -26,6 +28,6 @@ extern int platform_register_pflash(unsigned int size, struct mtd_partition *parts, unsigned int nr_parts); -extern void gemini_restart(char mode, const char *cmd); +extern void gemini_restart(enum reboot_mode mode, const char *cmd); #endif /* __GEMINI_COMMON_H__ */ diff --git a/arch/arm/mach-gemini/reset.c b/arch/arm/mach-gemini/reset.c index b266597..21a6d6d 100644 --- a/arch/arm/mach-gemini/reset.c +++ b/arch/arm/mach-gemini/reset.c @@ -14,7 +14,9 @@ #include #include -void gemini_restart(char mode, const char *cmd) +#include "common.h" + +void gemini_restart(enum reboot_mode mode, const char *cmd) { __raw_writel(RESET_GLOBAL | RESET_CPU1, IO_ADDRESS(GEMINI_GLOBAL_BASE) + GLOBAL_RESET);