From patchwork Thu Sep 27 01:41:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leonardo Bras X-Patchwork-Id: 10617143 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 3FF2C913 for ; Thu, 27 Sep 2018 01:41:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CF9E2B37B for ; Thu, 27 Sep 2018 01:41:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CC612B3B6; Thu, 27 Sep 2018 01:41:34 +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 B6BE32B37B for ; Thu, 27 Sep 2018 01:41:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727057AbeI0H5O (ORCPT ); Thu, 27 Sep 2018 03:57:14 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:33360 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726659AbeI0H5O (ORCPT ); Thu, 27 Sep 2018 03:57:14 -0400 Received: by mail-qt1-f194.google.com with SMTP id i10-v6so1132004qtp.0; Wed, 26 Sep 2018 18:41:27 -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=wFwPD257gEf6jcXSywUF4KDj7r7qvliCjiZQYQyJ1vc=; b=ur1ZvkjRUXOqVDnp6VeaPbI05opelG949PtGWPZmLOV4lvqrnb05gsnj0ApFmmIch9 pEhIGstSrm6PbM/e+/3nImbuj7Hh6NDW/w9HRYTkRix6ZozRxKTLZQlnY8p3+fYq4xTR kRBriwslUg8Tq+J4tBAr9bDCZjvRqxWrz4h9gw3WecHJDI4Cvz9GTJAskURF4Gw/r71f sfteDTGqCgygjLOrTNXeOmvvB16LYXAom2bpiMwWLXYt8t0h5O1TrhuyAMaQ3Ux6x4f1 tHrkTw3nY90YqN+nJhgZden+VaBOCdzbyPDglq5QqxvL1dwRuMnDF1Au3Z0Vj75gcCyJ kaRg== 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=wFwPD257gEf6jcXSywUF4KDj7r7qvliCjiZQYQyJ1vc=; b=AM/uuiJklsG4lKtYDEsIzVSgHJpsdZefOn5x2ZbXZ0VBHnV4JOs+C3azCerswnfcQ5 6GONqQo3lo8njcocjTMWVr5QgpTvHx99dGhUEM2do3IoyKB26O2zuaV/2DupEG83PtqG N4kLdxx/uNprTWiXHFELwMWuV3W3F2QEP9WLLZHnfeb56JM8O27u/01BShobwzquikoS N8eWuzWa/3a52nfVuIUnHWaT6TF4VcVC2lFFeBI2ckcxLMcYOZ8HG0J+SNuped0+D4dS MnnSGyi7QV4oTPdh/EPi8nRMhDsiDMfeRHlUA2T7NTgd2Jkn7ebxOXYLLRAXNKBjIWI5 fUkQ== X-Gm-Message-State: ABuFfogCCw/kX0UUcqySfy14+HUQ5MesBz4Qyft0QdctI4m8p4skUdlr D0tMFmopOH8ebvNIng+EfPg= X-Google-Smtp-Source: ACcGV635gQaX0CnFQyT2kIQ+eG4LOHdwks0KjhtZuZCAYqxtfgUdc1AMpT5ZOXrtimSaq+TGYVuKjA== X-Received: by 2002:a0c:b145:: with SMTP id r5-v6mr6367391qvc.97.1538012487098; Wed, 26 Sep 2018 18:41:27 -0700 (PDT) Received: from WindFlash ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id o7-v6sm463119qkc.67.2018.09.26.18.41.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Sep 2018 18:41:26 -0700 (PDT) Date: Wed, 26 Sep 2018 22:41:13 -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 5/7] drivers: s390: Avoids building drivers if ARCH is not s390. Message-ID: <20180927014113.GA8984@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 s390 drivers if 'make drivers/s390/' is called but ARCH is not s390. Signed-off-by: Leonardo BrĂ¡s --- drivers/s390/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile index a863b0462b43..0575f02dba45 100644 --- a/drivers/s390/Makefile +++ b/drivers/s390/Makefile @@ -3,7 +3,7 @@ # Makefile for the S/390 specific device drivers # -obj-y += cio/ block/ char/ crypto/ net/ scsi/ virtio/ - -drivers-y += drivers/s390/built-in.a - +ifeq ($(ARCH),s390) + obj-y += cio/ block/ char/ crypto/ net/ scsi/ virtio/ + drivers-y += drivers/s390/built-in.a +endif