Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp58005imm; Tue, 31 Jul 2018 13:47:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcw7dNK0aOcx+XhfoSbCXWr/ViGH9uWPBtrxjvNR2DF5/YqS5WNtH6L5JbXogj6FDhHfZU4 X-Received: by 2002:a17:902:2e01:: with SMTP id q1-v6mr6156326plb.40.1533070034793; Tue, 31 Jul 2018 13:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533070034; cv=none; d=google.com; s=arc-20160816; b=ZAWnh9fABrzxj5aYfkCM/MMI/u4bHR/XHtGJYL7PakZRAv2HY4ZHJW+4fL5gvH90u9 H5tBMdSOG4uY1zoxFLZshSvdxmGaYjZyzKXyXBwhelKpBYOizgEHO+NLEVQJsXcf+x6E +lHAH5xWDfYk75TL3E+m/xGnm03YFo9X6PTN5m8UDZALC4GBmbaqfmdaaM6JdPG6Tppk mCFQo7QZmxXEL46lc0GGMFW0I7Yzc/hCdJhDu/lEPGMmhT8Hwo99q6a5T2suh9pvVZWM 1HEgUuCmnQZt/ReMQ489FcRsHYxMynKsPTQMh/fq0y3WpiUgBDlXOIBLYE5rT43OdXv6 5uSw== 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 :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=uf6qvgC1dItUoa0O5Z6dbVcS0HKi/Z36dkHr+OTOdmY=; b=0cwQpUZRDwYIphllGsk1GxBc6OfNBYWysZTOFJkFzLbfp3G9Tow82Nb6xSeTYbhv03 YtS2z3XhrJ2biuUe1G3c5xzb0iJgPf0DTixBV6zsdCn7+68FYzWzOo/1cmFuNzUjffd3 ScTYN19y+WZTjpXnFy5TgOu1J25iUDAoh5nAFnHmXY5bE6EiqKwjaukZ3mSbZS9/aSEb C0upzz2jlPr9psE7JH3/C4Mrdl0sd2MUaS3eeVnBSpYiR8HJZy0ZpfbDAMGkeHCypC0D ++PJCrepZdm3hW23Cf/MhJkrxv3tZr7MuUg3djcyxTOp6OTjjuZ6xw1uRtyS4tvYxM6M xmqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RcoVTaab; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w133-v6si16437817pfd.313.2018.07.31.13.46.54; Tue, 31 Jul 2018 13:47:14 -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=@linaro.org header.s=google header.b=RcoVTaab; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731911AbeGaW1s (ORCPT + 99 others); Tue, 31 Jul 2018 18:27:48 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:42791 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726596AbeGaW1q (ORCPT ); Tue, 31 Jul 2018 18:27:46 -0400 Received: by mail-lf1-f67.google.com with SMTP id u202-v6so11721692lff.9 for ; Tue, 31 Jul 2018 13:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uf6qvgC1dItUoa0O5Z6dbVcS0HKi/Z36dkHr+OTOdmY=; b=RcoVTaab9hjWPX0XqdqNtVJA8oiED5uQVsvtbqpzOsfaTTjPjCZxBenveJGYKei4l0 u0wg/d/jJKIoHM6FUsH773SweUSX+nQx4oDLaBwKD3JY5vUuqFOUVN7v8LW1J6cJ90V6 YbKi5tzH25sLUFWxlVBLJm6R5T2l0dvtaBaew= 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:mime-version :content-transfer-encoding; bh=uf6qvgC1dItUoa0O5Z6dbVcS0HKi/Z36dkHr+OTOdmY=; b=gD6V3h3g0RXixDoV3vwAolTHmO23fCLBIKLxHUItVC6xQ4F5zPDKkXKPZjMZz0qMBH 8M++nlwU9GvurFwSp2f8cPijnHzbC0ya73upxJVRBWWuk8v4EHfYubththsA2EfQaT7h +57cjHjcQ1dludoovN1pwBcrQNdoMIFvfAI9t4M4ylCNApbQ4wf03YYI52vp+iSDD1eB v0IYU287JGod167ivMFpsLaGMNPuPv2bdPpIfQsg59W371K2zVIpy2/CFq+8vyU1knhK u9H2DizoiHLwJ0TpD6ptfBiZAVZkffHHH78kWH/YqrXjSA1CXeE3RHWoWShPKtfNMrdv TNLA== X-Gm-Message-State: AOUpUlH5J/mjeGPcwBjBNvMyZVELazqrNCA10eaqgxvlHalD2LTyaPxH OA9aqY414li9zw75SHNGoePG0Q== X-Received: by 2002:a19:518a:: with SMTP id g10-v6mr13642625lfl.78.1533069937219; Tue, 31 Jul 2018 13:45:37 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.bbcust.telenor.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id m129-v6sm2081288lfe.50.2018.07.31.13.45.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Jul 2018 13:45:36 -0700 (PDT) From: Anders Roxell To: robdclark@gmail.com, airlied@linux.ie, jcrouse@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] drm/msm/gpu: fix parameters in function msm_gpu_crashstate_capture Date: Tue, 31 Jul 2018 22:45:32 +0200 Message-Id: <20180731204532.4808-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.18.0 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 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 --- drivers/gpu/drm/msm/msm_gpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index f388944c93e2..713a92b516ba 100644 --- a/drivers/gpu/drm/msm/msm_gpu.c +++ b/drivers/gpu/drm/msm/msm_gpu.c @@ -385,8 +385,8 @@ static void msm_gpu_crashstate_capture(struct msm_gpu *gpu, 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 -- 2.18.0