From patchwork Sat Oct 2 18:31:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 515126 Delivered-To: patch@linaro.org Received: by 2002:a02:606e:0:0:0:0:0 with SMTP id d46csp1919723jaf; Sat, 2 Oct 2021 11:31:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKVymvbb1WrShnL2eRjkEcy/+WthYB42a4zTOGUn7Kj77VwfV2HjI5OGzTwchKuopUDNHe X-Received: by 2002:a65:4007:: with SMTP id f7mr3767044pgp.251.1633199487772; Sat, 02 Oct 2021 11:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633199487; cv=none; d=google.com; s=arc-20160816; b=ZukUNS+5JQFOxb8/EiJZ0rWxm+bjXRX7fP3QVkj4fccvbGlqcM3Un0yvAeUPaedgFl rf8MRgjhQhBX+qfV2ElYqxGrYWoplD0wmrs+W90aZbnBe927VXacWjQbAdwooL4R0a+b 9XP/Bjp7eNueor6S7Hw5H2eBijGSw9Eip88ml7NGDgp74rjyWiBnmKJhWB1FpOGcC/SD H1kjN1hvBaiDoNJfEFmFeaN9bXfqSybZsIIh46s0e0I8Sn3CER716uq9uebJ3dxbxOFc o6bogt+Igl4H/MKaPM+cLrvVZjEWKlPVq0YYOixrESlkrWYrALyxhihrsWhItD7MAz+5 8BPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :delivered-to; bh=0TOsxY2C2gcID0yo/4ltic8viK9R7xT9wFfMMcLu9ro=; b=Y28rgBAuONBOJGRrpuOPMiJ/6AP7Iw1xjAyMcUXP4w/jYb+UgPK3VIytVlMgEXIwJQ 9v0leiXCk8sieQt/QdqLnDJbbRdWQtE5fqYHeVVjqELPWaBrrKcmm4nfsf+M2sblnAUs anGE4HPuJljPh30bK13c5tzBv6l+aqwACj/DBhnfHQ0RiF8NP7dPEqxY1iCX+Kk9G/oF wqexsuHP/YH4xDUj+ywLGO8JUi5zTdtsEsWzY8+6O9CRTX2wsn5TakVag8eQ0dhR6MSp HJ8jOZ9GCMkMesC7GjqPJ+Ca/sDUkjSiTRKseFDnYFrF7qenKYofQ+ww28/NerMqYLO+ 9tMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YOZy7cFD; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id z2si14213249pjf.141.2021.10.02.11.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Oct 2021 11:31:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YOZy7cFD; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2BDCB6E842; Sat, 2 Oct 2021 18:31:24 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by gabe.freedesktop.org (Postfix) with ESMTPS id A37576E5AB for ; Sat, 2 Oct 2021 18:31:21 +0000 (UTC) Received: by mail-lf1-x135.google.com with SMTP id y23so13217757lfb.0 for ; Sat, 02 Oct 2021 11:31:21 -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=0TOsxY2C2gcID0yo/4ltic8viK9R7xT9wFfMMcLu9ro=; b=YOZy7cFDGr/Q/xTYZPKmmixJVhBWywFG98Onlmyb/fatkVb6thgrG7xrC/G6DTr4lE 7RAQRmQIajpd14yBwouwaEq5K9Y0tX61rbBLEW+VSBtJfDF6Rr+a6JDdBmiqrq0yUHJc iuJU1vwngQ6iSW4FS2uYv9yHorF460tj3v2HQW/dgJTnfBS36pKNsxsxUl26Eh1IE07T 3/fKkiYZ7ml/AR0HAEBsfvQdKdMMDBjZjs8KTzJTsSnLIXA7+O8YZwbA//t/cdMYc0ZK 22mY2T+uE3Wu4jZRz4Cr70IzcodFnbEFsTHRthkktNHmqDQOIy5Y0rh8PJtalS7fmlHe vCDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0TOsxY2C2gcID0yo/4ltic8viK9R7xT9wFfMMcLu9ro=; b=5S6RQTDozSjB8g44ii4ry8eQANWdZY0bwTqjZn72aD2dvVjCFsBIOJDwFaeJIr8nkM FeYtqppri2y+kFqP80Jr3RHGbFS9/f1waZEp/A6WxkWmdmOL12/VgVQOEe9CgzZeEmax 1SUc29ouSaFRKy7JlOilu7hQER4ltME7yNztIfLMBao6+mhWMOnnUCc+D8kw/5mDM1sh HPpWVB4N8HlOQVVzqlg7Feq5F3tPV1+TeY8qPtdhCUTGGuQxecqiPXkbQm2ZFl4YIeom wtslynhAyxDdtK+tA9vFsQAR0qZgtfweJwtJ7XjUpMvBFZz9iESBQoPus1CDD2ls9vmP YJDg== X-Gm-Message-State: AOAM531byVvr8enlb2vrCpxOKfE90Pnvurbrt3Ymqn2TxPMb9YPbTTQF 7k7e4heHObSxmaEcYX17aB6qQ6RY4DWcRQ== X-Received: by 2002:a05:6512:3082:: with SMTP id z2mr4916664lfd.657.1633199479933; Sat, 02 Oct 2021 11:31:19 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id bd7sm1020419ljb.20.2021.10.02.11.31.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Oct 2021 11:31:19 -0700 (PDT) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Cc: Jonathan Marek , Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH] drm/msm/a6xx: correct cx_debugbus_read arguments Date: Sat, 2 Oct 2021 21:31:18 +0300 Message-Id: <20211002183118.748841-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" First argument of cx_debugbus_read() should be 'void __iomem *' rather than 'void * __iomem' to make sparse happy. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.33.0 diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c index e8f65cd8eca6..7501849ed15d 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c @@ -180,7 +180,7 @@ static int debugbus_read(struct msm_gpu *gpu, u32 block, u32 offset, msm_readl((ptr) + ((offset) << 2)) /* read a value from the CX debug bus */ -static int cx_debugbus_read(void *__iomem cxdbg, u32 block, u32 offset, +static int cx_debugbus_read(void __iomem *cxdbg, u32 block, u32 offset, u32 *data) { u32 reg = A6XX_CX_DBGC_CFG_DBGBUS_SEL_A_PING_INDEX(offset) |