Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp417956imm; Fri, 28 Sep 2018 00:16:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV63f/VSvs2uckzK2jyd9hViSfeIR8zPnnxUPgo/EKunP1iJXFXXKbIwuNxzws6rxQuzi4RIV X-Received: by 2002:a17:902:ba8b:: with SMTP id k11-v6mr15106681pls.12.1538119011822; Fri, 28 Sep 2018 00:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538119011; cv=none; d=google.com; s=arc-20160816; b=OuOwoBd2dE5Gua5VX576j6rkrCR2BMJm+X6zi/5g7BvrCt2ofiiUmtmUUf8CghnluB TTvxcNuCpjjV9AYmzOtRK5yWvUuXTZubMwwNiAYiecI1Wh94nsk7vviYJy4+sv318nXh sxPMJztbeackDli9IYGdLUewYlABjkZP4YPxTs4+t4q3DE8bLIKvVIvZG6aaursVTV/w oDzL9tqnDJ0En1zcpWN/xQZHgH/QRs/HjwWG9Y7PydUXQmBecjkjxYjfUtHXRkizCvVN 2Qa1fRhflyrfsePQZSvuaF0l6drfkgANFL8kbkV1GnjT2iCZg5qDn7UB4EENSjWH+Izr b27w== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=7C4fZ0Fp1lJGW5cEIiuIPLKxEc8XzuJWE+X/bpitQf8=; b=ltviC+PxVlStXQMl4GXxb7M+/rCn0PbfhbDkii06eC+kHDEirU0dcLvbJ8EAnUlzSq rlfmTfDQiQVEqz/ebP0qt2Mx10va6G1I2+WdkCeQM0OFvcwUb7DPha5K14kIb7cU5DZ3 m0n/8shSIBFPBQDPXiAjLxLzNe4N+mykljWP1STRGIsMYzw5fJGQ3BUv/Ii0yuKdXaPM ViBNJOq4Na+cfJy1lqw96HUdEw4OS9yp5BdXhI+yIisBa2uplKiqURpz9meLUyZ682Q+ +GFEupKVVSYeImQSwVVkFedbU8Avv9O5pRsJN/70ZvOV67WQsz2V+uNyu8ypPE0zsjn7 7quw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=Gq8U9rHc; 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=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o127-v6si4287441pfb.20.2018.09.28.00.16.35; Fri, 28 Sep 2018 00:16:51 -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=fail header.i=@hansenpartnership.com header.s=20151216 header.b=Gq8U9rHc; 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=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729123AbeI1Nho (ORCPT + 99 others); Fri, 28 Sep 2018 09:37:44 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:53086 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728813AbeI1Nho (ORCPT ); Fri, 28 Sep 2018 09:37:44 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 002E58EE267; Fri, 28 Sep 2018 00:15:22 -0700 (PDT) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xYfAv1yIy9AE; Fri, 28 Sep 2018 00:15:21 -0700 (PDT) Received: from [172.20.5.140] (unknown [46.218.58.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id D9C928EE0CE; Fri, 28 Sep 2018 00:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1538118921; bh=hN0XTO1lKhzoem1eoE1Wjm8HabC9Uf9ZBsrLDrLVMdM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Gq8U9rHcGJ58nt/Gj92pVF0iGMhfnJxvzwulKrOA7n3iRMnsLM95xEM5mUyrVz7KU prvbNng897gAYWQy/EY4uTd3BCbXozWqNLIC9FhQhu5JktHEXS9DEdU0blFTnkpBwn AOG7054fWYnRQ1w8VcjNrqmygWtjWGNYEpihMuy4= Message-ID: <1538118915.3593.4.camel@HansenPartnership.com> Subject: Re: [PATCH v3 3/7] drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled From: James Bottomley To: Leonardo =?ISO-8859-1?Q?Br=E1s?= , 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 Date: Fri, 28 Sep 2018 09:15:15 +0200 In-Reply-To: <20180928020816.11251-4-leobras.c@gmail.com> References: <20180928020816.11251-1-leobras.c@gmail.com> <20180928020816.11251-4-leobras.c@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-09-27 at 23:08 -0300, Leonardo Brás wrote: > Avoids building driver if 'make drivers/parisc/' is called and > CONFIG_PARISC is disabled. Is that really a problem? The drivers/Makefile has this: obj-$(CONFIG_PARISC) += parisc/  And you just overrode that by forcing the build. It's not even clear we should refuse the build in that case; how would we know you don't have a legitimate reason for the override? Signed-off-by: Leonardo Brás > --- >  drivers/parisc/Makefile | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/parisc/Makefile b/drivers/parisc/Makefile > index 3cd5e6cb8478..80049d763aa0 100644 > --- a/drivers/parisc/Makefile > +++ b/drivers/parisc/Makefile > @@ -24,5 +24,5 @@ obj-$(CONFIG_EISA) += eisa.o > eisa_enumerator.o eisa_eeprom.o >  obj-$(CONFIG_SUPERIO) += superio.o >  obj-$(CONFIG_CHASSIS_LCD_LED) += led.o >  obj-$(CONFIG_PDC_STABLE) += pdc_stable.o > -obj-y += power.o > +obj-$(CONFIG_PARISC) += power.o If we conclude the use case is legitimate, that's not enough: the two inner symbols are PARISC only but CONFIG_EISA isn't. James