Received: by 10.192.165.148 with SMTP id m20csp4696044imm; Tue, 24 Apr 2018 07:03:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq6cLIHrmSdb0IWIFb2m8UwW1xQVq8YHyBziQY4eNIOf+yznDkM57NwGhd63FRvSiqf52Z1 X-Received: by 10.99.140.13 with SMTP id m13mr678732pgd.90.1524578589729; Tue, 24 Apr 2018 07:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524578589; cv=none; d=google.com; s=arc-20160816; b=bk4jLe8XeeUgEkHMqte+iyf5tQsmw6FtPAsyhtAWMByNxhSAlx/dzENSy2/k+iG08Y 2IU7PUOoR7sLCP3kaZvLJx+n2dAU9WZhLJdB0S7e9ep4rrzAm8ZziS7H02QLlgaGuS5/ PWmCbU/dCnMnr78bWAvF8IykvtPfCA9A+TtNY/jkdUMFzkzJHXj7QdefAI/3cfh3MlON 0BOJvlkJmm73HfhQYzv9dm9/JItsxAtNz9RGOCUJ2gW4L+jJLUmg5vl4E0AZebDEO3bw ORpRIFGvTBtHiOHBDB9HUz3SGoajHX0VRN+abzfeZOG/SYvrhRpKDErWrryM67u4Fblm cfDw== 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:arc-authentication-results; bh=rnkQspCJpuT6eB7cLz2mP2emKwGtr4E6Dg+jVeePOPE=; b=mmGRsk5kPXO52wZ71ZdokR/scmONtko/4ScC3VsKa6RoIdw9ABSmAYaFJ0kt6E74sk yKB6X+YMYKiBJz3pcWOEdWJZOrIaoiwUfNN/QZtyABSqJB++z6P0nBbzmbZRTf/qfoVk waAVD1alKDUOrJKev4oEfPiJw6D/vUNJi4FsJAz/fENqyEmEHeplmEowdcu+jEvFONeG 9odc2K3/3aNVlGklrxb0U9nyHm2KIsyO7BmoaxOOb04CHYaSZ97O/rGlFYO8NEgSBOal BN60WQMpMm56WRYGgV7yuNmSskIVW7y17ApUJoVuA9ezQ6gqFNxLmLtl6/e4g2kFpFe3 dzrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o+rNrdo4; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23-v6si14459462plo.597.2018.04.24.07.02.54; Tue, 24 Apr 2018 07:03:09 -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=@gmail.com header.s=20161025 header.b=o+rNrdo4; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758338AbeDXOAr (ORCPT + 99 others); Tue, 24 Apr 2018 10:00:47 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:52677 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757897AbeDXNOT (ORCPT ); Tue, 24 Apr 2018 09:14:19 -0400 Received: by mail-wm0-f67.google.com with SMTP id w195so883539wmw.2 for ; Tue, 24 Apr 2018 06:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=rnkQspCJpuT6eB7cLz2mP2emKwGtr4E6Dg+jVeePOPE=; b=o+rNrdo4XFEinuJCytUzMPegLeCsQYSCaISRNBGfW/+q7zmpvRhUtCays9V+GJ4pDm ot75CRlTmb6DQzxxD3d/tIuNa9f+xNU6oZrCakF/auUwI6/JZA8OjbCIPKRrQOnBIwLd 0hfQNFm29nhwRopRNkXgID6On9qVzWhMM2dTFHcS5pHqstrsbfsku0SN19J8axH9rLYp A5ghzss23VnJ+t3Gows66xnpIo2Cac4Y7iKuKHaBjCPGMg8kCGpL+LVHeG/f8O+FCdPA 4Z0P/3/UaeF8O7V3sEcirQ7NO7tG0uTA7/wIpdiVHqPrA/3u0PfFRWZ0XhIcALgb3CIS VCLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rnkQspCJpuT6eB7cLz2mP2emKwGtr4E6Dg+jVeePOPE=; b=qU6abkF98TV3t8YUetulu7rQXhmqkRN8cggL1B5x3PjRB0Ns1QAtY+0yRBVCjAjMlv 31BevnYcbn7Uzm/aYOtu6Lv2sEpgONwcedkoiTMyHYxaZh3aYf0HQ3kmUT1/umPETy+P CzkLrKPPVlcT1d/tnknXlPA3OkniFpCESAFH8F+9gTKTUB9sWUWGnsI0z6IDs9UQoNAX ntlAdeizqLXSFIaSLuS3NabMxL+BRMZcbX1gECWapQGxNYjmswweDK1SxW3bKlqU5m3y vMdJLX8E1X0QaDQmgci3SOKBOPHO2pMLaenY0pAGJ+iMJUcYwQ/Z9xocbnl3lFa8Fa7t HqVQ== X-Gm-Message-State: ALQs6tAxTFufiYAzR2aVj/ILjZv73b9KhNP9gdgEOzvtma9AQEEWuxZf W2hox3QwQMP/ANhiDMQXnfrvBJAS X-Received: by 10.80.253.18 with SMTP id i18mr16108013eds.158.1524575657610; Tue, 24 Apr 2018 06:14:17 -0700 (PDT) Received: from localhost.localdomain ([91.180.9.177]) by smtp.gmail.com with ESMTPSA id g7sm6155396edf.90.2018.04.24.06.14.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:14:17 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Oded Gabbay , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "David (ChunMing) Zhou" , David Airlie , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org Subject: [PATCH] drm/amdkfd: fix typing in (*hqd_destroy) Date: Tue, 24 Apr 2018 15:14:16 +0200 Message-Id: <20180424131416.1702-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The method (*hqd_destroy) is defined as using an 'uint32_t' as 3rd argument but the the actual implementation of this method and all its calls actually uses an 'enum kfd_preempt_type' for this argument. Fix this by using 'enum kfd_preempt_type' for (*hqd_destroy) too. Signed-off-by: Luc Van Oostenryck --- drivers/gpu/drm/amd/include/kgd_kfd_interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h index 237289a72..2890e8581 100644 --- a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h +++ b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h @@ -298,7 +298,7 @@ struct kfd2kgd_calls { bool (*hqd_is_occupied)(struct kgd_dev *kgd, uint64_t queue_address, uint32_t pipe_id, uint32_t queue_id); - int (*hqd_destroy)(struct kgd_dev *kgd, void *mqd, uint32_t reset_type, + int (*hqd_destroy)(struct kgd_dev *kgd, void *mqd, enum kfd_preempt_type reset_type, unsigned int timeout, uint32_t pipe_id, uint32_t queue_id); -- 2.17.0