Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3818646pxu; Wed, 9 Dec 2020 01:03:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3O0lwZHgkDol/zktM53ERSgkPjkCy1dM7u/e+mKyMg4h81LpFm50zgbeYGAREVtyCn803 X-Received: by 2002:a17:906:8617:: with SMTP id o23mr1219637ejx.274.1607504592483; Wed, 09 Dec 2020 01:03:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607504592; cv=none; d=google.com; s=arc-20160816; b=p1RPG4mqZLd/8cBPuCv6l4YiGvaJUDxhTqJGGLq3sauTkex/vI2KktXGPAAH+1peAK igsE8evhPt+VlVS9bQlCdngEAxp2Hj9z4m7C90cuR8gfA2Wtubr10VUy0vKTFZHP34WQ 6NYu5hpOmEyz40iRzpSgcae7VkKGYRK9xyEZ1SsfrJeFhj2uuWX9LhrvZirbXuxApx4w zwYgzV/aN3JryL1O9cGS8642VnGLDGNiBNlqSWdU9lNw5a7wubylEG2tgNiwdqliyYib ywzB22m85XgV/MEVhO5ghF/P21zc3AYBFQB8kangDQqioipS7NU2EaQSpBB/Nsxd5xYO BqyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=H4kdQcRfSBCbx7zGvesxGrfsAKDF4OGfaGjXFodrO74=; b=OSceyG8+jvsWQNnPLCrnsZCK3DrZZobWipjq0KHbfsR3Mkr3HQH3wlbb54NF67kVak MnneS9b/w/QUDPqU4RYTh9kA/2ul2NbZON9H6tjr6daluSrxNRma7bGQB/1bC/cj2x55 mKK/iAFQLDr+Qck5siGhrA5ElrRsp7v/fIsySN9IA+ogEQbVx5YweMZPe2d6wYiwI9WK YbOfwg/bTsBUgAh41Z1yp70vPb+GXQ7KyHe+lSJ+L7z8/n/b1PHM/Mbf3YrUqvthexab JxGSSZZJEAVKY2Jgjn5FjJHKfvwocUE8l9gdRsiXiko01EjFxbWvPObfWxbqx71X2sut JlBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nb0GkKIA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si475632edl.562.2020.12.09.01.02.48; Wed, 09 Dec 2020 01:03:12 -0800 (PST) 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=@linaro.org header.s=google header.b=Nb0GkKIA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728001AbgLIJAB (ORCPT + 99 others); Wed, 9 Dec 2020 04:00:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727273AbgLII76 (ORCPT ); Wed, 9 Dec 2020 03:59:58 -0500 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 857E0C061793 for ; Wed, 9 Dec 2020 00:59:17 -0800 (PST) Received: by mail-lf1-x141.google.com with SMTP id m19so2085168lfb.1 for ; Wed, 09 Dec 2020 00:59:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H4kdQcRfSBCbx7zGvesxGrfsAKDF4OGfaGjXFodrO74=; b=Nb0GkKIAm7dcqrmgsyIwJo38tasdPxkgHvt7bM04JX1NUdKS1KKXWNZ/f1q8kNK1Ak N5piWHNnX1Ci4zcrfsLQfTjHEvJ/nD7wBMuCwCjaCvGv6ziWmZjleawa5O6pjphDSdsx SZHGexSXGx7joKlWC0+GmJadETuk7cE+aZxxI+QktTZNcYwngVb50wGvJgU3u+7U6lCO ZJp9X+6uNncgp5DHiOIlBqPJFb1+PzoLTqIZmqqRtEk7rymNffpILx7NxzchmVAHxMNf cVl7zKsW3ByehxmxckIgQJ7UAl2YrgYuKzEemokel2bLqdnx+H4VEDE0vc799ZVn7PLh XX8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H4kdQcRfSBCbx7zGvesxGrfsAKDF4OGfaGjXFodrO74=; b=fXYVVsi6sqRLgKH6RkaiY6OidinqNKTbVNlGvIUzQA7BlUb3e/9VGsjh9DM1nl0eCS VVbA1z97f9EUoEP/31XFi5YBaNTthoYKIuoopaA9t+E6NQjDA90xJEpw0NZ9knqOdkJW LfbYab3FvSfQZYAmFbkxIemhnBPgv6Be5yU8skGnvN5MazZTrJpSdDkxyTa5zBB0VM42 BpryU1zf0vQkLSi3KSKQe2cx8KVLHpqCf2DH82k2x5VOLyDwrhmuRe38XWv2JrbWVVhe q/ZcZXx0/nYBEL83cIbcqOjEQI4DZnFJ56L2Wn6y4YZIe0HIuCmlO2+QrLAHI22N9n02 5GCA== X-Gm-Message-State: AOAM5310uMWyKU2grnt34i01kti1LEKVXHOZYAPuntKUT7eL7IPlbqLe rLUTQiX2Duq4bdIterwcP8chMfmPX8ilBgw4zY8KNg== X-Received: by 2002:a19:6557:: with SMTP id c23mr627191lfj.157.1607504355994; Wed, 09 Dec 2020 00:59:15 -0800 (PST) MIME-Version: 1.0 References: <20201208164821.2686082-1-paul@crapouillou.net> In-Reply-To: <20201208164821.2686082-1-paul@crapouillou.net> From: Linus Walleij Date: Wed, 9 Dec 2020 09:59:05 +0100 Message-ID: Subject: Re: [PATCH 1/2] if_enabled.h: Add IF_ENABLED_OR_ELSE() and IF_ENABLED() macros To: Paul Cercueil Cc: Arnd Bergmann , od@zcrc.me, Linux ARM , linux-mips@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 8, 2020 at 5:48 PM Paul Cercueil wrote: > Introduce a new header , that brings two new macros: > IF_ENABLED_OR_ELSE() and IF_ENABLED(). I understand what the patch is trying to do, but when we already have IS_ENABLED() in this syntax becomes a big cognitive confusion for the mind. At least the commit needs to explain why it doesn't work to use IS_ENABLED() instead so that this is needed. Certainly the build failures must be possible to solve so that this can live with the sibling IS_ENABLED() inside , it can't be too hard. Yours, Linus Walleij