From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) (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 EB4A017C for ; Sun, 29 Sep 2024 01:16:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727572581; cv=none; b=Hv8AJzmnC5U7eKHtiYb3QMZ/sC33ZIxQPv+NUDW686XLWzHfhtca+l+/QJpZSzkH/dHkgGymgcDEJzztiR8Ym7Zt4jhoBe5sAQmFhviSmJOqMXq14eqU9Ej/SJk166+tI7b++syzr9LBpeyrSqG/uaCFP7t4eN88+0jbcbNzBh8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727572581; c=relaxed/simple; bh=lBRNsGuhOo4TOee1NZmUbFYNejacWT3b5bQOh8WdNM8=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=RgJ5Ytl+TXxICZMrOdawFVFzBY5r8/PUHYunzF8pNmW6otTQcoY/sXxeGbe8qmo+NEOARXc6jsIjj1Nvyj8GgEWyXa8Oj4UsSUmArhOWcnEfwkFJw2A+YhT98JILQkhaoamZEkkK6Wy1JTyn8FPhshwqyoUjtOoi2wD57T8gWKE= 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.189 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.88.194]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4XGR8w3rJ7zFqyP; Sun, 29 Sep 2024 09:15:44 +0800 (CST) Received: from kwepemm000013.china.huawei.com (unknown [7.193.23.81]) by mail.maildlp.com (Postfix) with ESMTPS id F3CBF140133; Sun, 29 Sep 2024 09:16:09 +0800 (CST) Received: from [10.174.178.46] (10.174.178.46) by kwepemm000013.china.huawei.com (7.193.23.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Sun, 29 Sep 2024 09:16:09 +0800 Subject: Re: [PATCH RESEND] ubifs: xattr: remove unused anonymous enum To: , Richard Weinberger CC: , Pascal Eberhard , , References: <20240927145757.347630-1-pascal.eberhard@gmail.com> From: Zhihao Cheng Message-ID: Date: Sun, 29 Sep 2024 09:16:08 +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: <20240927145757.347630-1-pascal.eberhard@gmail.com> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm000013.china.huawei.com (7.193.23.81) ÔÚ 2024/9/27 22:57, pascal.eberhard@gmail.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 3db8486e3725..32927bf98306 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; > >