Received: by 10.223.176.46 with SMTP id f43csp281972wra; Tue, 23 Jan 2018 21:00:18 -0800 (PST) X-Google-Smtp-Source: AH8x225OUG4O9HoaNkXOJCqx2oczpGkZedSqh8DsVzpx4ja5P3byM/Ru98eKO/sVqjWoYb4n8hZi X-Received: by 10.99.114.93 with SMTP id c29mr10100132pgn.419.1516770018324; Tue, 23 Jan 2018 21:00:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516770018; cv=none; d=google.com; s=arc-20160816; b=K5sjOJ/v0NuC8MNhJ/ugOt9lA/T/emgpCnNtJKLKHAr2lbzQDrD0PchOUTkFIu4BjA MiAV3jhzBMj6sezJc2fBxQkOTI8YpVi6GraZN8lAtublqBGzOnLg23CR3azG3K0ySWy2 C/u8ImXbnBAOx9yJN4zuHKMdF8IopkbOtoSQdb6h7HNJxdQL1Y2UKTEQPYE9KTsQ+sM+ Cysx5ETxu6bkfLPmXINcrzI2+OYfIwhYDACPdjO1hqLOXVXdcHsmPiVnNfQ1YMfVvoEz WrK01i+mdbN1/HgKGKLIRPCJvX8k6w7nI8WDTrQ1a0ggH+EAF536PmHzZ4Tp0SXQK+wI g2/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=UZwYQul/mYkBNYPYJ8e9mNFNUbL9bANhjbzBo+8cy3Y=; b=LnbPDCXQ3/Vc+5I4QtxufRvD7mvqqJiuK6avlaSOOmpHvEuLc7n4N+i4C2nFUwgrIB WpaT6BoQqA3F9ckDUv4Ge5NCDi8i19jyWd4uAhpeiI+uFIAeAJr9TTjXdX5exca0PZFl C8GB7bd+rChpqJy3m+PN4hKMlNZp5I5/SaRWbJdQlLQRTuwuxsAIgo6uBiWX9isbrzLA cpH1ESDmrEjKg3Wbw3u2crRpkZ5X/fNsK3uoaemMzL1w0HiVI5tSo3ngR6TNpIy6zfPI 2qiJ7aSn4jelE+LcaxDTm8cOkbEL6f4++mJmjAOmXeKOlc/j9gcjBl18qfKOa3B/ye/S zLeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=lJQed5Xb; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q127si8376254pga.660.2018.01.23.21.00.04; Tue, 23 Jan 2018 21:00:18 -0800 (PST) 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=@microsoft.com header.s=selector1 header.b=lJQed5Xb; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932271AbeAXE64 (ORCPT + 99 others); Tue, 23 Jan 2018 23:58:56 -0500 Received: from mail-by2nam03on0097.outbound.protection.outlook.com ([104.47.42.97]:48419 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752819AbeAXEPQ (ORCPT ); Tue, 23 Jan 2018 23:15:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=UZwYQul/mYkBNYPYJ8e9mNFNUbL9bANhjbzBo+8cy3Y=; b=lJQed5XbXxnDrNymUuhRI3JAu18xUzK/pf1lJt7nTtZoy8NyvTfMU52N+Pen757jjitTEd5Tyvz518mY4GhK9jXAf6rSmwoKEilj40qVr3F9ZfvTK0smS7yQRUYGJqMW+DiCmhdZZjMeMiMF5FRfnAPIYZBGm7hOubnPE/gQEkw= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0998.namprd21.prod.outlook.com (52.132.133.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.0; Wed, 24 Jan 2018 04:15:11 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::6485:b98:d15e:9da7]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::6485:b98:d15e:9da7%2]) with mapi id 15.20.0464.000; Wed, 24 Jan 2018 04:15:11 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: "Dmitry V. Levin" , Oded Gabbay , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 036/100] uapi: fix linux/kfd_ioctl.h userspace compilation errors Thread-Topic: [PATCH AUTOSEL for 4.14 036/100] uapi: fix linux/kfd_ioctl.h userspace compilation errors Thread-Index: AQHTlMnbwKtsvTayG0qkCDMlqpeDbg== Date: Wed, 24 Jan 2018 04:14:41 +0000 Message-ID: <20180124041414.32065-36-alexander.levin@microsoft.com> References: <20180124041414.32065-1-alexander.levin@microsoft.com> In-Reply-To: <20180124041414.32065-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0998;7:M5OwNqgNgDvw2LJJV5MQw+gw3nOnwp+AaBwIDUyZ1Yx0+rO2fzVm52TeUnHAEtfEklRfoFb5q08oRrDE2Ap2lfTB1SLKBNm9ZnJ84FrOeL3ASfFYPnqaBgu08KzFbXL5eS+zOI2Fyy8fuMfmakzaOa/6k9XJay8ZCah1fLga5Vu0QWLGWHTPw5UJ0ogeu3Ng/tHd7fzYc9jr7Cx4qvdc5MlOF/C15q1ACOdKzn0YDEj78LnswYQ7Mzp7Bo8Pft3W x-ms-office365-filtering-correlation-id: c2989313-f3ed-447b-e538-08d562e10fb6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603307)(7193020);SRVR:DM5PR2101MB0998; x-ms-traffictypediagnostic: DM5PR2101MB0998: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(85827821059158); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231046)(2400081)(944501161)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB0998;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0998; x-forefront-prvs: 056297E276 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39380400002)(346002)(39860400002)(396003)(376002)(199004)(189003)(14454004)(3660700001)(6346003)(10290500003)(105586002)(66066001)(6506007)(8676002)(22452003)(86612001)(54906003)(10090500001)(81166006)(81156014)(76176011)(110136005)(86362001)(68736007)(106356001)(8936002)(3280700002)(36756003)(25786009)(107886003)(39060400002)(2501003)(6666003)(99286004)(2906002)(26005)(2950100002)(72206003)(102836004)(305945005)(6116002)(3846002)(5660300001)(4326008)(478600001)(316002)(53936002)(97736004)(575784001)(2900100001)(5250100002)(6512007)(6436002)(6486002)(1076002)(7736002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0998;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: XSsvgyxeIxJhWVna0UjSGREzKFRGrEbElTm89PoZ5ddho6RE/w6nqoK5YpkbfK0iP2AZ6NPm7ZcYvT8vYHRMlw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2989313-f3ed-447b-e538-08d562e10fb6 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2018 04:14:41.8171 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0998 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Dmitry V. Levin" [ Upstream commit b4d085201d86af69cbda2214c6dafc0be240ef9f ] Consistently use types provided by via to fix the following linux/kfd_ioctl.h userspace compilation errors: /usr/include/linux/kfd_ioctl.h:236:2: error: unknown type name 'uint64_t' uint64_t va_addr; /* to KFD */ /usr/include/linux/kfd_ioctl.h:237:2: error: unknown type name 'uint32_t' uint32_t gpu_id; /* to KFD */ /usr/include/linux/kfd_ioctl.h:238:2: error: unknown type name 'uint32_t' uint32_t pad; /usr/include/linux/kfd_ioctl.h:243:2: error: unknown type name 'uint64_t' uint64_t tile_config_ptr; /usr/include/linux/kfd_ioctl.h:245:2: error: unknown type name 'uint64_t' uint64_t macro_tile_config_ptr; /usr/include/linux/kfd_ioctl.h:249:2: error: unknown type name 'uint32_t' uint32_t num_tile_configs; /usr/include/linux/kfd_ioctl.h:253:2: error: unknown type name 'uint32_t' uint32_t num_macro_tile_configs; /usr/include/linux/kfd_ioctl.h:255:2: error: unknown type name 'uint32_t' uint32_t gpu_id; /* to KFD */ /usr/include/linux/kfd_ioctl.h:256:2: error: unknown type name 'uint32_t' uint32_t gb_addr_config; /* from KFD */ /usr/include/linux/kfd_ioctl.h:257:2: error: unknown type name 'uint32_t' uint32_t num_banks; /* from KFD */ /usr/include/linux/kfd_ioctl.h:258:2: error: unknown type name 'uint32_t' uint32_t num_ranks; /* from KFD */ Fixes: 6a1c9510694fe ("drm/amdkfd: Adding new IOCTL for scratch memory v2") Fixes: 5d71dbc3a5886 ("drm/amdkfd: Implement image tiling mode support v2") Signed-off-by: Dmitry V. Levin Signed-off-by: Oded Gabbay Signed-off-by: Sasha Levin --- include/uapi/linux/kfd_ioctl.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.= h index 26283fefdf5f..f7015aa12347 100644 --- a/include/uapi/linux/kfd_ioctl.h +++ b/include/uapi/linux/kfd_ioctl.h @@ -233,29 +233,29 @@ struct kfd_ioctl_wait_events_args { }; =20 struct kfd_ioctl_set_scratch_backing_va_args { - uint64_t va_addr; /* to KFD */ - uint32_t gpu_id; /* to KFD */ - uint32_t pad; + __u64 va_addr; /* to KFD */ + __u32 gpu_id; /* to KFD */ + __u32 pad; }; =20 struct kfd_ioctl_get_tile_config_args { /* to KFD: pointer to tile array */ - uint64_t tile_config_ptr; + __u64 tile_config_ptr; /* to KFD: pointer to macro tile array */ - uint64_t macro_tile_config_ptr; + __u64 macro_tile_config_ptr; /* to KFD: array size allocated by user mode * from KFD: array size filled by kernel */ - uint32_t num_tile_configs; + __u32 num_tile_configs; /* to KFD: array size allocated by user mode * from KFD: array size filled by kernel */ - uint32_t num_macro_tile_configs; + __u32 num_macro_tile_configs; =20 - uint32_t gpu_id; /* to KFD */ - uint32_t gb_addr_config; /* from KFD */ - uint32_t num_banks; /* from KFD */ - uint32_t num_ranks; /* from KFD */ + __u32 gpu_id; /* to KFD */ + __u32 gb_addr_config; /* from KFD */ + __u32 num_banks; /* from KFD */ + __u32 num_ranks; /* from KFD */ /* struct size can be extended later if needed * without breaking ABI compatibility */ --=20 2.11.0