Skip to content

Commit

Permalink
erofs-utils: clean up file headers & footers
Browse files Browse the repository at this point in the history
- Remove filename in the file since it's generally not useful.
- Get rid of all unnecessary trailing newline.

Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Gao Xiang <[email protected]>
Signed-off-by: Huang Jianan <[email protected]>
Signed-off-by: Gao Xiang <[email protected]>
  • Loading branch information
hjn-1 authored and hsiangkao committed Sep 3, 2021
1 parent 19915de commit 8fdb7db
Show file tree
Hide file tree
Showing 48 changed files with 0 additions and 113 deletions.
1 change: 0 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ R: Gao Xiang <[email protected]>
R: Chao Yu <[email protected]>
S: Maintained
L: [email protected]

1 change: 0 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,3 @@ erofs-utils (1.0-1) unstable; urgency=low
- (mkfs.erofs) Posix ACL support;

-- Gao Xiang <[email protected]> Thu, 24 Oct 2019 00:00:00 +0800

2 changes: 0 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# SPDX-License-Identifier: GPL-2.0+
# Makefile.am

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = man lib mkfs
if ENABLE_FUSE
SUBDIRS += fuse
endif

1 change: 0 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,3 @@ Comments
https://github.com/lz4/lz4/issues/783

which is also resolved in lz4-1.9.3.

1 change: 0 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ autoconf && \
case `uname` in Darwin*) glibtoolize --copy ;; \
*) libtoolize --copy ;; esac && \
automake -a -c

1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -297,4 +297,3 @@ AC_CONFIG_FILES([Makefile
mkfs/Makefile
fuse/Makefile])
AC_OUTPUT

2 changes: 0 additions & 2 deletions fuse/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# SPDX-License-Identifier: GPL-2.0+
# Makefile.am

AUTOMAKE_OPTIONS = foreign
bin_PROGRAMS = erofsfuse
erofsfuse_SOURCES = dir.c main.c
erofsfuse_CFLAGS = -Wall -Werror -I$(top_srcdir)/include
erofsfuse_CFLAGS += -DFUSE_USE_VERSION=26 ${libfuse_CFLAGS} ${libselinux_CFLAGS}
erofsfuse_LDADD = $(top_builddir)/lib/liberofs.la ${libfuse_LIBS} ${liblz4_LIBS} ${libselinux_LIBS}

3 changes: 0 additions & 3 deletions fuse/dir.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/fuse/dir.c
*
* Created by Li Guifu <[email protected]>
*/
#include <fuse.h>
Expand Down Expand Up @@ -100,4 +98,3 @@ int erofsfuse_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
}
return 0;
}

3 changes: 0 additions & 3 deletions fuse/main.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/fuse/main.c
*
* Created by Li Guifu <[email protected]>
*/
#include <stdlib.h>
Expand Down Expand Up @@ -249,4 +247,3 @@ int main(int argc, char *argv[])
erofs_exit_configure();
return ret ? EXIT_FAILURE : EXIT_SUCCESS;
}

2 changes: 0 additions & 2 deletions include/erofs/block_list.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/include/erofs/block_list.h
*
* Copyright (C), 2021, Coolpad Group Limited.
* Created by Yue Hu <[email protected]>
*/
Expand Down
3 changes: 0 additions & 3 deletions include/erofs/cache.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/cache.h
*
* Copyright (C) 2018 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Miao Xie <[email protected]>
Expand Down Expand Up @@ -102,4 +100,3 @@ bool erofs_bflush(struct erofs_buffer_block *bb);
void erofs_bdrop(struct erofs_buffer_head *bh, bool tryrevoke);

#endif

3 changes: 0 additions & 3 deletions include/erofs/compress.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/compress.h
*
* Copyright (C) 2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Gao Xiang <[email protected]>
Expand All @@ -24,4 +22,3 @@ int z_erofs_compress_exit(void);
const char *z_erofs_list_available_compressors(unsigned int i);

