hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/dlm/dlm_internal.h
....@@ -1,12 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /******************************************************************************
23 *******************************************************************************
34 **
45 ** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
56 ** Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved.
67 **
7
-** This copyrighted material is made available to anyone wishing to use,
8
-** modify, copy, or redistribute it subject to the terms and conditions
9
-** of the GNU General Public License v.2.
108 **
119 *******************************************************************************
1210 ******************************************************************************/
....@@ -422,7 +420,7 @@
422420 int m_bastmode;
423421 int m_asts;
424422 int m_result; /* 0 or -EXXX */
425
- char m_extra[0]; /* name or lvb */
423
+ char m_extra[]; /* name or lvb */
426424 };
427425
428426
....@@ -451,7 +449,7 @@
451449 uint64_t rc_id; /* match reply with request */
452450 uint64_t rc_seq; /* sender's ls_recover_seq */
453451 uint64_t rc_seq_reply; /* remote ls_recover_seq */
454
- char rc_buf[0];
452
+ char rc_buf[];
455453 };
456454
457455 union dlm_packet {
....@@ -507,7 +505,7 @@
507505 __le16 rl_wait_type;
508506 __le16 rl_namelen;
509507 char rl_name[DLM_RESNAME_MAXLEN];
510
- char rl_lvb[0];
508
+ char rl_lvb[];
511509 };
512510
513511 /*
....@@ -720,14 +718,14 @@
720718 void dlm_plock_exit(void);
721719
722720 #ifdef CONFIG_DLM_DEBUG
723
-int dlm_register_debugfs(void);
721
+void dlm_register_debugfs(void);
724722 void dlm_unregister_debugfs(void);
725
-int dlm_create_debug_file(struct dlm_ls *ls);
723
+void dlm_create_debug_file(struct dlm_ls *ls);
726724 void dlm_delete_debug_file(struct dlm_ls *ls);
727725 #else
728
-static inline int dlm_register_debugfs(void) { return 0; }
726
+static inline void dlm_register_debugfs(void) { }
729727 static inline void dlm_unregister_debugfs(void) { }
730
-static inline int dlm_create_debug_file(struct dlm_ls *ls) { return 0; }
728
+static inline void dlm_create_debug_file(struct dlm_ls *ls) { }
731729 static inline void dlm_delete_debug_file(struct dlm_ls *ls) { }
732730 #endif
733731