Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1047936pxb; Thu, 15 Apr 2021 12:36:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyq0hE8vBGLnTWAVQTTTpjzBAOgYGTUADNv9ZQBqHa/MoqlqZssE5b5WNdblPIPDS/s6U1w X-Received: by 2002:a05:6402:94b:: with SMTP id h11mr6065655edz.180.1618515393535; Thu, 15 Apr 2021 12:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618515393; cv=none; d=google.com; s=arc-20160816; b=OzU/VBslzdYvs4Zmcb17lzP2fMkWS0nJWGH5w8zI8r7QCYHC4LgmeFxvS3dszme2Mc /KT8PYTNRIqfjrdQ5XEMe73OMHP3zi89XEQwdKnyKRsO1BoreAG2POu+ceZ55pO01JVt iWKpNN6FG2aLeIThSR6NEioTop/mFUrejgLVWgCo6QxSMtYKhmah9ksHldrRCu5zVs06 u44Lw17pFQThqIcLhSGFBujl692XNq6Umpv9GbGENf0Wwn15U/NpNb8Yi75/zj+dX0Te rStJ9bJw5YX+1Vm0DYuhFWus1jwDfoyKOU2tJpV/kRLTw4/okKDzlsUIDjE0/uFsFfnG HZ3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vtWNT94mXOx/e8oYUfUYuPzjU/c+4111yIugPJRINoo=; b=UL6sT/PKAR8ztF6xKmCuj9g3KhVO0+/jSnXldVLSPGi8IDm2A/PtwvME2dFcs+2p0f VryKqLM+nIE37VaTRE7IAtWpQNO7XhzDM7+mlZ+SxLDS9MWxr+SCFcPGwqgeUQfYAAK5 PG4Y7j/D13STClg4uE4ThZbs+7/0mDi7DsAwUzRtgXMntcTsGpEeNQ7oIuEihReGS7wL LoE1ICDplgT1d0/mZQ6A6KJZ16je/kmrbQZAKDMHE8mHvD+3g9CMumtqStz/UEA6OMsz JvrQQlMl1XY6dL8IzOa+ZX+bE0MRtSGuvjxf42LWbqLI5btWJ8RS85v6Flv2wEr/Sf3l Nuhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KG+P7kI9; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si3069370edy.536.2021.04.15.12.36.07; Thu, 15 Apr 2021 12:36:33 -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=@kernel.org header.s=k20201202 header.b=KG+P7kI9; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234877AbhDOTVp (ORCPT + 99 others); Thu, 15 Apr 2021 15:21:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:54070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234863AbhDOTVo (ORCPT ); Thu, 15 Apr 2021 15:21:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BE9AB61139; Thu, 15 Apr 2021 19:21:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618514481; bh=ZauktqtvUFNKTTNi5nrXkKpa4N3m/DBZfGw8y1tCB88=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KG+P7kI9lYjUe1L10cJBj2/qGFRDXbzfonnc68VS4+SJ7LkEbwtSZ5loR22b9p3lH 0/YPRGFm65Q/TcdeofvHi9woaa5nNa9IJC8KXLL9WAELHO5jNNUpW3m6STEEignJQw WoHq0QB2vL5galdBu66jgU6V7FUTEDHJPRGR4THIrHjrIlwSmniqaTkFRhJD6nO3rC 2XNYqsS3uoeKl1DZO7s5kyNimV1ocRdx8hq2cQOre62eivhdmkabui/Sid3OK3GOuC 0tBVjxshcnxQk0r1QK/j9qR8x0e/qYCD9NDO3x5nXu5+qpQbjF69HMo2sl0IypN8fv tcDws6DuG791w== Date: Thu, 15 Apr 2021 12:21:02 -0700 From: Eric Biggers To: Satya Tangirala Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Jens Axboe Subject: Re: [PATCH v2 1/8] block: introduce blk_ksm_is_empty() Message-ID: References: <20210325212609.492188-1-satyat@google.com> <20210325212609.492188-2-satyat@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210325212609.492188-2-satyat@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 25, 2021 at 09:26:02PM +0000, Satya Tangirala wrote: > This function checks if a given keyslot manager supports any encryption > mode/data unit size combination (and returns true if there is no such > supported combination). Helps clean up code a little. > > Signed-off-by: Satya Tangirala > --- > block/keyslot-manager.c | 13 +++++++++++++ > drivers/md/dm-table.c | 11 +---------- > include/linux/keyslot-manager.h | 2 ++ > 3 files changed, 16 insertions(+), 10 deletions(-) > > diff --git a/block/keyslot-manager.c b/block/keyslot-manager.c > index 2c4a55bea6ca..2a2b1a9785d2 100644 > --- a/block/keyslot-manager.c > +++ b/block/keyslot-manager.c > @@ -437,6 +437,19 @@ void blk_ksm_destroy(struct blk_keyslot_manager *ksm) > } > EXPORT_SYMBOL_GPL(blk_ksm_destroy); > > +bool blk_ksm_is_empty(struct blk_keyslot_manager *ksm) > +{ I agree with Christoph that this could use a kerneldoc comment. > diff --git a/include/linux/keyslot-manager.h b/include/linux/keyslot-manager.h > index a27605e2f826..5bf0cea20c81 100644 > --- a/include/linux/keyslot-manager.h > +++ b/include/linux/keyslot-manager.h > @@ -117,4 +117,6 @@ bool blk_ksm_is_superset(struct blk_keyslot_manager *ksm_superset, > void blk_ksm_update_capabilities(struct blk_keyslot_manager *target_ksm, > struct blk_keyslot_manager *reference_ksm); > > +bool blk_ksm_is_empty(struct blk_keyslot_manager *ksm); > + It's easier to read if declarations are kept in the same order as the definitions. - Eric