.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /****************************************************************************** |
---|
2 | 3 | ******************************************************************************* |
---|
3 | 4 | ** |
---|
4 | 5 | ** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. |
---|
5 | 6 | ** Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved. |
---|
6 | 7 | ** |
---|
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. |
---|
10 | 8 | ** |
---|
11 | 9 | ******************************************************************************* |
---|
12 | 10 | ******************************************************************************/ |
---|
.. | .. |
---|
422 | 420 | int m_bastmode; |
---|
423 | 421 | int m_asts; |
---|
424 | 422 | int m_result; /* 0 or -EXXX */ |
---|
425 | | - char m_extra[0]; /* name or lvb */ |
---|
| 423 | + char m_extra[]; /* name or lvb */ |
---|
426 | 424 | }; |
---|
427 | 425 | |
---|
428 | 426 | |
---|
.. | .. |
---|
451 | 449 | uint64_t rc_id; /* match reply with request */ |
---|
452 | 450 | uint64_t rc_seq; /* sender's ls_recover_seq */ |
---|
453 | 451 | uint64_t rc_seq_reply; /* remote ls_recover_seq */ |
---|
454 | | - char rc_buf[0]; |
---|
| 452 | + char rc_buf[]; |
---|
455 | 453 | }; |
---|
456 | 454 | |
---|
457 | 455 | union dlm_packet { |
---|
.. | .. |
---|
507 | 505 | __le16 rl_wait_type; |
---|
508 | 506 | __le16 rl_namelen; |
---|
509 | 507 | char rl_name[DLM_RESNAME_MAXLEN]; |
---|
510 | | - char rl_lvb[0]; |
---|
| 508 | + char rl_lvb[]; |
---|
511 | 509 | }; |
---|
512 | 510 | |
---|
513 | 511 | /* |
---|
.. | .. |
---|
720 | 718 | void dlm_plock_exit(void); |
---|
721 | 719 | |
---|
722 | 720 | #ifdef CONFIG_DLM_DEBUG |
---|
723 | | -int dlm_register_debugfs(void); |
---|
| 721 | +void dlm_register_debugfs(void); |
---|
724 | 722 | 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); |
---|
726 | 724 | void dlm_delete_debug_file(struct dlm_ls *ls); |
---|
727 | 725 | #else |
---|
728 | | -static inline int dlm_register_debugfs(void) { return 0; } |
---|
| 726 | +static inline void dlm_register_debugfs(void) { } |
---|
729 | 727 | 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) { } |
---|
731 | 729 | static inline void dlm_delete_debug_file(struct dlm_ls *ls) { } |
---|
732 | 730 | #endif |
---|
733 | 731 | |
---|