Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp732210pxb; Tue, 2 Feb 2021 17:01:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWqxQWwFKXpk8UY9MaMfY55xJeSXMUxvsXG21JOAhVgs9VTGeu/n/Zn3QhiD8MyHeVGi0Y X-Received: by 2002:a17:906:2747:: with SMTP id a7mr697821ejd.250.1612314097107; Tue, 02 Feb 2021 17:01:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612314097; cv=none; d=google.com; s=arc-20160816; b=zFhHdjiexGA58mGTwKhGiwp7QGEoUKAu4p1J9JRaSLTa/h84It0qtHxmx9FBrvSK40 O8yNJ+fszrnD8f2K4ym4DH5QKhcWGHEuirtI5xWeUhW+sDcAGppP5KZP0II1+/8huXqB CdxI/mKuLJA0GaMMvkeQYdw+RfWh8Eq2yohR4FsBByqo62R+XMXBWgXaOrKhfj3nYS2A yrNLWHwzeWo1AnYDtN8fpf9mEXGCMdNfp4Ff5aT/JVL1u9dShMDdezyisdvULG8Yx3pS JITUSsXKSjoVLbfeg2NzsSJYJhXkh90gEQjKXyPo/l29vla5tMrM1YKhCVboUgdd7iWd 6SyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Z+13UOGCC7I+iljuuHXBZA6fphrD3cnMtJ966bWAe3g=; b=qJ+9m5WWPR/zuMpjatXVnDj1Emr2kaSnTaZdL0XXcmfWRIoN5lOeMx79VDs6+Xsg7v p2bJ0s5+AsxeffCTbCInMjjFprrjeelscxhj0GB9Bs4LRBy4MYr3jLI3wW+D+s9pkUuG nqyQNBXvkXOlWV3rSeREwckaMOKskAcSDa7IJPOwUFwECv4eYvHv3k2XoZAE41vIgMEO 2ma4KG9NnchRGSflyhWxxXJFiyOjLttQb7C0dRd3MGCLgKdXok46ke2+5GA/btgbhxz1 UH63oRUe/ATxXj+IxINrdW2v7UrPlcZwxeo3RUiZUFv+GLpWfbwgCKhHTgXh+kHwHZEJ aMvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L87PxLNy; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jl16si290817ejc.461.2021.02.02.17.01.12; Tue, 02 Feb 2021 17:01:37 -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=@gmail.com header.s=20161025 header.b=L87PxLNy; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231987AbhBCAeP (ORCPT + 99 others); Tue, 2 Feb 2021 19:34:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbhBCAeI (ORCPT ); Tue, 2 Feb 2021 19:34:08 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA833C061573 for ; Tue, 2 Feb 2021 16:33:26 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id b9so13275241ejy.12 for ; Tue, 02 Feb 2021 16:33:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Z+13UOGCC7I+iljuuHXBZA6fphrD3cnMtJ966bWAe3g=; b=L87PxLNy3JVeC8VgaY4K6vYiAWo1G859Ngjl11rO1vgIE+Q927EVX8nWD8PXvIDmTw KF+qo3Jske7uyXdDaq4Qv86iy+TpPjMFNeadxFHvS1sEH3a/jnqxxNWNdBJ0SKiKk7tV mdBYoKgGq1kd0Gywr5xWzHYJzD9u7HD2X1aOUwHQ1YKap1gSKY3xhbSicU9UVOPCdJaX +TnjoNq9b+OZTMvFvLQiWk3yF3P809NQnmwDTIqU26DIJYSS66eHIJc8OGnQW6Gyc1EU rX3hTwxdg3gdnoNg50ntpFVKeYLhk9I7ca0e8RJA+d48yaS1cT/nvfPFclyWm7SHb0TF 9pJQ== 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:content-transfer-encoding; bh=Z+13UOGCC7I+iljuuHXBZA6fphrD3cnMtJ966bWAe3g=; b=hkApq3lcFh56KU1zw6Ml4Qahr0a4Koq9If+oiA441U/T/IlFPxB87i+3l+oKWUiTxE 3nY69F09QaAKxXLDIeroajb5IBJL+WaDDjqZkVk8OSb9DkxW9ovhVNJlefY9YQta2c4K Bxw4GFGnkPfwAVLUwSbRCoO8ycpYzIR8BPDIPLtzNggM3H86dVIyrnAYp1d0/68bRfDe 4wnVjg1WwhxBIXhbrRSxXTYOGoJX6dbmfYpAJk+4Cg0k03B7CkjVo0XFUvWGDXVKlQ2Z 9smmMaUP7YTIQWWOLAYH+9Zvn7mRfSt0EsOqcftmApFrVKA0YAG0hM6C4gKBR01+38t7 9sQg== X-Gm-Message-State: AOAM530PHBV1t8AS8PBEK00JqSpyIT8VTC4O5wY0U2Sg+N3OhjJ2wQCY KX9POIEc6amhBbs/6tVhhoD4ZarctyxpM01xJJY= X-Received: by 2002:a17:906:3ad0:: with SMTP id z16mr587105ejd.72.1612312405694; Tue, 02 Feb 2021 16:33:25 -0800 (PST) MIME-Version: 1.0 References: <20210122084321.24012-1-a.fatoum@pengutronix.de> In-Reply-To: <20210122084321.24012-1-a.fatoum@pengutronix.de> From: Dmitry Baryshkov Date: Wed, 3 Feb 2021 03:33:14 +0300 Message-ID: Subject: Re: [PATCH 1/2] dm crypt: replaced #if defined with IS_ENABLED To: Ahmad Fatoum Cc: Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, kernel@pengutronix.de, Arnd Bergmann , kernel list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =D0=BF=D1=82, 22 =D1=8F=D0=BD=D0=B2. 2021 =D0=B3. =D0=B2 11:43, Ahmad Fatou= m : > > IS_ENABLED(CONFIG_ENCRYPTED_KEYS) is true whether the option is built-in > or a module, so use it instead of #if defined checking for each > separately. > > The other #if was to avoid a static function defined, but unused > warning. As we now always build the callsite when the function > is defined, we can remove that first #if guard. > > Suggested-by: Arnd Bergmann > Signed-off-by: Ahmad Fatoum Acked-by: Dmitry Baryshkov --=20 With best wishes Dmitry