From patchwork Wed Jun 19 17:46:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 2751061 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 09616C0AB1 for ; Wed, 19 Jun 2013 17:47:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1C9D72036D for ; Wed, 19 Jun 2013 17:47:33 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9C8E12036B for ; Wed, 19 Jun 2013 17:47:31 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpMTc-00049w-G0; Wed, 19 Jun 2013 17:47:24 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpMTZ-0000zC-2m; Wed, 19 Jun 2013 17:47:21 +0000 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpMTR-0000yd-5f for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2013 17:47:13 +0000 Received: by mail-pa0-f41.google.com with SMTP id bj3so5412706pad.14 for ; Wed, 19 Jun 2013 10:46:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:subject:from:to:cc:date:content-type:x-mailer :mime-version:content-transfer-encoding:x-gm-message-state; bh=hSr5ocbalCE27MZcgmx8QSLdVrFOmxZCzNss6PyNjMs=; b=dldJjKkKt9aasI4qpzA5wrHgIo3MurK3AusJHs9FtVYeC2XxpPzwhWcFN/fO1lSYVM OS+Q3fBrFdzlh7x9NCzYIVCrLzKqIzIw5nkWRpyzZX0lgpD8ip+Afq5TusiMv+DRKEAX eyZ5eYM9P1dnApLmDR+QZ+SJEqDx8jOESTOM3tgeySzY2Ab4CGrEC2FoZgXW9bOz8JWV ikf/YXdctV/Uy59Mk3mg+w4Q/1qYPA/Ft8S5VY7UMI8p4NYrSOQY9AudQoceNLaZn4Ju Jp/WCQGfdU5NOVGEVmtRrQjRYutmw0G0vMBz6RmeF5wNCyGDeyuvZhqsDUY6PQkfH6Ej ug1w== X-Received: by 10.68.113.194 with SMTP id ja2mr3819987pbb.65.1371664009152; Wed, 19 Jun 2013 10:46:49 -0700 (PDT) Received: from [192.168.0.100] (114-40-16-119.dynamic.hinet.net. [114.40.16.119]) by mx.google.com with ESMTPSA id dj5sm14699854pbc.25.2013.06.19.10.46.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Jun 2013 10:46:47 -0700 (PDT) Message-ID: <1371664001.9848.1.camel@phoenix> Subject: [PATCH] ARM: OMAP2: reboot: Include common.h to fix build error From: Axel Lin To: Andrew Morton Date: Thu, 20 Jun 2013 01:46:41 +0800 X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 X-Gm-Message-State: ALoCoQnn3AMEv4ONdiBltoiPc/VmduZEgBS+5OZdkrxIMyw4gW14VdP9Dva9aK6X8772BirhixZU X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130619_134713_289956_1AF9F22D X-CRM114-Status: GOOD ( 11.33 ) X-Spam-Score: -1.9 (-) Cc: Tony Lindgren , Russell King , linux-omap@vger.kernel.org, Robin Holt , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Include common.h which will include linux/reboot.h to fix below build error. CC arch/arm/mach-omap2/omap4-restart.o arch/arm/mach-omap2/omap4-restart.c:21:28: warning: 'enum reboot_mode' declared inside parameter list [enabled by default] arch/arm/mach-omap2/omap4-restart.c:21:28: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] arch/arm/mach-omap2/omap4-restart.c:21:40: error: parameter 1 ('mode') has incomplete type arch/arm/mach-omap2/omap4-restart.c:21:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] make[1]: *** [arch/arm/mach-omap2/omap4-restart.o] Error 1 make: *** [arch/arm/mach-omap2] Error 2 Signed-off-by: Axel Lin --- Seems this build error is introduced by commit 7507d035f3cf40c "reboot: arm: change reboot_mode to use enum reboot_mode" This patch is against linux-next 20130619. arch/arm/mach-omap2/omap4-restart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/omap4-restart.c b/arch/arm/mach-omap2/omap4-restart.c index 652adde..7306d9b 100644 --- a/arch/arm/mach-omap2/omap4-restart.c +++ b/arch/arm/mach-omap2/omap4-restart.c @@ -9,6 +9,7 @@ #include #include "prminst44xx.h" +#include "common.h" /** * omap44xx_restart - trigger a software restart of the SoC