Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp795084ybb; Fri, 10 Apr 2020 10:14:52 -0700 (PDT) X-Google-Smtp-Source: APiQypLKoLe1UtrGW3H14hWGkLp6/Mpxl4MoDy5m5PbjwkptHVRTydodW7V76GYxi55MXFi765dS X-Received: by 2002:ac8:3805:: with SMTP id q5mr221526qtb.46.1586538892321; Fri, 10 Apr 2020 10:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586538892; cv=none; d=google.com; s=arc-20160816; b=ReumBIbVCBYDxCNKpa+lJpPGcy1OfZvcqLl8ncescgvkH1+vhocCeNAreD5pnszfYd iDyvCLWFZLNYhZdr/zYDaDcIo7ePZxulN0PxEGPWiYyV60jUYG1zKtRQAhFnE4Le4fQG IUEJVBcrbcH/rj8IYCsPKWR0f6QB2+6nWC6uSrsdrxNHJcvvxbk8KK1VVi2wkUHmZUYu eJCrQpWY1RL9hDotNWtS7GF7fPtnBt2jQ3F6yMlFCqVBmUPK8CKciuN6dsNul+zJ7iPl FabPJDtvP3L/NGNPV9va51ICIGktc5DO9XsOO9XhxGLll08gZoLiip9p67Q16d/lT1Um 3rBw== 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; bh=IM1Dms+6Kk6uSoOVXDf++gqgf8pSHSOrUNNPGKpHdFY=; b=KBjVLl2Yqe0GKWcE9sFdfakAnkG6TjgtxWL2wj/EXkP/r0BgyvHLdna4Be5bkEAiOM 7/3PQXAl0rk8glCTbGHHlhXbyCVRruOwk2BXCUBfmUVpqb9uonVns6V2gJONdSALVkV0 Gq/bA7an3leyhoJ/g9kmdwkS/5UeB9uwpR13+soT71eqq23H9F+4gRUStGazz49XU9RB qxkHofhLg1vGIOvg9kBwKTt0sDO/95jm1zKu3J5GtPdzXRxeJxD5zCRHwyaLLmBTYgrw 0Yq1tKce8dO1PuRzPxc8Re+sPKi3cJdMuytgApQSN7YXseheVfrgSyOeS/Bd/eRbHWUY zWPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=HV2la9hQ; 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 j185si1614033qke.41.2020.04.10.10.14.34; Fri, 10 Apr 2020 10:14:52 -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=@ziepe.ca header.s=google header.b=HV2la9hQ; 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 S1726671AbgDJRNX (ORCPT + 99 others); Fri, 10 Apr 2020 13:13:23 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:34444 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbgDJRNW (ORCPT ); Fri, 10 Apr 2020 13:13:22 -0400 Received: by mail-qk1-f193.google.com with SMTP id i186so2848176qke.1 for ; Fri, 10 Apr 2020 10:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=IM1Dms+6Kk6uSoOVXDf++gqgf8pSHSOrUNNPGKpHdFY=; b=HV2la9hQONCVfSMQQuksMMkJuwjAeD273zC8VodiNbmtqcBgp2ySsLByOsTc1wzOMr Q9UfQ3z57uAE/AWLeIkDYBqxMsgSFKVaorYpEBWRMLbBFkKVnmwYANj6bP3Btwm2uths L9byXcBZfaHUEkD0RCnPWYbb3RLvr6yjpdT+E3khm/EiDCkUDGNNZMO4Fom5Xpr1b0rM lbfhPKbdmkL+FSBFPFKRkQPoLz4AWsJLrV3BqyY8BMDpnEVBFFhkxyXkMSxZ//Z/bz2W VRZdiIuzKZZicmBrIzbxO4CEGwy9CxOfE/paIO4nviIEqyU173faTtrmigfjHx+WYbQX 5o7Q== 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=IM1Dms+6Kk6uSoOVXDf++gqgf8pSHSOrUNNPGKpHdFY=; b=GNMxKc2HU7KO5V/SzTLongeDMo/qbKa4lq1PtSWbRQevzJKSIWa1mci8uH44cOYRe5 ABeGKQzBOn+jfrSck2uZ/AqEP5N3kTRVLQNHr9cCWfa1OlXGup0GwjTjr159//LQeHjU nrFrn67FZph6lvKvkedR6sWxxkrxWOTZXRFTCcrL4KkRpAwP97pGgEc4Hk3fKO3ZBhbQ RewGBZnUezFtfCHbMzEfZmSV5zBKy5pEb+qqnWUu0ZB/X+8EXEsjG+V9ppjG8bKbutB5 u3HTxSSyPnzACZgE4enuXQ51QkEsZJ1RN6UoEEzscNMccW/1djBKEJUX6PVGu2YgPyba a9oA== X-Gm-Message-State: AGi0PuZJHUhZfE2fRC0ugolff3rYWHDc8h78ocLCAdruFDagFW0x4vbw rkAqErwXyd8UkqcCyuv6ywwY3g== X-Received: by 2002:a05:620a:a41:: with SMTP id j1mr5046527qka.86.1586538802345; Fri, 10 Apr 2020 10:13:22 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-57-212.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.57.212]) by smtp.gmail.com with ESMTPSA id m10sm1997447qte.71.2020.04.10.10.13.21 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Apr 2020 10:13:21 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1jMxDU-0006Dq-Uh; Fri, 10 Apr 2020 14:13:20 -0300 Date: Fri, 10 Apr 2020 14:13:20 -0300 From: Jason Gunthorpe To: Saeed Mahameed Cc: "jani.nikula@linux.intel.com" , "arnd@arndb.de" , "narmstrong@baylibre.com" , "masahiroy@kernel.org" , "leon@kernel.org" , "Laurent.pinchart@ideasonboard.com" , "kieran.bingham+renesas@ideasonboard.com" , "linux-kernel@vger.kernel.org" , "nico@fluxnic.net" , "linux-rdma@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "davem@davemloft.net" , "a.hajda@samsung.com" , "jonas@kwiboo.se" , "netdev@vger.kernel.org" , "airlied@linux.ie" , "jernej.skrabec@siol.net" Subject: Re: [RFC 0/6] Regressions for "imply" behavior change Message-ID: <20200410171320.GN11886@ziepe.ca> References: <20200408202711.1198966-1-arnd@arndb.de> <20200408224224.GD11886@ziepe.ca> <87k12pgifv.fsf@intel.com> <7d9410a4b7d0ef975f7cbd8f0b6762df114df539.camel@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7d9410a4b7d0ef975f7cbd8f0b6762df114df539.camel@mellanox.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 10, 2020 at 02:40:42AM +0000, Saeed Mahameed wrote: > This assumes that the module using FOO has its own flag representing > FOO which is not always the case. > > for example in mlx5 we use VXLAN config flag directly to compile VXLAN > related files: > > mlx5/core/Makefile: > > obj-$(CONFIG_MLX5_CORE) += mlx5_core.o > > mlx5_core-y := mlx5_core.o > mlx5_core-$(VXLAN) += mlx5_vxlan.o > > and in mlx5_main.o we do: Does this work if VXLAN = m ? > if (IS_ENABLED(VXLAN)) > mlx5_vxlan_init() > > after the change in imply semantics: > our options are: > > 1) use IS_REACHABLE(VXLAN) instead of IS_ENABLED(VXLAN) > > 2) have MLX5_VXLAN in mlx5 Kconfig and use IS_ENABLED(MLX5_VXLAN) > config MLX5_VXLAN > depends on VXLAN || !VXLAN > bool Does this trick work when vxlan is a bool not a tristate? Why not just put the VXLAN || !VXLAN directly on MLX5_CORE? Jason