[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/4] hw/registerfields: add missing include
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [PATCH 4/4] hw/registerfields: add missing include |
Date: |
Wed, 13 Dec 2017 02:17:36 -0300 |
This allows to use this header in qtests.
This fixes:
CC tests/test.o
include/hw/registerfields.h:32:41: error: implicit declaration of function
‘MAKE_64BIT_MASK’ [-Werror=implicit-function-declaration]
MAKE_64BIT_MASK(shift, length)};
^
include/hw/registerfields.h:39:5: error: implicit declaration of function
‘extract64’; [-Werror=implicit-function-declaration]
extract64((storage), R_ ## reg ## _ ## field ## _SHIFT,
^
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
include/hw/registerfields.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/hw/registerfields.h b/include/hw/registerfields.h
index f59e7f47bd..44e0b94edf 100644
--- a/include/hw/registerfields.h
+++ b/include/hw/registerfields.h
@@ -11,6 +11,8 @@
#ifndef REGISTERFIELDS_H
#define REGISTERFIELDS_H
+#include <qemu/bitops.h>
+
/* Define constants for a 32 bit register */
/* This macro will define A_FOO, for the byte address of a register
--
2.15.1
- [Qemu-devel] [PATCH 0/4] Trivial changes in "registerfields.h", Philippe Mathieu-Daudé, 2017/12/13
- [Qemu-devel] [PATCH 1/4] MAINTAINERS: add "hw/registerfields.h" in Register API entry, Philippe Mathieu-Daudé, 2017/12/13
- [Qemu-devel] [PATCH 2/4] hw/registerfields: fix a typo in the FIELD() documentation, Philippe Mathieu-Daudé, 2017/12/13
- [Qemu-devel] [PATCH 3/4] hw/registerfields: add 64-bit extract/deposit macros, Philippe Mathieu-Daudé, 2017/12/13
- [Qemu-devel] [PATCH 4/4] hw/registerfields: add missing include,
Philippe Mathieu-Daudé <=
- Re: [Qemu-devel] [PATCH 0/4] Trivial changes in "registerfields.h", Darren Kenny, 2017/12/13
- Re: [Qemu-devel] [PATCH 0/4] Trivial changes in "registerfields.h", Edgar E. Iglesias, 2017/12/13