From patchwork Thu Sep 21 07:03:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Kent X-Patchwork-Id: 142847 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5075894vqi; Thu, 21 Sep 2023 12:08:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJNZ39lNNUttSYyo4VhtUYRm0dI7z0Wiv/nfi2z8IcdEeFHOOenhf/M1Dw79riAzZ95RDV X-Received: by 2002:a05:6a00:1596:b0:68f:bb16:d16a with SMTP id u22-20020a056a00159600b0068fbb16d16amr776097pfk.5.1695323319632; Thu, 21 Sep 2023 12:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695323319; cv=none; d=google.com; s=arc-20160816; b=MZ+y+/uTwyaJjFGlxDmZiI/KRLtma5PLRIeB0gr3QHn2SQKFaE+alPY+gPP8UTu24J ih4i4joJbx1o5cC0gvRq8iiMgm8PofrHhGAdPaq5f+fIVakFv/z/3epRuRwPcEOpLwui 0yX4OHDjr4hB9SahRJEXKDEf9gjlTgD9QwtXf5AcWl4cSMhM5/pll6mUmKDDYab/qlyX kv5XqA2rJ+BSj6po9PnhsZDMcbjVlBuv5i413EaKmLG1zcgBHbxvDd+Y3nb6B9j2Ds7o /RrV0+Ud12jFMQpXZrtNf+Gr6Q3UKY/sxAiMZ4K92w1Fs3zSKW8q5jbEJlpY6+Ov9ioM 2nCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject; bh=yIq2XtPs0w6cZlrpIyYOiyevEDEQCJutT8+OVpJpvoo=; fh=Vd00GRLUNDtgftEBzBaifz0ZIGFRdtawsvTRUw5VTu8=; b=kaV+S4SeWgHAR4XrbIsoWdxhGsWHrlerWqw44pOM+ms3PAjLEwsESLmviV5P+ar0V8 jP90cLCmIFdDvFKQBxaHZvJzEXatm6FqCW6/mHhPgr44/w16wlWp8Jnyr2ccRHdi2FyS 3jFnKG6Iy7ZuPCXbqPMnKUWcPdYLMjPrrE1rV+rgkRlobobP27H2Td3hzlCbnQ/ufZTe vMKhdJhV2tOpYR63L0YKZm9+gvOFYkZ0YNAM44AIXoe/A6W9GmunTj9qaw+gX9ecSqEs c0konHGUYPLZ4JvZAxl6uXnbzwIfWTQF38fkaJYSD2rgRMOYmYbhz5zTwW9ftBTXJote uUtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id s18-20020a62e712000000b0068bc4337051si1861439pfh.359.2023.09.21.12.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 12:08:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 43946802588D; Thu, 21 Sep 2023 11:57:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229899AbjIUS52 (ORCPT + 28 others); Thu, 21 Sep 2023 14:57:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbjIUS5B (ORCPT ); Thu, 21 Sep 2023 14:57:01 -0400 Received: from smtp01.aussiebb.com.au (smtp01.aussiebb.com.au [IPv6:2403:5800:3:25::1001]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F8938ED43; Thu, 21 Sep 2023 11:51:05 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp01.aussiebb.com.au (Postfix) with ESMTP id 8F65910057C; Thu, 21 Sep 2023 17:03:52 +1000 (AEST) X-Virus-Scanned: Debian amavisd-new at smtp01.aussiebb.com.au Received: from smtp01.aussiebb.com.au ([127.0.0.1]) by localhost (smtp01.aussiebb.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eCRW0MMXS3Y8; Thu, 21 Sep 2023 17:03:52 +1000 (AEST) Received: by smtp01.aussiebb.com.au (Postfix, from userid 116) id 8835810057F; Thu, 21 Sep 2023 17:03:52 +1000 (AEST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from donald.themaw.net (180-150-90-198.b4965a.per.nbn.aussiebb.net [180.150.90.198]) by smtp01.aussiebb.com.au (Postfix) with ESMTP id BC87F100265; Thu, 21 Sep 2023 17:03:51 +1000 (AEST) Subject: [PATCH 4/8] autofs: reformat 0pt enum declaration From: Ian Kent To: Al Viro , Christian Brauner Cc: autofs mailing list , linux-fsdevel , Kernel Mailing List , Bill O'Donnell , Miklos Szeredi , David Howells Date: Thu, 21 Sep 2023 15:03:51 +0800 Message-ID: <169527983132.27328.10535655381168506781.stgit@donald.themaw.net> In-Reply-To: <169527971702.27328.16272807830250040704.stgit@donald.themaw.net> References: <169527971702.27328.16272807830250040704.stgit@donald.themaw.net> User-Agent: StGit/1.5 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:57:38 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777675345305247358 X-GMAIL-MSGID: 1777675345305247358 The enum of options is only reformated in the patch to convert autofs to use the mount API so do that now to simplify the conversion patch. Signed-off-by: Ian Kent --- fs/autofs/inode.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/fs/autofs/inode.c b/fs/autofs/inode.c index 992d6cb29707..d2b333c0682a 100644 --- a/fs/autofs/inode.c +++ b/fs/autofs/inode.c @@ -110,9 +110,20 @@ static const struct super_operations autofs_sops = { .evict_inode = autofs_evict_inode, }; -enum {Opt_err, Opt_fd, Opt_uid, Opt_gid, Opt_pgrp, Opt_minproto, Opt_maxproto, - Opt_indirect, Opt_direct, Opt_offset, Opt_strictexpire, - Opt_ignore}; +enum { + Opt_err, + Opt_direct, + Opt_fd, + Opt_gid, + Opt_ignore, + Opt_indirect, + Opt_maxproto, + Opt_minproto, + Opt_offset, + Opt_pgrp, + Opt_strictexpire, + Opt_uid, +}; static const match_table_t tokens = { {Opt_fd, "fd=%u"},