Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp183270imm; Thu, 27 Sep 2018 18:48:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV62BMT26wrAXO6DFnOIfvDiSAdxE+qTCXBXihvX/loj4kZgc6Iv+XgxPjcDeFU59fPVnfXTA X-Received: by 2002:a17:902:561:: with SMTP id 88-v6mr13566095plf.320.1538099337140; Thu, 27 Sep 2018 18:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538099337; cv=none; d=google.com; s=arc-20160816; b=HnRJIFaFgZ2bnHjkatoiNuNyDbaHhrJwGrL03eq306TnNZvxVI7qICFLKlqmNQZp4u UtWXPopdseTk1XkiKqh1pavIllMQ4j119sTYiQG9T0pvuegCHuoYINk9/n9bOSwIJ2lP zsSamJZdBqowJjuWwFApMgV0hOqvpGyCipmA+88an75B/HjnpQwDQnQFi7Lua/UL8sDD KLwjDrSktNJuFsWadPt7pk2opwfYZxsKW3onP9PPuzc8ZRbZQOfYIu00EtIIrXiuky+N 4cXwjWXypcuq1SQ47Z7uAgroOsS3AX50n1mv4P+4R9KCECahezpaKPePNv5i75fRRpjt ZdJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=az4VG2kDleDEIQbELh7WthCOA8Gd6LhdwtP9/ZvOfHo=; b=B27aYK1mWniuJTutNZrgV0XJ/q3KfwZBoQ2/PQny3JGr7KPrrpJJA52MG/fNP9bx97 gjkgVQoNVn4LxQdC+sMPDEYYs/JnsZ164eF1mLjVkL5B3jXQxf68hxGwUDVnLONJk1Q2 Udgo4Cq/Drkzeklfse7dXdYmrXsieN59UPA+B7ENZOkUCtmnjkQRgogRH3+qXZJzLYR7 cC4iaTIgLD8NmD/Rz5jq0/z7+D7WmifJ99UW2InAFCGjHJm3IwSL6wfzsF8/Lq8H7M8Z 1p+5s/nqlmypqvA0fdeqN3urpjxDmc+FaLBnXl6xWGkyoPxnpa7ej7y9aOjiZNWs/6Fj VFAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kDnDEsZa; 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 w15-v6si3429274pgg.529.2018.09.27.18.48.41; Thu, 27 Sep 2018 18:48:57 -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=kDnDEsZa; 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 S1728672AbeI1IJs (ORCPT + 99 others); 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 ); 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-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=?= 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 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-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