Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1443328imm; Wed, 26 Sep 2018 18:41:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV60fOTq12sULwm3yLZQAsvoNHq/sxW2M/vy8GQuCDRXGLDGJvZBHLFzBq8OWfihI92/NacYA X-Received: by 2002:a62:7e81:: with SMTP id z123-v6mr8838947pfc.139.1538012467976; Wed, 26 Sep 2018 18:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538012467; cv=none; d=google.com; s=arc-20160816; b=z7YrTN+AD3lv6GyyvzfW/JTXEu5JTIHBu5Z0OtCW1R6uuCGkYDQ2UcJonma+SAPa/x tBI4MAXB/z6eV4x6/fHEhqctFRvHxxRShXbPGyRPo9tqBtw+hqjARaxCXsW0YwluLA/l nhAxeXkZ85fLu9YMV8wdSaRTAouKhyTjOV1lWK9/SiqOyBObvFnOFFoZCVIqNzd+w6It eLR1UM07U0vaLfH6+FiQzDwYREHC8/p0g6kCbx/AEn4WICYvzyqbAKTukBXR/brWCPGM PbbPQQ33ckgTCig3vW/sWjOXsTF1J42TWXYr+0f6VqrAF+2iIA9iklWnIIIxNvHPnpbn P1aQ== 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=jyUNzx3gGEhacAFHxdTvJeeM9S3Ikxb5u9mzTlFo8ddyq/p1N2vIsb+uXkVQS+eDIx ky6Tmd7zjerPmC08VU9dZ4SQQQGsYa7ULyFaDBaH2Ir1UUnTXdeYQ5CZdacJ7rpuB8Ow BTAkC8defDeXf5UQaCtWMX5jBGQS8h10lQkcchfKPM23nq9ubugVIHGsqqXfpLrlXWwI rAGOWiER0KUXH4m2N5Nkv/s7jd9bmeM6VFetf3kKWvFw3AUtXuPkJvlc0MyC5mYeKU1I rOCNmqJcJI/AecaRDDbyxXzLFDg15o6Xh8iUHeFhfL9/q8aTZRvdus+R48MSRqNR5Go4 T/Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Tza4NE0h; 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 m21-v6si628002pgh.664.2018.09.26.18.40.53; Wed, 26 Sep 2018 18:41:07 -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=Tza4NE0h; 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 S1727271AbeI0H4P (ORCPT + 99 others); Thu, 27 Sep 2018 03:56:15 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:43540 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726962AbeI0H4O (ORCPT ); Thu, 27 Sep 2018 03:56:14 -0400 Received: by mail-qt1-f196.google.com with SMTP id l16-v6so1061541qtq.10; Wed, 26 Sep 2018 18:40:28 -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=Tza4NE0h50eH0auHPhztiJ+Hc18T1byxhVMJvrgmR41lBE8Gsz+Yyq3rQ7Fm1WeJle 6BEgR6uSENMVaMe/EdYweeoLb2q2ly7FXiBSrVm2O3k2HG0XJwM+wNanBk5J2VqIMMzU 0ISvQW+JHh3CzxBqEi8yMN/qDOgr0ebkEhoId+I7KHwuANY2LF8mAloDJ3p4l+pwQJtF d7tcohjY8Lf6vIJxwSp+EYR3ATRgOVEYplhMeS/OimFF/pUnA5Vz/OUvyjBhC/4IJMER 4mSgq7rhEddv8Yu2JUABr2fJb5Lj7IDQiIZX6ZEgKP5992UfO8Por5EC7yoa1sFnxZr2 EgGg== 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=uKPhu0WDlbHGvJ/kxGoqb63+htaEv5r2ra/JNTD8cpk4SH4k+XRlVYKNb5zNmR6Fwr EnzIQmoYfsxuUuunOJQKpQrBXlabyt38R14QI4Gsaw9Zn0ngDxIZdGTxB1Cr9yGhySsQ V1EBtVE9aQJA2SiUZStSPXczDDkE+GiyL1r/IZBgnYMaEjZCb1F7qlWzKl9VVWBBJOtA tuYhaRlMYnuIXvKSsSEuBFI2ufWxs1yNy0oHr+C8+FRU2cle2ow3aLnaSpfqV9XHQQ6H gy/1DqhyPtiUm1q5hPP/vNzR5RBpTGfzbsD+t8CgHCxEPfCyRerBwkywP8PMp4E22FdC nlbw== X-Gm-Message-State: ABuFfoitayanSTzwLUocW6anTIqKZbKNOrFQech0IBk8m9rdCp7QZG2I NQu/TFBwWkv5m1rYds6qDO8= X-Received: by 2002:a0c:e80e:: with SMTP id y14-v6mr6394038qvn.23.1538012428501; Wed, 26 Sep 2018 18:40:28 -0700 (PDT) Received: from WindFlash ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id 8-v6sm488422qtv.38.2018.09.26.18.40.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Sep 2018 18:40:28 -0700 (PDT) Date: Wed, 26 Sep 2018 22:40:14 -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 v2 2/7] drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled Message-ID: <20180927014014.GA8972@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