From patchwork Fri Aug 9 14:40:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11086555 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 32AFC14E5 for ; Fri, 9 Aug 2019 14:42:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 199981FE84 for ; Fri, 9 Aug 2019 14:42:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DC7C1FEBA; Fri, 9 Aug 2019 14:42:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B05E11FE84 for ; Fri, 9 Aug 2019 14:42:37 +0000 (UTC) X-Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by groups.io with SMTP; Fri, 09 Aug 2019 07:42:36 -0700 X-Received: by mail.kernel.org (Postfix) id 5531220820; Fri, 9 Aug 2019 14:42:36 +0000 (UTC) X-Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C2D97208C4 for ; Fri, 9 Aug 2019 14:42:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C2D97208C4 X-Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1N6JtR-1iOPhO3B3h-016fh0; Fri, 09 Aug 2019 16:42:07 +0200 From: Arnd Bergmann To: Linuxkernel+Patchwork-Soc via Email Integration Cc: Vladimir Zapolskiy , Sylvain Lemieux , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Guenter Roeck , Wim Van Sebroeck , linux-watchdog@vger.kernel.org Subject: [PATCH v2 03/13] watchdog: pnx4008_wdt: allow compile-testing Date: Fri, 9 Aug 2019 16:40:29 +0200 Message-Id: <20190809144043.476786-4-arnd@arndb.de> In-Reply-To: <20190809144043.476786-1-arnd@arndb.de> References: <20190809144043.476786-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:2AniHPLvo1jOIHTBA5j2I98sivoZsCAzYNsd3R/3R1uFTaliz4M 3rsrICP/4PwkInaQhxlJ/le7U5DXD8wWkq4JuseLTYnOxVv5i7Pa66SqiXbaguC3oA5FRw8 A3xdnI1Rtez1LzDbs+hgxfPKiJyB71Xm8m9gpg8RdpuYwWaPI7c4IElvW/Zfp2Gv0NrqnrX jNNC2a7YYGqIrQTGKSpMg== X-UI-Out-Filterresults: notjunk:1;V03:K0:Etmti/+xoQU=:l4/pWBsx0O3C1vyi+cIoXU B8/q/x2tPsjhwuwTEusw4xO3v3fsMQQTifM0loxUkh38VhpQRY6hhaYq4T0VxVGIgDRL7k4Fz jZ7BZJjWaG7sWyYIiHLs5LTGW4Sn3dzTN8w+H2ze/4aaLojYSZISir5/crSN/dM7rEGfJ+688 5lfVOkA68CmQdirZenGNKTe9XExQI9XCx3Bc9PI/J/Mhkhw/d0rxvIbRg8VrlGutTxVUa7Ee8 GUGIIM2QpNsQNscwV1Kw9bKmsWzduGGi1t+uRunVn2J7txrxyigBVsDI/Gmklywari3NfJKSH gJHVNI/QjS2jBmpNtXXlgOW5X1oxHK4uU3oyz9KzqIy3I/eqBfwOQh0lhMU4RjQeti5VOR9u+ 28FXhIzaucLv9wNiIKCy3nouTqfLJVXwsuozg9GInw0hjxiGg8jTQI3MivqWIHSf6ICQsP4US VAqYSNd1sQBqtHincI3+5NGUcPiwZxeav4bfdjIVSa60uo825Red6h1hEGt1XZwBdBTfXSaCm ZaYfGakR5giIId/4nDqGSabD0XGEHUqhTaUYwFuHsghmRHYzxm4qqhDZP74Vk8pXeiZlXRcvw r1gSQFieBhcZg1nhipaC/BxG29X59rcn49DjnIeO0Q7pDzw1tcrWETEsHxLq+MWgq3jLHxwhe AhfrHZ5BvPOVUiEgviEvpJB2WVBOnlB2VatyhjVwe+D0LDYrD3oPjGPCcPdHmZi0GOH8fU8gG CO183QaB3b+5OI4Ex4k3snRCyEStnmloMwaR8A== Precedence: Bulk List-Unsubscribe: Sender: patchwork-soc@linux.kernel.org List-Id: Mailing-List: list patchwork-soc@linux.kernel.org; contact patchwork-soc+owner@linux.kernel.org Delivered-To: mailing list patchwork-soc@linux.kernel.org Reply-To: patchwork-soc+owner@linux.kernel.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux.kernel.org; q=dns/txt; s=20140610; t=1565361757; bh=faObAONo7FhFBpzqLU6pyH+K2jkfIg3iYXCIuM+/NyM=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=LQuIrPlkObqFFVoGZSn0Q0i8tAP6Agq7KChKtk4n2SLZGWSTona6sb7fuqsth8AvXtZ +s1u2N+/lTJrD40PirXHp8brq30RkCh30bgG5a1HHv8MsAb/zl3ZoQ+m+kBG/NreBF1KN QpMeot8rCvdobuGW6NVWUKwmlpGvUSYYkI8= X-Virus-Scanned: ClamAV using ClamSMTP The only thing that prevents building this driver on other platforms is the mach/hardware.h include, which is not actually used here at all, so remove the line and allow CONFIG_COMPILE_TEST. Acked-by: Sylvain Lemieux Reviewed-by: Guenter Roeck Signed-off-by: Arnd Bergmann --- drivers/watchdog/Kconfig | 2 +- drivers/watchdog/pnx4008_wdt.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 8188963a405b..a45f9e3e442b 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -551,7 +551,7 @@ config OMAP_WATCHDOG config PNX4008_WATCHDOG tristate "LPC32XX Watchdog" - depends on ARCH_LPC32XX + depends on ARCH_LPC32XX || COMPILE_TEST select WATCHDOG_CORE help Say Y here if to include support for the watchdog timer diff --git a/drivers/watchdog/pnx4008_wdt.c b/drivers/watchdog/pnx4008_wdt.c index 7b446b696f2b..e0ea133c1690 100644 --- a/drivers/watchdog/pnx4008_wdt.c +++ b/drivers/watchdog/pnx4008_wdt.c @@ -30,7 +30,6 @@ #include #include #include -#include /* WatchDog Timer - Chapter 23 Page 207 */