From patchwork Wed Apr 12 07:20:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Klauser X-Patchwork-Id: 9676705 X-Patchwork-Delegate: moritz.fischer@ettus.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 100EA60381 for ; Wed, 12 Apr 2017 07:20:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB53E2859E for ; Wed, 12 Apr 2017 07:20:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DCE2E285AF; Wed, 12 Apr 2017 07:20:57 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 105DD2859E for ; Wed, 12 Apr 2017 07:20:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752060AbdDLHU4 (ORCPT ); Wed, 12 Apr 2017 03:20:56 -0400 Received: from mail.zhinst.com ([212.126.164.98]:34896 "EHLO mail.zhinst.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751205AbdDLHUz (ORCPT ); Wed, 12 Apr 2017 03:20:55 -0400 Received: from ziws08.zhinst.com ([10.42.0.7]) by mail.zhinst.com (Kerio Connect 9.2.2 patch 1) with ESMTP; Wed, 12 Apr 2017 09:20:48 +0200 From: Tobias Klauser To: Alan Tull , Moritz Fischer Cc: matthew.gerlach@linux.intel.com, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] fpga: allow to compile-test Altera FPGA bridge drivers Date: Wed, 12 Apr 2017 09:20:48 +0200 Message-Id: <20170412072048.22788-1-tklauser@distanz.ch> X-Mailer: git-send-email 2.12.2 Sender: linux-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add COMPILE_TEST to the Kconfig entry for the Altera SoCFPGA FPGA Bridge. The Altera FPGA Freeze Bridge can also be used on Altera PEIe FPGAs, so the driver shouldn't depend on ARCH_SOCFPGA in the first place. This allows test-compiling the drivers on other architectures to catch compiler errors/warnings, e.g. due to API/header changes earlier on. Signed-off-by: Tobias Klauser Signed-off-by: Alan Tull --- drivers/fpga/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index 161ba9dccede..544600db8052 100644 --- a/drivers/fpga/Kconfig +++ b/drivers/fpga/Kconfig @@ -69,14 +69,14 @@ config FPGA_BRIDGE config SOCFPGA_FPGA_BRIDGE tristate "Altera SoCFPGA FPGA Bridges" - depends on ARCH_SOCFPGA && FPGA_BRIDGE + depends on (ARCH_SOCFPGA || COMPILE_TEST) && FPGA_BRIDGE help Say Y to enable drivers for FPGA bridges for Altera SOCFPGA devices. config ALTERA_FREEZE_BRIDGE tristate "Altera FPGA Freeze Bridge" - depends on ARCH_SOCFPGA && FPGA_BRIDGE + depends on FPGA_BRIDGE help Say Y to enable drivers for Altera FPGA Freeze bridges. A freeze bridge is a bridge that exists in the FPGA fabric to