Received: by 10.223.176.5 with SMTP id f5csp986496wra; Fri, 2 Feb 2018 09:16:43 -0800 (PST) X-Google-Smtp-Source: AH8x225pZZttT5j56sSPF+qDhMIyMlGVuhjyaSB7I0W8Rq6G/cOsDbh/fL7YewFA/Pe/rtIqyHcw X-Received: by 2002:a17:902:b104:: with SMTP id q4-v6mr5664725plr.143.1517591803687; Fri, 02 Feb 2018 09:16:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517591803; cv=none; d=google.com; s=arc-20160816; b=KTCtuzwnlaWf+4yYsbS4DB/PBqltLd4/KfDxMNjGi18t0QMTG1L9y5N0Ja0sKK96M4 KIFHbCo4EwjJfLVKmusf6eQM+zQ0oayZ5IwUHTE36IKvhyxM0fA/MQD4A7vls44UAYou qc68LNrCdHiXjAVGV9rKFdJquyEWgoXU6frtBBRV95DWhdAIn/r6L/K1yREy2Aox3cUs fgKK2/ukevHsyGG/RyHr1/rUiiqcmmDQJ8loaTC71sNTETISvzuR1V6WhpPAoJTIjNeH vushUzzaiW7BsEf3YsEqoYI1cXDrqird2uMW+IldQWVHNikdAGiqDVOQOsmcX+BFLDnQ L0Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=pabqwkTcoVCZpRBfLA0aRp9oBi/aG0edcb/s9RfhgeM=; b=LHNZ9spphZ0oWfgJj2fqwJYw3HRFx+IyWGAErdFY6SaF7M5IKtzgiO75Pqwxkt1WOk Id0xSExAy/GvtZU2ykcxNjp4GPtfJigG1R4NDTpJsmJ/uPnJPGJEZWfOTKlrNiAZETWt sJrocRDWYB77XKA8NI5eF0hbAxtqxEqKKeUT309+6xcUKuD5Z3nlRtoRqgvgP75Vzg3E RHnG+G34opuiOQC6fzLQNp4lW8ajggbw4vJlMKEg2S/c/5yeMJGsa6vugkPzbnFD9kD9 y/TS2CvU9QlmahF3MmUvWZZ+GOE7o/I4Y3I9yPWuFsAcvgcWzAyHcL+aVvYTGyegUP9e 1sGw== ARC-Authentication-Results: i=1; mx.google.com; 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 p9-v6si277077pls.317.2018.02.02.09.16.24; Fri, 02 Feb 2018 09:16:43 -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; 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 S1753815AbeBBRQB (ORCPT + 99 others); Fri, 2 Feb 2018 12:16:01 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38104 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753223AbeBBRJ7 (ORCPT ); Fri, 2 Feb 2018 12:09:59 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id BB341E8B; Fri, 2 Feb 2018 17:09:58 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Dmitry V. Levin" , Oded Gabbay , Sasha Levin Subject: [PATCH 4.14 065/156] uapi: fix linux/kfd_ioctl.h userspace compilation errors Date: Fri, 2 Feb 2018 17:57:26 +0100 Message-Id: <20180202140843.235961169@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140840.242829545@linuxfoundation.org> References: <20180202140840.242829545@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- include/uapi/linux/kfd_ioctl.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) --- a/include/uapi/linux/kfd_ioctl.h +++ b/include/uapi/linux/kfd_ioctl.h @@ -233,29 +233,29 @@ struct kfd_ioctl_wait_events_args { }; 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; }; 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; - 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 */