From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A123C04A95 for ; Tue, 25 Oct 2022 15:20:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233145AbiJYPUd (ORCPT ); Tue, 25 Oct 2022 11:20:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233161AbiJYPTS (ORCPT ); Tue, 25 Oct 2022 11:19:18 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5D5C194FA0 for ; Tue, 25 Oct 2022 08:19:17 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 64F1F68B05; Tue, 25 Oct 2022 17:19:14 +0200 (CEST) Date: Tue, 25 Oct 2022 17:19:14 +0200 From: Christoph Hellwig To: Max Gurtovoy Cc: Sagi Grimberg , linux-nvme@lists.infradead.org, hch@lst.de, kbusch@kernel.org, oren@nvidia.com, chaitanyak@nvidia.com, linux-block@vger.kernel.org Subject: Re: [PATCH v2 1/1] nvme: use macro definitions for setting reservation values Message-ID: <20221025151914.GA23422@lst.de> References: <20221002082851.13222-1-mgurtovoy@nvidia.com> <3354c32d-34b3-0997-3a59-8fc199e6640a@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3354c32d-34b3-0997-3a59-8fc199e6640a@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Mon, Oct 03, 2022 at 01:16:36PM +0300, Max Gurtovoy wrote: >> I'd make this named nvme_pr_type > > Most of the enums of this header are not named. > > I don't understand what is the convention here. > > Usually, if it's not a new header file I'm trying to keep the file > convention and this is what I did. > > If all agree on named, I'll send another version. I think named is better, nvme has some weird unnamed enums that even combine totally unrelated fields which I always found confusing.