Skip to content

Commit

Permalink
efs: clean up -Wunused-const-variable= warning
Browse files Browse the repository at this point in the history
When building with W=1, the following warning occurs.

In file included from fs/efs/super.c:18:0:
fs/efs/efs.h:22:19: warning: `cprt' defined but not used [-Wunused-const-variable=]
 static const char cprt[] = "EFS: "EFS_VERSION" - (c) 1999 Al Smith
<[email protected]>";
                   ^~~~
The 'cprt' is not used in any files, we move the copyright statement
into the comment.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Zhu Wang <[email protected]>
Cc: Al Smith <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
PeterZhu789 authored and akpm00 committed Aug 18, 2023
1 parent 46f1296 commit bbe3656
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fs/efs/efs.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 1999 Al Smith
* Copyright (c) 1999 Al Smith, <[email protected]>
*
* Portions derived from work (c) 1995,1996 Christian Vogelgsang.
* Portions derived from IRIX header files (c) 1988 Silicon Graphics
Expand All @@ -19,9 +19,6 @@

#define EFS_VERSION "1.0a"

static const char cprt[] = "EFS: "EFS_VERSION" - (c) 1999 Al Smith <[email protected]>";


/* 1 block is 512 bytes */
#define EFS_BLOCKSIZE_BITS 9
#define EFS_BLOCKSIZE (1 << EFS_BLOCKSIZE_BITS)
Expand Down

0 comments on commit bbe3656

Please sign in to comment.