From nobody Sun Feb 8 16:06:00 2026 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 7E487C001DE for ; Thu, 3 Aug 2023 01:56:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231445AbjHCBz6 (ORCPT ); Wed, 2 Aug 2023 21:55:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230422AbjHCBy6 (ORCPT ); Wed, 2 Aug 2023 21:54:58 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 183BB1FEE for ; Wed, 2 Aug 2023 18:51:37 -0700 (PDT) Received: from dggpeml500025.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RGWyH588TzrRng; Thu, 3 Aug 2023 09:50:31 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.202) by dggpeml500025.china.huawei.com (7.185.36.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 3 Aug 2023 09:51:35 +0800 From: Zhu Wang To: , CC: Subject: [PATCH -next v2] efs: clean up -Wunused-const-variable= warning Date: Thu, 3 Aug 2023 09:51:03 +0800 Message-ID: <20230803015103.192985-1-wangzhu9@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.67.174.202] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500025.china.huawei.com (7.185.36.35) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building with W=3D1, the following warning occurs. In file included from fs/efs/super.c:18:0: fs/efs/efs.h:22:19: warning: =E2=80=98cprt=E2=80=99 defined but not used [-= Wunused-const-variable=3D] static const char cprt[] =3D "EFS: "EFS_VERSION" - (c) 1999 Al Smith "; ^~~~ The 'cprt' is not used in any files, we move the copyright statement into the comment. Signed-off-by: Zhu Wang --- Changes in v2: - Remove cprt from the code, and move the copyright to the comment. - Remove the fix tag. --- fs/efs/efs.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/efs/efs.h b/fs/efs/efs.h index 13a4d9622633..918d2b9abb76 100644 --- a/fs/efs/efs.h +++ b/fs/efs/efs.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* - * Copyright (c) 1999 Al Smith + * Copyright (c) 1999 Al Smith, * * Portions derived from work (c) 1995,1996 Christian Vogelgsang. * Portions derived from IRIX header files (c) 1988 Silicon Graphics @@ -19,9 +19,6 @@ =20 #define EFS_VERSION "1.0a" =20 -static const char cprt[] =3D "EFS: "EFS_VERSION" - (c) 1999 Al Smith "; - - /* 1 block is 512 bytes */ #define EFS_BLOCKSIZE_BITS 9 #define EFS_BLOCKSIZE (1 << EFS_BLOCKSIZE_BITS) --=20 2.17.1