diff options
author | Zhu Wang <[email protected]> | 2023-08-03 09:51:03 +0800 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-08-18 10:18:59 -0700 |
commit | bbe3656a6f1c607ba3c8babc9b1b4ab761f3a5f5 (patch) | |
tree | d437551ac89053d42d99f007d16c0d044b4092fe | |
parent | 46f12960aad2d48fc6742470f718e147e5c85d06 (diff) |
efs: clean up -Wunused-const-variable= warning
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]>
-rw-r--r-- | fs/efs/efs.h | 5 |
1 files changed, 1 insertions, 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, <[email protected]> * * Portions derived from work (c) 1995,1996 Christian Vogelgsang. * Portions derived from IRIX header files (c) 1988 Silicon Graphics @@ -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) |