mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-15 11:46:35 +00:00
Don't use static struct initializer.
In rhel7 this is a nested struct with ktime_t. However, in rhel8 ktime_t is a simple s64, and not a union, and thus we can't do this as easily. Just memset it. Signed-off-by: Auke Kok <auke.kok@versity.com>
This commit is contained in:
+3
-1
@@ -729,11 +729,13 @@ static void scoutfs_quorum_worker(struct work_struct *work)
|
||||
struct sockaddr_in unused;
|
||||
struct quorum_host_msg msg;
|
||||
struct quorum_status qst = {0,};
|
||||
struct hb_recording hbr = {{0,},};
|
||||
struct hb_recording hbr;
|
||||
bool record_hb;
|
||||
int ret;
|
||||
int err;
|
||||
|
||||
memset(&hbr, 0, sizeof(struct hb_recording));
|
||||
|
||||
/* recording votes from slots as native single word bitmap */
|
||||
BUILD_BUG_ON(SCOUTFS_QUORUM_MAX_SLOTS > BITS_PER_LONG);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user