diff mbox

[V2,3/7] npu: Fix include in header

Message ID 1458522006-8846-4-git-send-email-ruscur@russell.cc
State Accepted
Headers show

Commit Message

Russell Currey March 21, 2016, 1 a.m. UTC
If npu.h were to be used by anything that hasn't included io.h, it fails
to find the out_be64 symbol.  Fix that up by making it a requirement of
npu.h.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Acked-by: Alistair Popple <alistair@popple.id.au>
---
 include/npu.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Andrew Donnellan March 21, 2016, 1:06 a.m. UTC | #1
On 21/03/16 12:00, Russell Currey wrote:
> If npu.h were to be used by anything that hasn't included io.h, it fails
> to find the out_be64 symbol.  Fix that up by making it a requirement of
> npu.h.
>
> Signed-off-by: Russell Currey <ruscur@russell.cc>
> Acked-by: Alistair Popple <alistair@popple.id.au>

Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
diff mbox

Patch

diff --git a/include/npu.h b/include/npu.h
index 389b732..0b2d984 100644
--- a/include/npu.h
+++ b/include/npu.h
@@ -17,6 +17,8 @@ 
 #ifndef __NPU_H
 #define __NPU_H
 
+#include <io.h>
+
 /* Number of PEs supported */
 #define NPU_NUM_OF_PES	4