From patchwork Mon Mar 12 09:15:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sravanthi Kollukuduru X-Patchwork-Id: 10275681 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4496B6038F for ; Mon, 12 Mar 2018 09:16:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41F5728BF1 for ; Mon, 12 Mar 2018 09:16:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3683728CC7; Mon, 12 Mar 2018 09:16:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A50B728BF1 for ; Mon, 12 Mar 2018 09:16:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751252AbeCLJQU (ORCPT ); Mon, 12 Mar 2018 05:16:20 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46580 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750811AbeCLJQT (ORCPT ); Mon, 12 Mar 2018 05:16:19 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DD142601D2; Mon, 12 Mar 2018 09:16:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520846178; bh=AQickvgRi0kPSjmNXqoBv5RQt0rRuERZf9jC3haINok=; h=From:To:Cc:Subject:Date:From; b=HYkJo8jHZ952i9kj4RD39PQIv5aj+tujPZKYABG6wt20NBMDb8feQBiizg368H/NC g0qGZUnYbQlzRhkp/I/RIg/yUNI22JqIrTWZDJKYLWgUe8b9u5V8hnPSFe65SkNjPD FQUwQY5ZcxsMdxckD3qyXuEw3xAn3nL8Wct4elbs= Received: from skolluku-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: skolluku@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D2F9E601D2; Mon, 12 Mar 2018 09:16:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520846178; bh=AQickvgRi0kPSjmNXqoBv5RQt0rRuERZf9jC3haINok=; h=From:To:Cc:Subject:Date:From; b=HYkJo8jHZ952i9kj4RD39PQIv5aj+tujPZKYABG6wt20NBMDb8feQBiizg368H/NC g0qGZUnYbQlzRhkp/I/RIg/yUNI22JqIrTWZDJKYLWgUe8b9u5V8hnPSFe65SkNjPD FQUwQY5ZcxsMdxckD3qyXuEw3xAn3nL8Wct4elbs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D2F9E601D2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=skolluku@codeaurora.org From: Sravanthi Kollukuduru To: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Cc: Sravanthi Kollukuduru , robdclark@gmail.com, hoegsberg@chromium.org, seanpaul@chromium.org Subject: [DPU PATCH] drm/msm: fix compilation warnings in display driver Date: Mon, 12 Mar 2018 14:45:58 +0530 Message-Id: <1520846158-16168-1-git-send-email-skolluku@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix the compilation warnings flagged in display driver. Signed-off-by: Sravanthi Kollukuduru --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 3 --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_reg_dma_v1.c | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c index 36a4795..ccf25a3 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c @@ -592,15 +592,12 @@ void dpu_core_perf_crtc_update(struct drm_crtc *crtc, DPU_EVT32(kms->dev, stop_req, clk_rate); - /* Temp change to avoid crash in clk_set_rate API. */ -#ifdef QCOM_DPU_SET_CLK if (dpu_power_clk_set_rate(&priv->phandle, kms->perf.clk_name, clk_rate)) { DPU_ERROR("failed to set %s clock rate %llu\n", kms->perf.clk_name, clk_rate); return; } -#endif kms->perf.core_clk_rate = clk_rate; DPU_DEBUG("update clk rate = %lld HZ\n", clk_rate); diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_reg_dma_v1.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_reg_dma_v1.c index bb45477..e0d46c5 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_reg_dma_v1.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_reg_dma_v1.c @@ -374,7 +374,7 @@ static int validate_dma_cfg(struct dpu_reg_dma_setup_ops_cfg *cfg) } if (cfg->dma_buf->iova & GUARD_BYTES || !cfg->dma_buf->vaddr) { - DRM_ERROR("iova not aligned to %zx iova %x kva %pK", + DRM_ERROR("iova not aligned to %zx iova %llx kva %pK", ADDR_ALIGN, cfg->dma_buf->iova, cfg->dma_buf->vaddr); return -EINVAL; @@ -433,7 +433,7 @@ static int validate_kick_off_v1(struct dpu_reg_dma_kickoff_cfg *cfg) (WRITE_TRIGGER); if (cfg->dma_buf->iova & GUARD_BYTES) { - DRM_ERROR("Address is not aligned to %zx iova %x", ADDR_ALIGN, + DRM_ERROR("Address is not aligned to %zx iova %llx", ADDR_ALIGN, cfg->dma_buf->iova); return -EINVAL; }