Commit c9ee4bf9 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Masahiro Yamada

h8300: move definition of __kernel_size_t etc. to posix_types.h

These types should be defined in posix_types.h, not in bitsperlong.h .

With these defines moved, h8300-specific bitsperlong.h is no longer
needed since Kbuild will automatically create a wrapper of
include/uapi/asm-generic/bitsperlong.h
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent e3c0f6f3
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
#ifndef _UAPI__ASM_H8300_BITS_PER_LONG #ifndef _UAPI_ASM_POSIX_TYPES_H
#define _UAPI__ASM_H8300_BITS_PER_LONG #define _UAPI_ASM_POSIX_TYPES_H
#include <asm-generic/bitsperlong.h>
#if !defined(__ASSEMBLY__)
/* h8300-unknown-linux required long */ /* h8300-unknown-linux required long */
#define __kernel_size_t __kernel_size_t #define __kernel_size_t __kernel_size_t
typedef unsigned long __kernel_size_t; typedef unsigned long __kernel_size_t;
typedef long __kernel_ssize_t; typedef long __kernel_ssize_t;
typedef long __kernel_ptrdiff_t; typedef long __kernel_ptrdiff_t;
#endif
#endif /* _UAPI__ASM_H8300_BITS_PER_LONG */ #include <asm-generic/posix_types.h>
#endif /* _UAPI_ASM_POSIX_TYPES_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment