Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2573857lqp; Mon, 25 Mar 2024 03:09:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXACUDdURCwrfzNHgaVzbQeb/Q+tbHTyQNVK7h07PBqsyJXkoGNBePjsv7je10GvJ0c9Dn6fq1k8daFOp7TCMXc8vU8gzeN+FYeRiqHsg== X-Google-Smtp-Source: AGHT+IEt38bBfdfAlwS0bjrGwoB5Lqz5Tk+Eg5PE9FLKbJtl/DiFOVq/yl8KaLjBGDESA/9jyg2M X-Received: by 2002:a17:906:a217:b0:a46:e8dc:5d51 with SMTP id r23-20020a170906a21700b00a46e8dc5d51mr4035032ejy.25.1711361355489; Mon, 25 Mar 2024 03:09:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711361355; cv=pass; d=google.com; s=arc-20160816; b=PZchbuwI2f6fwVpxC/wwXmLjq2iRLQ8UshYVRpV5BjE3TevheWfGreBrRmk2F/Kx2X UVpI5GtVc2oGWphthRY1WRPNwAsr83jBdebvHF12TrBYYjaXpka9AQX+aDyS/k7Hv4KS X+mRnzUeHwiGPuCFoj12gM3fBe2vsIHWgq4k8oC6jt9CJJNRqcl1LYfbwDjFYo0lN7OY Te8hKU7SnxPJBRxh9Ub3vjqgtjyjf7pvNhJfa7Gu2a8xAukEyiM/azbYlzzw5JUc4wzd ACLcRLCUCmmc2KDqQHReH5XYLzaLiGJ/FENX4J4f2SvFzYnn7zLzGWMU6/Z+OirzUnvz g97Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=qMsf3KeVJhz9LCkdSTsrHHgHjkK472vAkDnRxSAu+0w=; fh=rPQMrqBd6grhYL+rykzTJ9kk8tN17WunqGv5nLdzdxc=; b=m1ZCv92TNBnXZWeYcgo1y+6hYlithVO82y4sWKb8FguoL1Rb8Ws+wB9EwNOBvWHGC7 vzaDJdS9/Vozh6pmqdBr/KfVYBT4rlPlU8ebwDUCagXLYJcULMYvqOoeUv0snqu5sAFx YJndDM3fbevxNbgR60RQTAQdSIu2iTDzqv6nNl1XcMRJWSMDcGHxMszmkQBXrrPKhbla sAKhcdjYCB+aXuKLS5Qzo3FvMh425oygkI8y9c53HHRkSFpG7o41/oS6SoTYmtdsQSZp ATuYiCvXJtwazYmte0xwg4/mMVulfAN6ro1I2azjI3yLpwJQnYyq6gO2Qjtojc9nFe4a flsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-116375-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116375-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e25-20020a170906045900b00a46651b0961si2324499eja.282.2024.03.25.03.09.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 03:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116375-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-116375-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116375-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B85311F320AB for ; Mon, 25 Mar 2024 10:08:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6850F129A70; Mon, 25 Mar 2024 05:25:54 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B582B4D599 for ; Mon, 25 Mar 2024 01:44:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711331092; cv=none; b=D8q5ijVZ/mmi/lyG+nnR7WyCu3Sefejh547nQpMLCf3zjYxP9+QW9/XUIZt11d8OWnd5mXhuyClX5N9VNCHrWd0GBfecFctYUhpKChlNQLF5lu+xrt1TZqJtEKOJlLDbaXR+nJotXDi+OZo7g/WVihqprUwwt9+n58ZAMzUJYvU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711331092; c=relaxed/simple; bh=g+N2IFwrHJmYX6hG4nCxHxw2BF0Zo9VeacaZLso3seQ=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=C2tL/XIfGflq2tHoEC+l623JLADs4rTHog4Xf0TkVEe8Dz/0YpTWlNd5EFI+Yj0fCR+j6HxjWUahL2wgwjhM5/SIIIo05Ua8ee+IJSk8ChK3ZG6AKTsjdu6HwqYCD3nrqvfpPAX7bxYMl46e8uY0LthRz5Tc3aBcOTkAJGu7CoQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4V2wdx6NR2zXjH8; Mon, 25 Mar 2024 09:41:57 +0800 (CST) Received: from kwepemm600013.china.huawei.com (unknown [7.193.23.68]) by mail.maildlp.com (Postfix) with ESMTPS id 66058140258; Mon, 25 Mar 2024 09:44:41 +0800 (CST) Received: from [10.174.178.46] (10.174.178.46) by kwepemm600013.china.huawei.com (7.193.23.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 25 Mar 2024 09:44:40 +0800 Subject: Re: [PATCH] ubifs: xattr: remove unused anonymous enum To: , Richard Weinberger CC: , References: <20240324004134.161755-1-pascal.eberhard@verified.se.com> From: Zhihao Cheng Message-ID: <7030eaa5-73b5-7aa3-3b7d-56a3519878b3@huawei.com> Date: Mon, 25 Mar 2024 09:44:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240324004134.161755-1-pascal.eberhard@verified.se.com> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600013.china.huawei.com (7.193.23.68) ?? 2024/3/24 8:41, pascal.eberhard@verified.se.com ะด??: > From: Pascal Eberhard > > commit 2b88fc21cae9 ("ubifs: Switch to generic xattr handlers") removes > usage of this anonymous enum. Delete the enum as well. > > Signed-off-by: Pascal Eberhard > --- > fs/ubifs/xattr.c | 13 ------------- > 1 file changed, 13 deletions(-) Reviewed-by: Zhihao Cheng > > diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c > index 0847db521984..f0969519ad05 100644 > --- a/fs/ubifs/xattr.c > +++ b/fs/ubifs/xattr.c > @@ -48,19 +48,6 @@ > #include > #include > > -/* > - * Extended attribute type constants. > - * > - * USER_XATTR: user extended attribute ("user.*") > - * TRUSTED_XATTR: trusted extended attribute ("trusted.*) > - * SECURITY_XATTR: security extended attribute ("security.*") > - */ > -enum { > - USER_XATTR, > - TRUSTED_XATTR, > - SECURITY_XATTR, > -}; > - > static const struct inode_operations empty_iops; > static const struct file_operations empty_fops; > >