Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1756023imm; Thu, 14 Jun 2018 03:25:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIZo4XE6S3eZzo63xe4P41mTwrvL9Hsl3dQp6tVZHxYNeSd7qWVgvkA8DlYiuanWFuLnYyj X-Received: by 2002:a17:902:b40f:: with SMTP id x15-v6mr2403896plr.270.1528971915242; Thu, 14 Jun 2018 03:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528971915; cv=none; d=google.com; s=arc-20160816; b=BICFnApU1wnU6F99ESg1glBQl4DxtQ6yDzxYI0iUQIZmc7Zx0EeLILMKZicqFLg0gh eM2A0Jo8qNb0SxE6tTEr7A7dCmfcunL371JFrcusMcT0vO2ynoIsMEI2bDa5WGxNPFp2 M1RL0qR/pTTYeMk38Vf2OnI5dBPcBvWwy4AxqGpvR7sMtu+EtNZQunBaM26heEJz+n1h +jpk6yd5nWsSNppFTuZTTzsJ17Idq44zaxDM6nTHsnbIhboE0JwLYk1cQISvFvOQxC5m ekvMKA197xDhOohnDcS+Vp562gUaxRxcUOdICFoTD9o0/sgeIivJouA2wUhLRZspelpJ ofZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=TRCAIgu+PeCNSVEGP/EzxiRSqB73Cy5PV52lym+O9Js=; b=kbOtWovwcyx3czOq1OHetev5HirHKev70AR0kxiO38PHLAFgTGSnpxjs2OsatBvoM3 WVIcjy4tAa8Y2Qdt5GkeG0T9anf+8wsGTOI3x6utdW5L1WgDBKJ199M1hYlR3E2CNfrK 5BWnSV069AAEKDJ4Jp40jresafxKVvD5YJVjzEpOcq8AxvTQEqHcVW0GhQAy2Ar3zvpv 6mrfj7Oes1rqaGICZzy4F7ZixDeJ/boLhDP7oYYq6AW/tDV+AICFQ181yWlrre163TlJ HkKppCe2AN5Aq721RRM3wFz1Z2KUwV5cwgJPb+rhxy/x27aAa7OJsepgnFon9QUX0/w0 6WPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=eY2hU5tz; dkim=pass header.i=@codeaurora.org header.s=default header.b=eY2hU5tz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si5219176plk.299.2018.06.14.03.25.00; Thu, 14 Jun 2018 03:25:15 -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=@codeaurora.org header.s=default header.b=eY2hU5tz; dkim=pass header.i=@codeaurora.org header.s=default header.b=eY2hU5tz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754978AbeFNKY0 (ORCPT + 99 others); Thu, 14 Jun 2018 06:24:26 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:41764 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754790AbeFNKYY (ORCPT ); Thu, 14 Jun 2018 06:24:24 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8F510601D2; Thu, 14 Jun 2018 10:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528971863; bh=1Z1xYTaj9n8p28FEJkNb8TZLUkw7HSwkKbEARi5FR08=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=eY2hU5tzrIxSJq1II8ouTibsOdNzOyTr9oz40R8xMXu+PBT3HJzQqPa6opXYuECPP 74aSv9nwCRs+lIt+9A9Hi5Ai7Ay/84Nf1joYp8E1puLx1jr6LuKtZUpzbJ929OezQh IDqfP7OVwsuzPO0GYknSwRjv0BPJUhIlsAQsL9MM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.79.40.126] (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vivek.gautam@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 535B76022C; Thu, 14 Jun 2018 10:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528971863; bh=1Z1xYTaj9n8p28FEJkNb8TZLUkw7HSwkKbEARi5FR08=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=eY2hU5tzrIxSJq1II8ouTibsOdNzOyTr9oz40R8xMXu+PBT3HJzQqPa6opXYuECPP 74aSv9nwCRs+lIt+9A9Hi5Ai7Ay/84Nf1joYp8E1puLx1jr6LuKtZUpzbJ929OezQh IDqfP7OVwsuzPO0GYknSwRjv0BPJUhIlsAQsL9MM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 535B76022C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=vivek.gautam@codeaurora.org Subject: Re: [PATCH 5/5] soc: qcom: Remove depends on ARCH_QCOM To: Niklas Cassel Cc: Andy Gross , David Brown , linux-arm-msm , linux-soc@vger.kernel.org, open list References: <20180613125401.11734-1-niklas.cassel@linaro.org> <20180613125401.11734-6-niklas.cassel@linaro.org> <20180614083116.GA18093@centauri.lan> From: Vivek Gautam Message-ID: <0d81a67c-07be-21f5-da2d-ef18b039d30d@codeaurora.org> Date: Thu, 14 Jun 2018 15:54:18 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180614083116.GA18093@centauri.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi NIklas, On 6/14/2018 2:01 PM, Niklas Cassel wrote: > 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. Are these other drivers which select these Kconfigs not QCOM dependent? We should make them so if that's not the case, and also add COMPILE_TEST for them too. > > 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? To me the first and third approach look same. So I will leave it to Andy to decide which is cleaner. For 2nd option, I would still say that there shouldn't be a need for these drivers to be compiled outside of the ARCH_QCOM, besides for compile test purpose. Thanks & Regards Vivek > > > Regards, > Niklas > -- > To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html