Skip to content

Commit

Permalink
h8300: move definition of __kernel_size_t etc. to posix_types.h
Browse files Browse the repository at this point in the history
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: Masahiro Yamada <yamada.masahiro@socionext.com>
  • Loading branch information
Masahiro Yamada authored and Masahiro Yamada committed Apr 8, 2020
1 parent e3c0f6f commit c9ee4bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
15 changes: 0 additions & 15 deletions arch/h8300/include/uapi/asm/bitsperlong.h

This file was deleted.

13 changes: 13 additions & 0 deletions arch/h8300/include/uapi/asm/posix_types.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
#ifndef _UAPI_ASM_POSIX_TYPES_H
#define _UAPI_ASM_POSIX_TYPES_H

/* h8300-unknown-linux required long */
#define __kernel_size_t __kernel_size_t
typedef unsigned long __kernel_size_t;
typedef long __kernel_ssize_t;
typedef long __kernel_ptrdiff_t;

#include <asm-generic/posix_types.h>

#endif /* _UAPI_ASM_POSIX_TYPES_H */

0 comments on commit c9ee4bf

Please sign in to comment.