Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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
<Al.Smith@aeschi.ch.eu.org>";
^~~~
The 'cprt' is not used in any files, we move the copyright statement
into the comment.

Link: https://lkml.kernel.org/r/20230803015103.192985-1-wangzhu9@huawei.com
Signed-off-by: Zhu Wang <wangzhu9@huawei.com>
Cc: Al Smith <Al.Smith@aeschi.ch.eu.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Zhu Wang and committed by
Andrew Morton
bbe3656a 46f12960

+1 -4
+1 -4
fs/efs/efs.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 /* 3 - * Copyright (c) 1999 Al Smith 3 + * Copyright (c) 1999 Al Smith, <Al.Smith@aeschi.ch.eu.org> 4 4 * 5 5 * Portions derived from work (c) 1995,1996 Christian Vogelgsang. 6 6 * Portions derived from IRIX header files (c) 1988 Silicon Graphics ··· 18 18 #include <linux/uaccess.h> 19 19 20 20 #define EFS_VERSION "1.0a" 21 - 22 - static const char cprt[] = "EFS: "EFS_VERSION" - (c) 1999 Al Smith <Al.Smith@aeschi.ch.eu.org>"; 23 - 24 21 25 22 /* 1 block is 512 bytes */ 26 23 #define EFS_BLOCKSIZE_BITS 9