Skip to content

Commit

Permalink
misc: xilinx-ai-engine: include stdlib.h for size_t in uapi header
Browse files Browse the repository at this point in the history
Include stdlib.h under #ifndef __KERNEL__. Otherwise, errors as below:

./usr/include/linux/xlnx-ai-engine.h:56:2: error: unknown type name ‘size_t’
  size_t offset;
  ^
./usr/include/linux/xlnx-ai-engine.h:57:2: error: unknown type name ‘size_t’
  size_t size;
  ^

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Hyun Kwon <[email protected]>
Reviewed-by: Wendy Liang <[email protected]>
  • Loading branch information
xlnx-hyunkwon authored and Michal Simek committed Aug 12, 2020
1 parent bd97618 commit 85dbdc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/uapi/linux/xlnx-ai-engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#ifndef _UAPI_AI_ENGINE_H_
#define _UAPI_AI_ENGINE_H_

#ifndef __KERNEL__
#include <stdlib.h>
#endif

#include <linux/ioctl.h>
#include <linux/types.h>

Expand Down

0 comments on commit 85dbdc0

Please sign in to comment.