From 1492fa526e1d62bd2f148b3ad337c5bb1f4bd86d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 24 Nov 2018 04:25:00 +0900 Subject: [PATCH 1/2] basic/list: add missing header Some macros use assert() which is (re)defined in macro.h --- src/basic/list.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/basic/list.h b/src/basic/list.h index 040680c30a..b6132c21df 100644 --- a/src/basic/list.h +++ b/src/basic/list.h @@ -1,6 +1,8 @@ /* SPDX-License-Identifier: LGPL-2.1+ */ #pragma once +#include "macro.h" + /* The head of the linked list. Use this in the structure that shall * contain the head of the linked list */ #define LIST_HEAD(t,name) \ From 0d7f7c2fde377d9bf618d16aa230757f956f8191 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 24 Nov 2018 04:26:10 +0900 Subject: [PATCH 2/2] basic/list: fix minor coding style issue --- src/basic/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic/list.h b/src/basic/list.h index b6132c21df..f7f97000e0 100644 --- a/src/basic/list.h +++ b/src/basic/list.h @@ -15,8 +15,8 @@ /* Initialize the list's head */ #define LIST_HEAD_INIT(head) \ do { \ - (head) = NULL; } \ - while (false) + (head) = NULL; \ + } while (false) /* Initialize a list item */ #define LIST_INIT(name,item) \