From patchwork Wed Sep 26 01:52:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leonardo Bras X-Patchwork-Id: 10615087 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 0BA0C112B for ; Wed, 26 Sep 2018 01:52:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFC6F2AB50 for ; Wed, 26 Sep 2018 01:52:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3D712AB5D; Wed, 26 Sep 2018 01:52:47 +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 92E752AB50 for ; Wed, 26 Sep 2018 01:52:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727299AbeIZICv (ORCPT ); Wed, 26 Sep 2018 04:02:51 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:43244 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726321AbeIZICu (ORCPT ); Wed, 26 Sep 2018 04:02:50 -0400 Received: by mail-qt1-f194.google.com with SMTP id l16-v6so15139893qtq.10; Tue, 25 Sep 2018 18:52:26 -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=iSiVGxFWRigTCK+0CKFW0C5ujNtzh890wwlh0T9vG8s=; b=ac59sJB30DrbxZJjoJ+rzattfu9sR5VUA2craYN+DGKDQCnhUxIfAzIR2jer1ZAXwQ HXsjNiV8/s5Btwq4LH3XBufoxTV2CMBLnSzr1TTMxJeHIFtN9GUiMsNMuJw8avDObO5d w7r9l3nA6gX+yoTU/SG2pHuXUUt/KxIYhtYVGXOwx3hk95e3Q7qyb//5DfkMbxA3iOZS aARbB/QJniPrM96Hct/XGSdIIsJ1mZu8KzTMlOs2ReW2/JA2lQg599rc+xsmaDO1KkEs p4VAYQnp+mp6wpXMJNxDDkLHmc6vXoTaEOwn+8cKlrbquyE399I1B0sHTu4zPrj8Oq+R rIGg== 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=iSiVGxFWRigTCK+0CKFW0C5ujNtzh890wwlh0T9vG8s=; b=QSZSxoKud3l7qaSPLCYZ7N6XhWjjewndyhwtVCAjRXDX4u0YNImNQPWYeCtuYB3/mK n7g3ZZ7VCeGVHXYuYl5CWO+ckNjNXekfCZQMrAy8+Ad3NfrfZTT/sz2BQTdDeBnOYEGx mQvu7/t30Kwyy3FLe1+KWfnEeNw1WUxcNtwHBW5fAyU/EQlOXrnxIl168PSs8oOr7+EU 3k06tz/8iKQkd5h6b51KkxFge5WJehIePye4bGf+SAlwRRrR6tNbiw3LwnSc7/OecoCd 6v9Ert8ixOXlxZmZeS4FPm6k8oncdHl5G2TxsP+7sqKcLmONWCkA+mBeQMhOdBV9/e7P cESg== X-Gm-Message-State: ABuFfogCNtAuQwBoAHU7Vr2h5jYcLQGq7yuEHdIcQjhJZzGcZg4I42is 3zb1fDdRrlmObJlhNqfD9ak= X-Google-Smtp-Source: ACcGV63kNjGeayLCfRcm2eJdQhEfh20YFCNNfNFEx7MzkIcZhycI/0OtMdKw88LP7iypiLaGdTIKpw== X-Received: by 2002:ac8:1b2c:: with SMTP id y41-v6mr2946123qtj.334.1537926745954; Tue, 25 Sep 2018 18:52:25 -0700 (PDT) Received: from WindFlash ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id o7-v6sm1916563qtp.75.2018.09.25.18.52.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Sep 2018 18:52:25 -0700 (PDT) Date: Tue, 25 Sep 2018 22:52:18 -0300 From: Leonardo =?utf-8?b?QnLDoXM=?= To: lkcamp@lists.libreplanetbr.org Cc: Alexander Shishkin , Finn Thain , Robert Richter , "James E.J. Bottomley" , Helge Deller , Martin Schwidefsky , Heiko Carstens , Geert Uytterhoeven , 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 2/7] drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled Message-ID: <20180926015218.GA14964@WindFlash> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/nubus/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/nubus/Makefile b/drivers/nubus/Makefile index 6d063cde39d1..827301c4a84f 100644 --- a/drivers/nubus/Makefile +++ b/drivers/nubus/Makefile @@ -2,6 +2,6 @@ # Makefile for the nubus specific drivers. # -obj-y := nubus.o bus.o - -obj-$(CONFIG_PROC_FS) += proc.o +obj-$(CONFIG_NUBUS) := nubus.o +nubus-y := bus.o +nubus-$(CONFIG_PROC_FS) += proc.o