From patchwork Tue May 15 02:22:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 135808 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp388857lji; Mon, 14 May 2018 19:23:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqhp0t80CVT7RmwkDhreDhhJxRnZUEmYg18B1CpnEthgWwUgHqJgCc39wK6+xTnTtd+nYLs X-Received: by 2002:a17:902:1aa:: with SMTP id b39-v6mr12388915plb.120.1526351013380; Mon, 14 May 2018 19:23:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526351013; cv=none; d=google.com; s=arc-20160816; b=xYr0qTuhVHaTHjSbnBe2+PXl5h+NAdlfj8FitH6B0A6BBpDEhrEg3OUylq3cAbvKZt OAGUOdQ7Fmt7D+vly3vLAdDcIQNwPOvKln6Y++VQPBNIzFeedCU9Ne5N2XjIS/T1pSeZ U/7UuP7aein5olINHAksOkYcELfF4/j3WPMTDG6v4TKjHeSiocQgDJ0ghaOslhhqXqBt 8ciQ9jgTngYk20hS+TgvNpGdzSgJ0ta9evnGHkt5yODfvg2KpWDW1ElSEZFmr/aa0MV+ /WCige3s16ae5Foh8dA/H9Kd3Q+H0RofFXB0gHMrI42eVrpAIE0Rza4weTVshoQNoTsa fOuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=Sopz2SQ/67frl+VX6vVEx6isSbUml3jI6cptuWRJgKU=; b=bvAID79BxOySqsX/SZOoBqPtM120Eoxt6fvASAWeywa4WZN5T5QlyT4ogFxYK7zagJ CGdlU+DEjD+9/GLyftCElrR/F+IqL4UoYDLnIVbN5WWm1syvmsprd7PnEl+j4f+yyD65 WxbIuNFsAp7hmwKjESGFijZu9BODXcmL9WupVeOQFJlXBTHuDnG7ETajW5IDvxdDOVtP hwUJKI+IbSNX+FCRoKVIot4PAMGoKH/VNcZ0g0EHvrUUfWA8MnXscLKVde+YiL6C02no mqtvjzWDeqYIn5ds3CwSVnjxjAt5ukXNUJ86h8M9DPqNdlMCfiq/l/D/K2wXBP48C7Cz SF8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JbI3O8J6; 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 w68-v6si11149339pfb.325.2018.05.14.19.23.33; Mon, 14 May 2018 19:23:33 -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=JbI3O8J6; 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 S1752253AbeEOCXa (ORCPT + 29 others); Mon, 14 May 2018 22:23:30 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:34569 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752227AbeEOCX3 (ORCPT ); Mon, 14 May 2018 22:23:29 -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 w4F2M8PJ020933; Tue, 15 May 2018 11:22:10 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com w4F2M8PJ020933 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1526350931; bh=Sopz2SQ/67frl+VX6vVEx6isSbUml3jI6cptuWRJgKU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JbI3O8J6VPiYp04/7a9sUlUjjowGQ3SfhK/QMh0ChDoovduzFrTGBpRn308B2Y//U XEPs+/j4yaS0hVy3MO9BNhG8CAlFkt1VY6OZOkbtoNwd+In++EtHJUrYuIW0/035QE oAW1FhbgqKEJhdCZIfnXXDYuZyxtPfUEsc8ccSnyZZqaO9WPar+6g4pOGiwqlGTXJS TGucPPxEpO38NieJfkc+NUrQ3uMZ69SycvH+pOia9+AKAsfZT6SXmd2QzrxRbCjGTB TlJFu2zomO9f8H96XIHVKHL4toSv3lC8Xsk2bttuHrFTYlaZ0KIACtLcYufCKg90W9 XiChkQPVXN1bw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton Cc: Geert Uytterhoeven , Masahiro Yamada , Alexey Dobriyan , Lihao Liang , linux-kernel@vger.kernel.org, Philippe Ombredanne , Pekka Enberg , Greg Kroah-Hartman Subject: [PATCH 3/3] types: use fixed width types without double-underscore prefix Date: Tue, 15 May 2018 11:22:05 +0900 Message-Id: <1526350925-14922-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526350925-14922-1-git-send-email-yamada.masahiro@socionext.com> References: <1526350925-14922-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This header file is not exported. It is safe to reference types without double-underscore prefix. Signed-off-by: Masahiro Yamada --- include/linux/types.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) -- 2.7.4 diff --git a/include/linux/types.h b/include/linux/types.h index be15897..9834e90 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -10,14 +10,14 @@ #define DECLARE_BITMAP(name,bits) \ unsigned long name[BITS_TO_LONGS(bits)] -typedef __u32 __kernel_dev_t; +typedef u32 __kernel_dev_t; typedef __kernel_fd_set fd_set; typedef __kernel_dev_t dev_t; typedef __kernel_ino_t ino_t; typedef __kernel_mode_t mode_t; typedef unsigned short umode_t; -typedef __u32 nlink_t; +typedef u32 nlink_t; typedef __kernel_off_t off_t; typedef __kernel_pid_t pid_t; typedef __kernel_daddr_t daddr_t; @@ -95,23 +95,23 @@ typedef unsigned long ulong; #ifndef __BIT_TYPES_DEFINED__ #define __BIT_TYPES_DEFINED__ -typedef __u8 u_int8_t; -typedef __s8 int8_t; -typedef __u16 u_int16_t; -typedef __s16 int16_t; -typedef __u32 u_int32_t; -typedef __s32 int32_t; +typedef u8 u_int8_t; +typedef s8 int8_t; +typedef u16 u_int16_t; +typedef s16 int16_t; +typedef u32 u_int32_t; +typedef s32 int32_t; #endif /* !(__BIT_TYPES_DEFINED__) */ -typedef __u8 uint8_t; -typedef __u16 uint16_t; -typedef __u32 uint32_t; +typedef u8 uint8_t; +typedef u16 uint16_t; +typedef u32 uint32_t; #if defined(__GNUC__) -typedef __u64 uint64_t; -typedef __u64 u_int64_t; -typedef __s64 int64_t; +typedef u64 uint64_t; +typedef u64 u_int64_t; +typedef s64 int64_t; #endif /* this is a special 64bit data type that is 8-byte aligned */