From patchwork Tue May 15 02:22:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 135806 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp388428lji; Mon, 14 May 2018 19:23:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr4P9tBLguffblvnzMgi2k5Sm4KQV5Lf0wsTndshf5Fcn/ZCMu65RGpthNoQfq34ZHP9+3n X-Received: by 2002:a62:1fc8:: with SMTP id l69-v6mr12965269pfj.49.1526350980868; Mon, 14 May 2018 19:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526350980; cv=none; d=google.com; s=arc-20160816; b=hpf3GUE9T3D7mcZc1Og2c6DfOg3vlQk9/tmLISxbVzMRynEVbdY34PFSw+lTxZLq4h AyvkaXMJOFbqzjYE18p2tWvU92K1idKeNS+aw/B3Hp7V7RzczrcLRdWGMuNAyIxjPypp tNETEesKWLbn3YaeeQD0fVdzyLDnoA8fwVSH7Q6T1relVdmJYd9fGkBf1rEnzhOcfHQd Bn+UOlstd6SeLjoBXWOV8KwyEwK/lDNvuRTsimVwTCclKeMkxu9Sd2YpYgqqlLvU/yLB nKZdIQmfMQ4mvFA1xv2DKxMUH5uj8wBZQa+N42sizzTu6E2Hzw8LVLP8Y6Oh8L6MwCwo M4uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=WUP2K60WNn/p8XJUiAHAiwfM1jXLfUIPXhGtT8oMiDM=; b=w63xXQGwCQjy2jkPk3PDaU4dOK5DIL0N8KJo75K5XVv7tHqkhubJ/iRPBzcM2f33nf Eg5NGQFnIwlOSKwSdPrvvT6YqrX3QKxKUxxfq384QhUzyw63PWSX2pKPsony6/YzwS68 hk3l8TbEjx6VQoHbnJNF4W2lnSFZyu64YRonhxaq+Jca8UH60uF8HTphMJgKPQc5uYFI T/nC/sb4VlvjEuy1vmL+8dtiooh+Sf2shrVij20HmY03c0UnNmySJZnPp6h7xDJth2KY duKZffE8Elo2qtGnHUZJi5yNrQgbAOvhLm1bc3DVEzAFeWbSDR5EavpiuOIwoSRBhnRM 1gzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=odOrta5V; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17-v6si8466556pgv.196.2018.05.14.19.23.00; Mon, 14 May 2018 19:23:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=odOrta5V; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752159AbeEOCW5 (ORCPT + 29 others); Mon, 14 May 2018 22:22:57 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:33550 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752013AbeEOCW4 (ORCPT ); Mon, 14 May 2018 22:22:56 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id w4F2M8PH020933; Tue, 15 May 2018 11:22:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com w4F2M8PH020933 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1526350929; bh=WUP2K60WNn/p8XJUiAHAiwfM1jXLfUIPXhGtT8oMiDM=; h=From:To:Cc:Subject:Date:From; b=odOrta5VkpuMX1NqFzDeM8eLks5elQcs0IEyLbb4bpNk2MlcoAwLKfbuyaqvgfiNJ XQRyuT3xoTJY94scoyXk27AGGUKZYwxXXaOWkUls6KyDJO7sLkEb8rf+cnnmQVEasn NcMD6wQ3Stw0TPsZV+cw9ggPjel1YnMf5oyLcny6/d94Fm9IrsH6XOTCvDjhdcrSZf CsMJUPb4trVr1iS89uNknOKQydJZ1JxWfKyErGjgu0cGO/IeIT1bOCLAndOpI3iR+f QNVUM7eozW6QuU3FMUr0BsGMeQuRohZnR335wljgKWfdviWhCv7AWBTTgjlRKh2Fiw 3L1aq7rCHuT0Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton Cc: Geert Uytterhoeven , Masahiro Yamada , linux-arch@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] int-ll64.h: define u{8, 16, 32, 64} and s{8, 16, 32, 64} based on uapi header Date: Tue, 15 May 2018 11:22:03 +0900 Message-Id: <1526350925-14922-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org has the same typedefs except that it prefixes them with double-underscore for user space. Use them for the kernel space typedefs. Signed-off-by: Masahiro Yamada --- include/asm-generic/int-ll64.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) -- 2.7.4 diff --git a/include/asm-generic/int-ll64.h b/include/asm-generic/int-ll64.h index ffb68d6..a248545 100644 --- a/include/asm-generic/int-ll64.h +++ b/include/asm-generic/int-ll64.h @@ -13,17 +13,14 @@ #ifndef __ASSEMBLY__ -typedef signed char s8; -typedef unsigned char u8; - -typedef signed short s16; -typedef unsigned short u16; - -typedef signed int s32; -typedef unsigned int u32; - -typedef signed long long s64; -typedef unsigned long long u64; +typedef __s8 s8; +typedef __u8 u8; +typedef __s16 s16; +typedef __u16 u16; +typedef __s32 s32; +typedef __u32 u32; +typedef __s64 s64; +typedef __u64 u64; #define S8_C(x) x #define U8_C(x) x ## U