Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1659729imm; Thu, 14 Jun 2018 01:32:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKB+eqSosVxJVb2JdVHciwtj92HlJQMfHzekc02lSMxI5s+RlUgJRRzShdGP7VjSTQCbmk5 X-Received: by 2002:a62:df12:: with SMTP id u18-v6mr8507921pfg.230.1528965140095; Thu, 14 Jun 2018 01:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528965140; cv=none; d=google.com; s=arc-20160816; b=S8EJVGCNsyNVDBYZOptrWfirSFQlDLWvHKRNGsGYiQJedfoDV7II5iu4qKFRhsyAfr 1FAS4IOuYIXe/gVz4pqylKv2y2EDMNaovj/tpiS7QKheQDujQdMLI/Ry/HUeRypjSkiF 3rI9dUdEa6Lj7x0HzbnJfS+07OhjcjL+7S8E2iW0TypDeKFrHz2JZ+DrnWLN5+/QzCPl lphls5zvDW1qhlzwbfvex1ZivWMii+gdXO6U5nDzqszsmf7LvNiT2bElhFGVzid/u29D VBq8ibP5HWCP2AC/A9OLu14NMWbvYvLmuWPPxTi5xd0Ctlz5zDO2WdnPRpe4q96oiDFC EVWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=/pkQYusjVpGAy+K+HJh/6A8FTJTW+3NJp75tnMGTCt0=; b=fpjz28H6+vnjtSGchJVFunx0oC6OtDdQ8cj2JwpYDRCKNU9zebxeEizXnVXfI4cSPv Y3C8bw20EudADGZzT+IyW1kdxjjz32029ZMo1DVaBsSMdC2yyp2BN6okcaB4h9LDGIOL ox7OdzQAXbQG2PvDam9N74/WRWSQE9tQtrLre/Pea+Y4en+djV7O640PXp7VL1kKeRTc vcK/5vjchBavBeE6UPLQC5R+0jSyI9dkkeorY2AR1DJ/RP/lv1LBR7CnwjRie9JLhUnq urgny1dMzUpTKC7DtXx5ClTy/EKbwSp+ygrVNmhuu8bVIJpAz9wl34Iiu0JpXYAcAXeW 9XiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ixGk8OQZ; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si4869303plb.100.2018.06.14.01.32.06; Thu, 14 Jun 2018 01:32:20 -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=@linaro.org header.s=google header.b=ixGk8OQZ; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754846AbeFNIb0 (ORCPT + 99 others); Thu, 14 Jun 2018 04:31:26 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:40566 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752824AbeFNIbU (ORCPT ); Thu, 14 Jun 2018 04:31:20 -0400 Received: by mail-lf0-f66.google.com with SMTP id q11-v6so8078707lfc.7 for ; Thu, 14 Jun 2018 01:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/pkQYusjVpGAy+K+HJh/6A8FTJTW+3NJp75tnMGTCt0=; b=ixGk8OQZg2ntCFTwV/QCXReukp+PBM6uJomgSncGTh9alYV0SokxIJOUqortn/qKvN 4pc0Yqv85b2bR+ncWMo3njhEEQXtFSUGNmVep+FOR6LPK9uQ/qclEeu+ETBBnVecQSs3 dLLQaCNCih5SJIeMx/g4sx0i2Uy5diXo3+I18= 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/pkQYusjVpGAy+K+HJh/6A8FTJTW+3NJp75tnMGTCt0=; b=mjI8Xb0giSKHb1PgaG83N/VvXiU6Wh74hTo20Kx4y5wvg6vzDWLNwncWNbExsgQjFv W9kfe4dk+KOspQ2+o4OtrdBNmsD3XuZBom0GNozb6puUaXI07tsyYo6vV/Uhv9qcr92K +B/Ob0w8gF2+c1Gt4hfotbWuJ98L9GOHbvbF46TiyxGvYdlSemlAk1DvOEKZQNZG4Ejl bpFOp94WGFdINnCkI4PyuABnAWH+aQSgy6wFmF5L2qx+B/Zfw5pkROPtiABnPAlGKQo0 v/LC+ZJ9i05EdQ/JAvecAPq1qXysZjRzxbZetIoP8I7RXHWjDmH3uliYU8mIGnSBtqyS eKzA== X-Gm-Message-State: APt69E1fWaNutq+MkwD8KvqyFMHJsGZlgc6wqVzFfr1tNeIjNnBFJTmR WiQZv3N42exGZgtn2FJhni1YZQ== X-Received: by 2002:a19:e218:: with SMTP id z24-v6mr5126970lfg.132.1528965078593; Thu, 14 Jun 2018 01:31:18 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id f4-v6sm849507ljc.22.2018.06.14.01.31.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Jun 2018 01:31:18 -0700 (PDT) Date: Thu, 14 Jun 2018 10:31:16 +0200 From: Niklas Cassel To: Vivek Gautam Cc: Andy Gross , David Brown , linux-arm-msm , linux-soc@vger.kernel.org, open list Subject: Re: [PATCH 5/5] soc: qcom: Remove depends on ARCH_QCOM Message-ID: <20180614083116.GA18093@centauri.lan> References: <20180613125401.11734-1-niklas.cassel@linaro.org> <20180613125401.11734-6-niklas.cassel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 14, 2018 at 12:08:10PM +0530, Vivek Gautam wrote: > On Thu, Jun 14, 2018 at 12:05 PM, Vivek Gautam > wrote: > > On Wed, Jun 13, 2018 at 6:24 PM, Niklas Cassel wrote: > >> Since commit cab673583d96 ("soc: Unconditionally include qcom Makefile"), > >> we unconditionally include the soc/qcom/Makefile. > >> > >> This opens up the possibility to compile test the code even when > >> building for other architectures. > > > > Why do we want to do this when all of it is qcom specific? > > Besides, wouldn't this increase the binary size for other platforms. To be able to compile test drivers that select some of these Kconfigs, even when building for other architectures. The binary size shouldn't increase if they don't enable these Kconfigs. > > Sorry, my bad. Send the message without completing. > > Besides above points, the COMPILE_TEST flag should allow you > to compile test all of these drivers. If COMPILE_TEST is missing > in some of the configs, we should try adding that. > Or, is there anything that I am missing here for the intention of this patch? That is another alternative. So either make sure that all these Kconfigs have "depends on ARCH_QCOM || COMPILE_TEST", or remove ARCH_QCOM from these Kconfigs. A third, and perhaps best alternative is to do like drivers/soc/mediatek/Kconfig menu "MediaTek SoC drivers" depends on ARCH_MEDIATEK || COMPILE_TEST Make sure that our root menu entry depends on ARCH_QCOM || COMPILE_TEST, that way we could remove ARCH_QCOM for all Kconfigs. Thoughts? Regards, Niklas