Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp197960imm; Thu, 27 Sep 2018 19:10:33 -0700 (PDT) X-Google-Smtp-Source: ACcGV62siR3kFM/06Yqca4xaExv9BSZzNR55vOm3Tab/3uQareYyJa1gQtzmhOeL4Cnmf/tRtjNG X-Received: by 2002:a63:ec4b:: with SMTP id r11-v6mr12837524pgj.295.1538100633280; Thu, 27 Sep 2018 19:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538100633; cv=none; d=google.com; s=arc-20160816; b=Mya6XO4HC2n98FrjdLIekrPxCmIiPnTpGqCp7A7VC8yJN9cbRA2TBcCwYEjAuEcR81 vkPR2BOHJAPmGVK3+bZ97t0O1HSWaxxs3/kXk8m7x7YA85XNrB7wq6m5Co9R+g0njOxl GPzr9gjccsqTQ/LipfJ70HBz8Pbd8C83KsDX69Suq7vYQX2iGMp6esd36VVsaGzI1b/T YH4nAGxj3iK4/GX7+mqJzCeJM/8RsNqKs52i3Lj4JGdO1IqKAU959jHXaY5T6fWnKqzI Keqi9W3CB8Yv9cUPCjW3NgLdvNyDLyv9UZDlbx6utp5CIaolKQl/aM1RgPlxheE7V47R oYFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=az4VG2kDleDEIQbELh7WthCOA8Gd6LhdwtP9/ZvOfHo=; b=WqQ4JlQXkolQTbZHPZ1B6WdAdigIRpO0Q137IsVtZ+jz1pITNZobkzZxve6hH2ja66 irj1GDZEMyB3lckpZhiWsiBKYyReXdkvmyr68tVbVU2c3h1JdmHntRmFB8hdfUjp1XmX OMl5CXxGmisi0FqIegCaANwMigcKwNcIXXGEIbkd6ygkeQGdiv/ITsOoWiLjC9YB+B6V Tp4DWH+LJMZAKblsBKzKorSO3mtLJ4n6yj1+lN+4aKEIcP/Swzt73w/uDyJ1l8sWuTKJ Qtl+IzVNIxSrpnA0zoNDo6t5kBptqbFfFSl6XBqmF+IQtZDV4XXyGerwFvfyHn7ERuQI DKJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bkqw+5c1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n190-v6si3614461pfn.358.2018.09.27.19.10.17; Thu, 27 Sep 2018 19:10:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bkqw+5c1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728859AbeI1IaI (ORCPT + 99 others); Fri, 28 Sep 2018 04:30:08 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:32978 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728836AbeI1IaI (ORCPT ); Fri, 28 Sep 2018 04:30:08 -0400 Received: by mail-qt1-f194.google.com with SMTP id i10-v6so5095504qtp.0; Thu, 27 Sep 2018 19:08:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=az4VG2kDleDEIQbELh7WthCOA8Gd6LhdwtP9/ZvOfHo=; b=Bkqw+5c1GtHiTVolD17G662qwMMLu6vxrmwWh2P/Y4hiwFVyI6Orsow3gGZSLhmxYT ExXKENpxj2kslGkCCzlpmfw7IUsaXWyb3pM8+M4pjuC4v4sLgE6uJeUN8yceffxhh+xm Z8IkyslRHX5r1oqcmZkOFGtQxMcu8YH6GDg+S3vWsIhGSWn6dS6DdAaSRhPsCwwfDt3n X6iwRvwqLJ8Ks/epNqXlqCDuf52wLG/+MkR/DftJgY9jYTrwXNwf8T4G1bgbV5YFe/U9 F2QMfGNMAHjM5Kvn1Zdfp99FqZICXpM9WR1H3C+1YzgaEz+HVLUbSdpDP7+G4NbJ5KlA n0fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=az4VG2kDleDEIQbELh7WthCOA8Gd6LhdwtP9/ZvOfHo=; b=UjGAQZfFXRv/OgbpKpJ4+A5nNsrxKTD0ZcP1LMPTN4iso01feLaV8zX1iaEODyCOqG T4y0hlXjxKDAJBTEIo16fRoa0TmS1DcpJimH2o+7u+FXiJ/jWrr3qOAai2fRWDOtC4+w SU0HYTDZq9GphnthwtnRucUkyEUFTQ2ifOKhFsTG5KVEyZok55Etam5HXNe/bxzF9tsl GKMT/8ixGqLfkY/ZEXCJgpPu/WYwIphC1f937sThytjzxK1zL8NXXv4xs3nO10sPZPsa M3lG/OrUuzscJ3PyYbKNMXf8qYwoUdgGo3A52TO6pOMERJbNftXt/I6RC/EJ8uTaTH44 QAdQ== X-Gm-Message-State: ABuFfojdIFFDikLBvW+sywKnEFC/17Y7kkzGq4elRfmHK72xfPbvjG/5 KmuI/w4SlBJKaOiNKTze1jzW/3i6 X-Received: by 2002:a0c:e083:: with SMTP id l3-v6mr3265594qvk.1.1538100526525; Thu, 27 Sep 2018 19:08:46 -0700 (PDT) Received: from localhost.localdomain ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id y138-v6sm731191qka.36.2018.09.27.19.08.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Sep 2018 19:08:46 -0700 (PDT) From: =?UTF-8?q?Leonardo=20Br=C3=A1s?= To: lkcamp@lists.libreplanetbr.org Cc: =?UTF-8?q?Leonardo=20Br=C3=A1s?= , 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 v3 2/7] drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled Date: Thu, 27 Sep 2018 23:08:11 -0300 Message-Id: <20180928020816.11251-3-leobras.c@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180928020816.11251-1-leobras.c@gmail.com> References: <20180928020816.11251-1-leobras.c@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.19.0