From patchwork Tue May 15 02:22:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 135807 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp388665lji; Mon, 14 May 2018 19:23:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqLieqUp9kTIlUZmz+LFrexodMvfKzVSy0FzAf1cWq7L2nhpepZ8LORpmmeSz9keXiPguz9 X-Received: by 2002:a63:7159:: with SMTP id b25-v6mr10230618pgn.194.1526351000078; Mon, 14 May 2018 19:23:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526351000; cv=none; d=google.com; s=arc-20160816; b=bkYLB6NLFRZR01s95CzHH9wyrsZIzy+HN7E2+AwKr7YxvU34fRqfL2fh42ZTKNMepk QtgwQzt7kciIbQ1ycUBi44B0ZTs/FFJKbhadwGEsdLOwMNHdE6qhJn8NsSxPx7XwAnR4 U+NVv7vWjYO42EbEXJIBCWWQgRQpupMX4zotq6HpBRpc1eIbuTBfPZ0MuW4tNgV6TKqz Y8DstjRUyz4phaV5ormQye80yAqiAq9CgxPSkuQCsLS4uLuDGx3+WjVTvmAG7uzDsUQX 3qZOvLBroeaYYU08KiyJ0QBOS/hG+nY3wPihnqWurkLrNyj314lyO4ZDjOvOtsfzHniZ +Rag== 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=UF+Gpa4q4xjQvULts7NW+NpmdolTsyJ90uLestxfclI=; b=lw6a6J3Woz40BVooQGZpfmzpZLsY5uqLmzOzAMkaT7J8h26Y+Q4bxlqo6eOenOuSrc MGkmG//7jTKOSLtuYgd+VfrBPjN6QcrSyIOuDiIzlMusfhL0FPGApRhjDXcwAxSbySPl zuyRLMPq6qYxpnrx4xJZb5qXHCs1azgbBwN5vNptThUHQ95YKZ2vAX6Qacq1bb9x49+9 HQwLg1Xl2+RpKSUAmmOPutBCGa1nl4bCF9CVmq+UKMVmU+4W2+yQ56lW5xPGbC+egiMY +eih8xU8+WOty0DhHGkb8+vZcdMJztdG8lviKQxKAgVIGsroFS1jfGedUKn88nGuPCGr 7akw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ZoJFuJzL; 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.19; Mon, 14 May 2018 19:23:20 -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=ZoJFuJzL; 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 S1752208AbeEOCXR (ORCPT + 29 others); Mon, 14 May 2018 22:23:17 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:34207 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752013AbeEOCXQ (ORCPT ); Mon, 14 May 2018 22:23:16 -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 w4F2M8PI020933; Tue, 15 May 2018 11:22:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com w4F2M8PI020933 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1526350930; bh=UF+Gpa4q4xjQvULts7NW+NpmdolTsyJ90uLestxfclI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZoJFuJzLDFa5RTK+u6eHRimIIqQQ8og/vRvsDWvNsBAhO7QwHcSgO3plJkRGUH/1K 6Rr/g/czEC/+KCzIAl9M9rawoYqs4U3aFy4yg0Lo07dGe8kb0iQ2g1bn1n3s1Pi3fY ladxsPP4oVxHGLzuWt39508loJI6aIVG6do7XIAPLLQlR6pMXEKKocFOC6JDwF1J/q 8h6h+X6Fl6o7WPf1zxMIgg30SxL89pfSdbJDQdxJUbZRJ1G59TgX7A4BnKA7M8gAPk dxqriabDSeuv62keQU4HRMcDafWGfNu5FoPPWSYQW/xMR/psHOc/BZ+UWWV1EbImKL WwRzgSUYlaaqA== 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, Pekka Enberg , Kate Stewart , Greg Kroah-Hartman Subject: [PATCH 2/3] types: define aligned_ types based on uapi header Date: Tue, 15 May 2018 11:22:04 +0900 Message-Id: <1526350925-14922-2-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 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/linux/types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/include/linux/types.h b/include/linux/types.h index ec13d02..be15897 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -115,9 +115,9 @@ typedef __s64 int64_t; #endif /* this is a special 64bit data type that is 8-byte aligned */ -#define aligned_u64 __u64 __attribute__((aligned(8))) -#define aligned_be64 __be64 __attribute__((aligned(8))) -#define aligned_le64 __le64 __attribute__((aligned(8))) +#define aligned_u64 __aligned_u64 +#define aligned_be64 __aligned_be64 +#define aligned_le64 __aligned_le64 /** * The type used for indexing onto a disc or disc partition.