Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1938130pxy; Mon, 2 Aug 2021 14:26:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2bY+a+vjLBJMDkgccrTNDlPGxZ9T/GV/zMjUNMwS17K0KN7K+trN2R1/i0FWOO8+ztN0f X-Received: by 2002:a17:906:b30d:: with SMTP id n13mr17633078ejz.401.1627939604187; Mon, 02 Aug 2021 14:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627939604; cv=none; d=google.com; s=arc-20160816; b=0KO8C9BVbiSATW71+6kJs2a9dQg8Yn0NDBV64u3evebrOXLZn5hmvgxm2o+QlZBNv7 xz0BmZzI0427c2nA6O9K35IsnFVeuxECC1X7fe5G7LPv+WzvqmXegXqVLCYFyw6KNMuD dY6TVcjIiavm1JchuV8/bPFz+SrRBb4NXktJ5CCHfq0876C4E6a2036uPGH9717+UgQu VqrKWqyYNWHL9Pz82k3IHyy5rDmgepZnpdqKuejKpc7+KIxUTzd4JsDU+9T/47sJxNhm P0B92/hUMGkKqC+paBL8D7YaeJvEKzEHKgNxOhhg68O7XvtHq+eTNWExuMI5c8RWkPK/ 27kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=Sv74SGEK3eqsRtIJk8es2LuCGrVnnCtM+gq2y/hqKLA=; b=LBqP0Hl1U5ZsSgr/SQl3BLplNi7N8U63gI+sx++ETosTK1sSzJqLI1WpIQktQs+e+V aYr/R+vdYsU4zCX79kn+ZLWqOISDYT0snim8v1C7ceV58mErw438TceTnreZi9kE/r/z Cjfola/547QytZfebTZH2nntUXYbODViE5W7NlKqWzq0VV5qOSv/TG+5GZx/B/NakZVr v/s4Y3bapLMiWA6zV+1a2WZY85NyUXcEuLU/zNjhC816tfSRu95VxRFVX52nQjU84UwV OLySaF/BHgYo1MeF2x037X48l3qLmJXkGsZ84C3gs+9btzwLwoorURcSQHju82CnZn+d UR4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=m56WwsFD; dkim=pass header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=ieIfu5e1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gf9si11592248ejb.635.2021.08.02.14.26.20; Mon, 02 Aug 2021 14:26:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=m56WwsFD; dkim=pass header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=ieIfu5e1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232492AbhHBVWf (ORCPT + 99 others); Mon, 2 Aug 2021 17:22:35 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:56285 "EHLO pb-smtp2.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232387AbhHBVWd (ORCPT ); Mon, 2 Aug 2021 17:22:33 -0400 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 3AE0DD1F9E; Mon, 2 Aug 2021 17:22:21 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=CRe+PDqlDBc1oefWEPXwlMOMctNURIEIHe/d9Q t60Zw=; b=m56WwsFDwPpRT2I7QecE9QLtZve1ynAPPvMtr86IMieAQ0k64QIjcG ere3sLLtO6zvM5XKKEBpLA8U5yOsgOFdCEFYNjnjyv6YFtjUzpti+ITFKrna8M+t hD4UfkW89CoeS57/fwcMo5aLVf0BKL2f6JdTGHEv5wnY7sE4HMEuA= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 306C3D1F9D; Mon, 2 Aug 2021 17:22:21 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=fluxnic.net; h=date:from:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type; s=2016-12.pbsmtp; bh=CRe+PDqlDBc1oefWEPXwlMOMctNURIEIHe/d9Qt60Zw=; b=ieIfu5e1D8DeXYWVBpJ3d47r+18sJuZPvVsfKLoBGLvrJ7QCly8af887QGWpjGtlqC2Q0DlUCVdRiqDh8fGFYNz0LDeMezu17uoVXLzjP4HiDrUKICoTGn66qmkxcr5UFcacvfUy/fmF4pjGlREKRXTM4p+y0kPcXqu/WWCbsDM= Received: from yoda.home (unknown [96.21.170.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 55557D1F9C; Mon, 2 Aug 2021 17:22:20 -0400 (EDT) (envelope-from nico@fluxnic.net) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTPSA id ED3792DA09B9; Mon, 2 Aug 2021 17:22:18 -0400 (EDT) Date: Mon, 2 Aug 2021 17:22:18 -0400 (EDT) From: Nicolas Pitre To: Arnd Bergmann cc: "Keller, Jacob E" , Richard Cochran , "Brandeburg, Jesse" , "Nguyen, Anthony L" , "David S. Miller" , Jakub Kicinski , Arnd Bergmann , Kurt Kanzenbach , "Saleem, Shiraz" , "Ertman, David M" , "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net-next v2] ethernet/intel: fix PTP_1588_CLOCK dependencies In-Reply-To: Message-ID: <7q2p5954-3062-po4-ps5r-9n30n5663ns3@syhkavp.arg> References: <20210802145937.1155571-1-arnd@kernel.org> <20210802164907.GA9832@hoboy.vegasvil.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Pobox-Relay-ID: B87DEF62-F3D7-11EB-A6DA-FD8818BA3BAF-78420484!pb-smtp2.pobox.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2 Aug 2021, Arnd Bergmann wrote: > On Mon, Aug 2, 2021 at 10:46 PM Keller, Jacob E > wrote: > > > > You can do something like it for a particular symbol though, such as > > > > > > config MAY_USE_PTP_1588_CLOCK > > > def_tristate PTP_1588_CLOCK || !PTP_1588_CLOCK > > > > > > config E1000E > > > tristate "Intel(R) PRO/1000 PCI-Express Gigabit Ethernet support" > > > depends on PCI && (!SPARC32 || BROKEN) > > > + depends on MAY_USE_PTP_1588_CLOCK > > > select CRC32 > > > - imply PTP_1588_CLOCK > > > > What about "integrates"? > > Maybe, we'd need to look at whether that fits for the other users of the > "A || !A" trick. I implemented "conditional dependencies" at the time, which is syntactic sugar to express the above as: depends on A if A != n depends on A if A etc. http://lkml.iu.edu/hypermail/linux/kernel/2004.2/09783.html But Masahiro shut it down. Nicolas