Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3917184pxu; Mon, 12 Oct 2020 04:58:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxezIWCukHLL1A83JAy+gEvtGwQPvEqkamf6i40eif33+4r9S1hQqEoNraB5cqlw81ZtGKc X-Received: by 2002:a17:906:af75:: with SMTP id os21mr27012052ejb.28.1602503927686; Mon, 12 Oct 2020 04:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602503927; cv=none; d=google.com; s=arc-20160816; b=vr8CQxm/NwkGj5ox4LFRZabEXWSDRqZ+qRiamM3kwc8hXmgPTVUjkhsVaPBnwTO5rI 0/0X/6p0720yH0DVGEiAYZsNEh6elUTpTnZrpjG9enXU5D1KUFCTc+aDnQE05DDx9r8D hWxiPg8Ui2GCJhpiYmjk9U9es/p9IchQN81kphtAdJxszSVcVrJTqnvUG5PTy3zKjLd3 KYq3TzuYy/SICrnacFdmUeTu26Q6wCyTiAmPk3WYiVRL0GBwatduhzh9r988VYJAdp+5 g3oSsX8UbaNJ+MW0WQXhndJXtMwgfZO5ep48wXcrKuHrbTHBT4PVR2Gg/34iLDnPEMb8 qLSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=EirmWX47YP2FL7enSfbl2hBV/801nFS0dhBZ8sWyRvA=; b=G66aFP0gk6mJ0tqA0c1dNzANsZFpA14c1nsDAuKjllmNr3cXU/AhQYljlJlbHBx5E7 5r0i2Tl7q4MraycaZrUT8Wo378mJ7rSRy9LcTPsTzPDOSE2sFZuVUjU4hgZyCj1ixQQk s/61XVURzMp/qkYQcv5zIEZhns9a3/aBM1jglwy7kw7lDicu6aUXMEUdMVQ3uv6/3Vs3 SMDHCe++hsHzZ09KcOvmFu2YZhcvSGb4Vwx8I+aqnJTqMNVhqN3ZppZiQ6hd6/x5xLsL q3uS/zZKI5I5FTcL1a8WkoeyZOuo5G8ONC9vkFDCfP7D5NzIl0k9QSFyruvIPllBnUAD UDgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt15si1126483ejb.170.2020.10.12.04.58.24; Mon, 12 Oct 2020 04:58:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388343AbgJLL5J (ORCPT + 99 others); Mon, 12 Oct 2020 07:57:09 -0400 Received: from mail-m17613.qiye.163.com ([59.111.176.13]:10153 "EHLO mail-m17613.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388255AbgJLL5J (ORCPT ); Mon, 12 Oct 2020 07:57:09 -0400 Received: from ubuntu.localdomain (unknown [157.0.31.124]) by mail-m17613.qiye.163.com (Hmail) with ESMTPA id D2857482BD2; Mon, 12 Oct 2020 19:57:05 +0800 (CST) From: Bernard Zhao To: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Bernard Zhao Subject: [PATCH] gpu/drm/mediatek: fix unused parameter warning Date: Mon, 12 Oct 2020 04:56:59 -0700 Message-Id: <20201012115700.8925-1-bernard@vivo.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZSkpLTE5JTElCTUMaVkpNS0lOS0hDSU1KSk1VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MzI6NRw4HD8eQjk3IxccFQ1M Tj4aC1FVSlVKTUtJTktIQ0lNTk9OVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlKTkxV S1VISlVKSU9ZV1kIAVlBSEtMTDcG X-HM-Tid: 0a751cabda8693bakuwsd2857482bd2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Functions mtk_drm_crtc_atomic_flush & mtk_drm_crtc_atomic_enable & mtk_drm_crtc_atomic_disable don`t use the second parameter. So we may get warning like : warning: unused parameter '***' [-Wunused-parameter]. This change is to fix the compile warning with -Wunused-parameter. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_crtc.c b/drivers/gpu/drm/mediatek/mtk_drm_crtc.c index 4d29568be3f5..6e55ec0e80bb 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_crtc.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_crtc.c @@ -542,7 +542,7 @@ static void mtk_drm_crtc_atomic_enable(struct drm_crtc *crtc, } static void mtk_drm_crtc_atomic_disable(struct drm_crtc *crtc, - struct drm_crtc_state *old_state) + struct drm_crtc_state __attribute__((unused)) *old_state) { struct mtk_drm_crtc *mtk_crtc = to_mtk_crtc(crtc); struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; @@ -575,7 +575,7 @@ static void mtk_drm_crtc_atomic_disable(struct drm_crtc *crtc, } static void mtk_drm_crtc_atomic_begin(struct drm_crtc *crtc, - struct drm_crtc_state *old_crtc_state) + struct drm_crtc_state __attribute__((unused)) *old_crtc_state) { struct mtk_crtc_state *state = to_mtk_crtc_state(crtc->state); struct mtk_drm_crtc *mtk_crtc = to_mtk_crtc(crtc); @@ -592,7 +592,7 @@ static void mtk_drm_crtc_atomic_begin(struct drm_crtc *crtc, } static void mtk_drm_crtc_atomic_flush(struct drm_crtc *crtc, - struct drm_crtc_state *old_crtc_state) + struct drm_crtc_state __attribute__((unused)) *old_crtc_state) { struct mtk_drm_crtc *mtk_crtc = to_mtk_crtc(crtc); int i; -- 2.28.0