diff options
author | Corey Minyard <cminyard@mvista.com> | 2022-04-12 15:49:47 -0500 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2022-05-12 10:00:03 -0500 |
commit | f214549d717310f795c20db9497db3938116399d (patch) | |
tree | 14f17cf72a510204c8f433deb292c31467ae6a52 /include/linux/ipmi.h | |
parent | 9824117dd964ecebf5d81990dbf21dfb56445049 (diff) |
ipmi: Add an intializer for ipmi_recv_msg struct
Don't hand-initialize the struct here, create a macro to initialize it
so new fields added don't get forgotten in places.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'include/linux/ipmi.h')
-rw-r--r-- | include/linux/ipmi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ipmi.h b/include/linux/ipmi.h index 163831a087ef..a1c9c0d48ebf 100644 --- a/include/linux/ipmi.h +++ b/include/linux/ipmi.h @@ -72,6 +72,11 @@ struct ipmi_recv_msg { unsigned char msg_data[IPMI_MAX_MSG_LENGTH]; }; +#define INIT_IPMI_RECV_MSG(done_handler) \ +{ \ + .done = done_handler \ +} + /* Allocate and free the receive message. */ void ipmi_free_recv_msg(struct ipmi_recv_msg *msg); |