From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B912DC433FF for ; Sat, 27 Jul 2019 13:46:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9A35420449 for ; Sat, 27 Jul 2019 13:46:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387707AbfG0NqV (ORCPT ); Sat, 27 Jul 2019 09:46:21 -0400 Received: from mail01.asahi-net.or.jp ([202.224.55.13]:50700 "EHLO mail01.asahi-net.or.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387578AbfG0NqU (ORCPT ); Sat, 27 Jul 2019 09:46:20 -0400 Received: from h61-195-96-97.vps.ablenet.jp (h61-195-96-97.ablenetvps.ne.jp [61.195.96.97]) (Authenticated sender: PQ4Y-STU) by mail01.asahi-net.or.jp (Postfix) with ESMTPA id 682D412BA1E; Sat, 27 Jul 2019 22:46:18 +0900 (JST) Received: from yo-satoh-debian.ysato.ml (ZM005235.ppp.dion.ne.jp [222.8.5.235]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id D0121240085; Sat, 27 Jul 2019 22:46:17 +0900 (JST) Date: Sat, 27 Jul 2019 22:46:16 +0900 Message-ID: <87r26bpp3r.wl-ysato@users.sourceforge.jp> From: Yoshinori Sato To: Masahiro Yamada Cc: uclinux-h8-devel@lists.sourceforge.jp, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: Re: [PATCH] h8300: move definition of __kernel_size_t etc. to posix_types.h In-Reply-To: <20190723102106.11375-1-yamada.masahiro@socionext.com> References: <20190723102106.11375-1-yamada.masahiro@socionext.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Jul 2019 19:21:06 +0900, Masahiro Yamada wrote: > > 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 > --- > > arch/h8300/include/uapi/asm/bitsperlong.h | 15 --------------- > arch/h8300/include/uapi/asm/posix_types.h | 13 +++++++++++++ > 2 files changed, 13 insertions(+), 15 deletions(-) > delete mode 100644 arch/h8300/include/uapi/asm/bitsperlong.h > create mode 100644 arch/h8300/include/uapi/asm/posix_types.h > > diff --git a/arch/h8300/include/uapi/asm/bitsperlong.h b/arch/h8300/include/uapi/asm/bitsperlong.h > deleted file mode 100644 > index a33e358f1c1b..000000000000 > --- a/arch/h8300/include/uapi/asm/bitsperlong.h > +++ /dev/null > @@ -1,15 +0,0 @@ > -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > -#ifndef _UAPI__ASM_H8300_BITS_PER_LONG > -#define _UAPI__ASM_H8300_BITS_PER_LONG > - > -#include > - > -#if !defined(__ASSEMBLY__) > -/* 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; > -#endif > - > -#endif /* _UAPI__ASM_H8300_BITS_PER_LONG */ > diff --git a/arch/h8300/include/uapi/asm/posix_types.h b/arch/h8300/include/uapi/asm/posix_types.h > new file mode 100644 > index 000000000000..3efc9dd59476 > --- /dev/null > +++ b/arch/h8300/include/uapi/asm/posix_types.h > @@ -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 > + > +#endif /* _UAPI_ASM_POSIX_TYPES_H */ > -- > 2.17.1 > Applied h8300-next. Thanks. -- Yosinori Sato