#endif

3 changes: 0 additions & 3 deletions include/erofs/config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/config.h
*
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Li Guifu <[email protected]>
Expand Down Expand Up @@ -89,4 +87,3 @@ static inline int erofs_selabel_open(const char *file_contexts)
#endif

#endif

2 changes: 0 additions & 2 deletions include/erofs/decompress.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/decompress.h
*
* Copyright (C), 2008-2020, OPPO Mobile Comm Corp., Ltd.
* Created by Huang Jianan <[email protected]>
*/
Expand Down
2 changes: 0 additions & 2 deletions include/erofs/defs.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/defs.h
*
* Copyright (C) 2018 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Li Guifu <[email protected]>
Expand Down
3 changes: 0 additions & 3 deletions include/erofs/err.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/err.h
*
* Copyright (C) 2018 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Li Guifu <[email protected]>
Expand Down Expand Up @@ -31,4 +29,3 @@ static inline long PTR_ERR(const void *ptr)
}

#endif

3 changes: 0 additions & 3 deletions include/erofs/exclude.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/exclude.h
*
* Created by Li Guifu <[email protected]>
*/
#ifndef __EROFS_EXCLUDE_H
Expand All @@ -24,4 +22,3 @@ int erofs_parse_exclude_path(const char *args, bool is_regex);
struct erofs_exclude_rule *erofs_is_exclude_path(const char *dir,
const char *name);
#endif

2 changes: 0 additions & 2 deletions include/erofs/hashtable.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* erofs-utils/include/erofs/hashtable.h
*
* Original code taken from 'linux/include/linux/hash{,table}.h'
*/
#ifndef __EROFS_HASHTABLE_H
Expand Down
2 changes: 0 additions & 2 deletions include/erofs/inode.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/inode.h
*
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Li Guifu <[email protected]>
Expand Down
2 changes: 0 additions & 2 deletions include/erofs/internal.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/internal.h
*
* Copyright (C) 2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Gao Xiang <[email protected]>
Expand Down
3 changes: 0 additions & 3 deletions include/erofs/io.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/io.h
*
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Li Guifu <[email protected]>
Expand Down Expand Up @@ -41,4 +39,3 @@ static inline int blk_read(void *buf, erofs_blk_t start,
}

#endif

2 changes: 0 additions & 2 deletions include/erofs/list.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/list.h
*
* Copyright (C) 2018 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Li Guifu <[email protected]>
Expand Down
4 changes: 0 additions & 4 deletions include/erofs/print.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/print.h
*
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Li Guifu <[email protected]>
Expand Down Expand Up @@ -71,6 +69,4 @@ enum {

#define erofs_dump(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__)


#endif

3 changes: 0 additions & 3 deletions include/erofs/trace.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/include/erofs/trace.h
*
* Copyright (C) 2020 Gao Xiang <[email protected]>
*/
#ifndef __EROFS_TRACE_H
Expand All @@ -11,4 +9,3 @@
#define trace_erofs_map_blocks_flatmode_exit(inode, map, flags, ret) ((void)0)

#endif

2 changes: 0 additions & 2 deletions include/erofs/xattr.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/include/erofs/xattr.h
*
* Originally contributed by an anonymous person,
* heavily changed by Li Guifu <[email protected]>
* and Gao Xiang <[email protected]>
Expand Down
2 changes: 0 additions & 2 deletions include/erofs_fs.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only OR Apache-2.0 */
/*
* erofs-utils/include/erofs_fs.h
* EROFS (Enhanced ROM File System) on-disk format definition
*
* Copyright (C) 2017-2018 HUAWEI, Inc.
Expand Down Expand Up @@ -360,4 +359,3 @@ static inline void erofs_check_ondisk_layout_definitions(void)
}

#endif

2 changes: 0 additions & 2 deletions lib/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# SPDX-License-Identifier: GPL-2.0+
# Makefile.am

noinst_LTLIBRARIES = liberofs.la
noinst_HEADERS = $(top_srcdir)/include/erofs_fs.h \
Expand Down Expand Up @@ -30,4 +29,3 @@ if ENABLE_LZ4HC
liberofs_la_SOURCES += compressor_lz4hc.c
endif
endif

2 changes: 0 additions & 2 deletions lib/block_list.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/lib/block_list.c
*
* Copyright (C), 2021, Coolpad Group Limited.
* Created by Yue Hu <[email protected]>
*/
Expand Down
3 changes: 0 additions & 3 deletions lib/cache.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/lib/cache.c
*
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Miao Xie <[email protected]>
Expand Down Expand Up @@ -442,4 +440,3 @@ void erofs_bdrop(struct erofs_buffer_head *bh, bool tryrevoke)
if (rollback)
tail_blkaddr = blkaddr;
}

