Received: by 2002:ac0:8f67:0:0:0:0:0 with SMTP id z94-v6csp1750299imb; Mon, 1 Oct 2018 05:46:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV63xsVwY5DV2hTfhyVKQOFXrr69Zraf/0RlddumhGIxLPqGGAAdkv8pcCaoi+ok6VyP0WMB5 X-Received: by 2002:a63:608c:: with SMTP id u134-v6mr10228971pgb.266.1538398016370; Mon, 01 Oct 2018 05:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538398016; cv=none; d=google.com; s=arc-20160816; b=ZkJRJnmLk4DurSwezm3nIYlUd2BMTUaHZYqJxfj1EOY0SAmjj7ZgQFskkroAHCAtdZ nOtidM2i1r/FhYBr/73xchtIm935WGEL4fY7KpFmewvHddmc1voHk9M/tJCKcFjmEm2e OfxlpoPlbQ4V1jNNtMiaOS4Lj9zCVpbC/FeQh+JC1Ujnxv1wqU2NsvVebcDXa6+mgPP2 YqPUEdSRmoP7GWlgykzjslnpT6l5PYEdNnMdZVSUCVYTzJmvKEuvl5POLcrxy1V2KlwA fAZ3i8SzmiZaXnqhilbPydo+TaQeaeWUNrh4X9FUhhrj+KLpV0zz4hxg17BUfqve08AF uyXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:message-id:in-reply-to:mime-version :references:subject:cc:to:from:date; bh=z3jLcWeVcpmYFERUaSiporZuhHjWaKPprNyqthIEE8k=; b=Dp/N38QY7EbtAadHc8b5qBEEuaPbmsZDRb6saKYKm7CqHn/5gwCWLPEGYNPzEJx6G4 k2DpR0i5gLly7Z3GFrV7LHHq0nN7CIhqlFA89ybg6/yO/6m/e0dgc0EuaVKpYqCnpTb/ KuybQ7jV8SurTxGbMAQHU42G0Bjbl62CkliM7aDXYCyJjd5fXc172C/0jIzIq8u0S1e2 Dkt4+b+1vQM8/DoSkBDKBC1CzExr1Qd1fup9QLsMOjaVHY3+vud1uR40GU1m7CVexl61 s+SXikdpN26VszmW+IyOgn2PyYJliLf3//YyYrVqJtw+0Lg1CnElSMjaTdl2hfzuuouo y+1A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l26-v6si11403757pgb.251.2018.10.01.05.46.41; Mon, 01 Oct 2018 05:46:56 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729313AbeJATYH (ORCPT + 99 others); Mon, 1 Oct 2018 15:24:07 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:38632 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729289AbeJATYH (ORCPT ); Mon, 1 Oct 2018 15:24:07 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w91CYbgB006083 for ; Mon, 1 Oct 2018 08:46:27 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2muhm95vpy-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 01 Oct 2018 08:46:27 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 1 Oct 2018 13:46:24 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 1 Oct 2018 13:46:20 +0100 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w91CkJjD48824392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Oct 2018 12:46:19 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 64D2842049; Mon, 1 Oct 2018 15:46:00 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F2A1242041; Mon, 1 Oct 2018 15:45:59 +0100 (BST) Received: from osiris (unknown [9.152.212.171]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 1 Oct 2018 15:45:59 +0100 (BST) Date: Mon, 1 Oct 2018 14:46:17 +0200 From: Heiko Carstens To: Leonardo =?iso-8859-1?Q?Br=E1s?= Cc: lkcamp@lists.libreplanetbr.org, Alexander Shishkin , Finn Thain , Robert Richter , "James E.J. Bottomley" , Helge Deller , Martin Schwidefsky , 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: Re: [PATCH v3 5/7] drivers: s390: Avoids building drivers if ARCH is not s390. References: <20180928020816.11251-1-leobras.c@gmail.com> <20180928020816.11251-6-leobras.c@gmail.com> MIME-Version: 1.0 In-Reply-To: <20180928020816.11251-6-leobras.c@gmail.com> X-TM-AS-GCONF: 00 x-cbid: 18100112-0012-0000-0000-000002B0D6D3 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18100112-0013-0000-0000-000020E503FD Message-Id: <20181001124617.GA3185@osiris> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-01_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=661 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810010126 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 27, 2018 at 11:08:14PM -0300, Leonardo Br?s wrote: > 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 And then somebody wants to build with e.g. "make drivers/s390/cio/" and it still doesn't work. So _if_ this should be supported then it should work with all directory levels and all configuration options. Otherwise this is going to be a never ending story.