Message ID | 20180928014824.GA10504@WindFlash (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-parisc-owner@kernel.org> 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 9A30E1759 for <patchwork-linux-parisc@patchwork.kernel.org>; Fri, 28 Sep 2018 01:48:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 841CF2B3DD for <patchwork-linux-parisc@patchwork.kernel.org>; Fri, 28 Sep 2018 01:48:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73AF52B404; Fri, 28 Sep 2018 01:48:35 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FROM_EXCESS_BASE64,MAILING_LIST_MULTI, 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 25B9E2B3DD for <patchwork-linux-parisc@patchwork.kernel.org>; Fri, 28 Sep 2018 01:48:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728375AbeI1IJs (ORCPT <rfc822;patchwork-linux-parisc@patchwork.kernel.org>); Fri, 28 Sep 2018 04:09:48 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:44251 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbeI1IJr (ORCPT <rfc822;linux-parisc@vger.kernel.org>); Fri, 28 Sep 2018 04:09:47 -0400 Received: by mail-qt1-f196.google.com with SMTP id c56-v6so105688qtd.11; Thu, 27 Sep 2018 18:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=az4VG2kDleDEIQbELh7WthCOA8Gd6LhdwtP9/ZvOfHo=; b=kDnDEsZa7fFmjs2Tk74lWl3fl5P2Nef0SknMvfCe9e49J965GiWsQxosf0mo+zj3kB 0B39tgyLiAb6YPwF45t/zJShLbiJweqeUKY6+vZp22sdh2oSfT6zpnBEpv9IsbdJAL96 kjotqyDRWMvvtf8X5A9ldWrAs8LHlSNjDUlsit/SLCTDmzwi6Ja+l39OY5a5E1t6H1V+ htIjXGC57Gf/sq+gNRwjeQyqZU1sfl09I3MKRFJVEPy5oetgM0/02jwaMqn4MRbpA3z/ a/Hd5FTtgwuLxUKjWcJ0WHWlar+2iJKhHOKgt/yOG6nRmDGy8qAXnXSMqPBdFTODP/jg 0ipQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=az4VG2kDleDEIQbELh7WthCOA8Gd6LhdwtP9/ZvOfHo=; b=fucaNnsb2MCrYXicJFQVdBz4tlbbqlWyRpsaWZPaqwdHH2qBublHQ+7G7JmqJKaTgH MeceavaGfUuXQxjELFtWlMDuA+RYjRKH8TrhFXLNrkUyeyFdTiua/Mj3YNI7MwwVlfuB VP7XY0PmsmEM6Q4DO4rwX2FoaNjQgsHYRgT3stsFiiK+4nl9rMB0SvwLM0UR0cafYneE 4tf6vkTwq22l11w14/x/FSqW6ok8DvEtsPMYL7I3bk147MXczhoeLnf0TEs8++z5sLZS 2brj9ZwcUIkpAvDX4VDhx+nF85fgD/uwYmClOwmJ8/tlJ7YM0vq06U3E8bF5hIGSEYrj 9Lvw== X-Gm-Message-State: ABuFfogyv9/xhI7AkmKBt0QZ1tTYNz2UKyPss72wi4Ngf5txIZzMfoDi kazy+uwNy3nzdFOKKFNkj+E= X-Google-Smtp-Source: ACcGV61GwrxPTv8Vy9LRQU8saNNx3O3W4U08M1DWAZpwwLzXFcn9KqlruyadY9tbVqyMzvXnocjS2Q== X-Received: by 2002:a0c:8834:: with SMTP id 49-v6mr10283618qvl.40.1538099313552; Thu, 27 Sep 2018 18:48:33 -0700 (PDT) Received: from WindFlash ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id o2-v6sm2538434qkl.63.2018.09.27.18.48.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Sep 2018 18:48:33 -0700 (PDT) Date: Thu, 27 Sep 2018 22:48:24 -0300 From: Leonardo =?utf-8?b?QnLDoXM=?= <leobras.c@gmail.com> To: lkcamp@lists.libreplanetbr.org Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>, Finn Thain <fthain@telegraphics.com.au>, Robert Richter <rric@kernel.org>, "James E.J. Bottomley" <jejb@parisc-linux.org>, Helge Deller <deller@gmx.de>, Martin Schwidefsky <schwidefsky@de.ibm.com>, Heiko Carstens <heiko.carstens@de.ibm.com>, Geert Uytterhoeven <geert@linux-m68k.org>, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, oprofile-list@lists.sf.net, linux-parisc@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH v3 2/7] drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled Message-ID: <20180928014824.GA10504@WindFlash> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-parisc.vger.kernel.org> X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Remove errors building drivers/DRIVERNAME
|
expand
|
diff --git a/drivers/nubus/Makefile b/drivers/nubus/Makefile index 6d063cde39d1..1daa51217e95 100644 --- a/drivers/nubus/Makefile +++ b/drivers/nubus/Makefile @@ -2,6 +2,7 @@ # Makefile for the nubus specific drivers. # -obj-y := nubus.o bus.o +obj-$(CONFIG_NUBUS) := nubus_all.o +nubus_all-y += bus.o nubus.o -obj-$(CONFIG_PROC_FS) += proc.o +nubus_all-$(CONFIG_PROC_FS) += proc.o
Avoids building driver if 'make drivers/nubus/' is called and CONFIG_NUBUS is disabled. Avoids building proc.o if CONFIG_PROC_FS is enabled but CONFIG_NUBUS is disabled. Signed-off-by: Leonardo BrĂ¡s <leobras.c@gmail.com> --- drivers/nubus/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)