3 changes: 0 additions & 3 deletions lib/compress.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/lib/compress.c
*
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Miao Xie <[email protected]>
Expand Down Expand Up @@ -680,4 +678,3 @@ int z_erofs_compress_exit(void)
{
return erofs_compressor_exit(&compresshandle);
}

3 changes: 0 additions & 3 deletions lib/compressor.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/lib/compressor.c
*
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Gao Xiang <[email protected]>
Expand Down Expand Up @@ -91,4 +89,3 @@ int erofs_compressor_exit(struct erofs_compress *c)
return c->alg->exit(c);
return 0;
}

3 changes: 0 additions & 3 deletions lib/compressor.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs-utils/lib/compressor.h
*
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Gao Xiang <[email protected]>
Expand Down Expand Up @@ -53,4 +51,3 @@ int erofs_compressor_init(struct erofs_compress *c, char *alg_name);
int erofs_compressor_exit(struct erofs_compress *c);

#endif

3 changes: 0 additions & 3 deletions lib/compressor_lz4.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/lib/compressor-lz4.c
*
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Gao Xiang <[email protected]>
Expand Down Expand Up @@ -48,4 +46,3 @@ struct erofs_compressor erofs_compressor_lz4 = {
.exit = compressor_lz4_exit,
.compress_destsize = lz4_compress_destsize,
};

3 changes: 0 additions & 3 deletions lib/compressor_lz4hc.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/lib/compressor-lz4hc.c
*
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Gao Xiang <[email protected]>
Expand Down Expand Up @@ -61,4 +59,3 @@ struct erofs_compressor erofs_compressor_lz4hc = {
.exit = compressor_lz4hc_exit,
.compress_destsize = lz4hc_compress_destsize,
};

3 changes: 0 additions & 3 deletions lib/config.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/lib/config.c
*
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Li Guifu <[email protected]>
Expand Down Expand Up @@ -85,4 +83,3 @@ int erofs_selabel_open(const char *file_contexts)
return 0;
}
#endif

3 changes: 0 additions & 3 deletions lib/data.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/lib/data.c
*
* Copyright (C) 2020 Gao Xiang <[email protected]>
* Compression support by Huang Jianan <[email protected]>
*/
Expand Down Expand Up @@ -217,4 +215,3 @@ int erofs_pread(struct erofs_inode *inode, char *buf,
}
return -EINVAL;
}

2 changes: 0 additions & 2 deletions lib/decompress.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/lib/decompress.c
*
* Copyright (C), 2008-2020, OPPO Mobile Comm Corp., Ltd.
* Created by Huang Jianan <[email protected]>
*/
Expand Down
3 changes: 0 additions & 3 deletions lib/exclude.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* erofs-utils/lib/exclude.c
*
* Created by Li Guifu <[email protected]>
*/
#include <string.h>
Expand Down Expand Up @@ -129,4 +127,3 @@ struct erofs_exclude_rule *erofs_is_exclude_path(const char *dir,
}
return NULL;
}

Loading

0 comments on commit 8fdb7db

Please sign in to comment.