Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2951699imu; Mon, 19 Nov 2018 08:31:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/WvOcsuDqd+uq/Dt8nUrGxTIIS8vrQDD+vEJV7h+5HpGmMmB7ANnX8PMxLuS1dAIH8MkU/k X-Received: by 2002:a17:902:3281:: with SMTP id z1mr182754plb.296.1542645118839; Mon, 19 Nov 2018 08:31:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542645118; cv=none; d=google.com; s=arc-20160816; b=Jsa3QAS5350wEJLVQMqQnu1Wwlbi8a68uDC6HMxCT4L+5MpBCSs3a0WOITKSGDHBol ylj/Ogawvj5TfuKu1LJo0SxJ0xqghbXKRe53s6PfBd9BeIju/G3oyEurBCI2yNLjUW0L 4olGKc5BvoWxIGGaJMzLLvAKmnFBxAufWnfc3+EB1ODde+coalIYKD+aoyfgZCSmAUzc YjYnsgaTLeORQnJwTwPBzV6nbYh0l3airMFkaHsUghE4mwBxp4J+two5EvySP0ZlcfST AncYN6V3kRTSuIpVZ/cFXw9sDaubSR9QuveiV9BVKeaXLOSLYEK4eA+QszR3PKHXf1q6 eNgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UjFwSG7L4RwAQHxIcvKcTnhZYjwBgr0zjz9l/1KAUco=; b=a3GACIWQ/9vAzqFltIJG8H4vx28YkjWvJ4NrU4VeioyLfzEzcKYsiuAiSXlyg7PwC6 axcbEJcJWVZUH96DjPiZ9rmqiDDqeqVt/lGJFRixL9QlNjBVvDnKBQE1ZaJoxtoDak5a qWLZRE+2Mx7qUivo78QFXOknLJPYb2K02NJ98N/X7RDi5EaJhXxUPkOOOv+Ay0tJqMom MIfkfk8FQGgjWzwLQPb9bZVRWTOUpQO6rMVGiqzkYDvZvkUt8UUA4BajnVbc7ObUyj/b hu9FaZYVEVGwj8rJ2SJ3mS1z1E7p5beT+VcnEya3ezc7NPUKhdkoAcaMzRXIfYgm1Vf+ P7Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0CDhOHQR; 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 i66-v6si43822939pfc.173.2018.11.19.08.31.42; Mon, 19 Nov 2018 08:31:58 -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=@kernel.org header.s=default header.b=0CDhOHQR; 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 S1730176AbeKTCyv (ORCPT + 99 others); Mon, 19 Nov 2018 21:54:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:52236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730018AbeKTCyv (ORCPT ); Mon, 19 Nov 2018 21:54:51 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F00CD20870; Mon, 19 Nov 2018 16:30:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645044; bh=gx+lCOMQzcYnK8MM7gPw6GEdOkCfn8Git+1hggTzjI4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0CDhOHQR1obE2cAKyw0i41MEYhkYIJWfQVaoIOeWl49AfpHSrbxmrs3aO5k4OGN4U iBOU+mmu4bJ1OeoYlyoyMYewFUVGBUwcwDYbZiQTHt2vSB60SqjH6zY4cXHFkw6Zow /MDAPEcSfpt+7yRZ1FycpdnHg1PTslXSyogVC8KU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anders Roxell , Jordan Crouse , Rob Clark , Sasha Levin Subject: [PATCH 4.19 015/205] drm/msm/gpu: fix parameters in function msm_gpu_crashstate_capture Date: Mon, 19 Nov 2018 17:25:22 +0100 Message-Id: <20181119162619.928821741@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Anders Roxell [ Upstream commit 6969019f65b43afb6da6a26f1d9e55bbdfeebcd5 ] When CONFIG_DEV_COREDUMP isn't defined msm_gpu_crashstate_capture doesn't pass the correct parameters. drivers/gpu/drm/msm/msm_gpu.c: In function ‘recover_worker’: drivers/gpu/drm/msm/msm_gpu.c:479:34: error: passing argument 2 of ‘msm_gpu_crashstate_capture’ from incompatible pointer type [-Werror=incompatible-pointer-types] msm_gpu_crashstate_capture(gpu, submit, comm, cmd); ^~~~~~ drivers/gpu/drm/msm/msm_gpu.c:388:13: note: expected ‘char *’ but argument is of type ‘struct msm_gem_submit *’ static void msm_gpu_crashstate_capture(struct msm_gpu *gpu, char *comm, ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/msm/msm_gpu.c:479:2: error: too many arguments to function ‘msm_gpu_crashstate_capture’ msm_gpu_crashstate_capture(gpu, submit, comm, cmd); ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/msm/msm_gpu.c:388:13: note: declared here static void msm_gpu_crashstate_capture(struct msm_gpu *gpu, char *comm, In current code the function msm_gpu_crashstate_capture parameters. Fixes: cdb95931dea3 ("drm/msm/gpu: Add the buffer objects from the submit to the crash dump") Signed-off-by: Anders Roxell Reviewed-By: Jordan Crouse Signed-off-by: Rob Clark Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/msm/msm_gpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/msm/msm_gpu.c +++ b/drivers/gpu/drm/msm/msm_gpu.c @@ -367,8 +367,8 @@ static void msm_gpu_crashstate_capture(s msm_gpu_devcoredump_read, msm_gpu_devcoredump_free); } #else -static void msm_gpu_crashstate_capture(struct msm_gpu *gpu, char *comm, - char *cmd) +static void msm_gpu_crashstate_capture(struct msm_gpu *gpu, + struct msm_gem_submit *submit, char *comm, char *cmd) { } #endif