Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3918087pxu; Mon, 12 Oct 2020 05:00:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhCV9m/nr+/WrOT8AxeuzcuY4ptznWKjXqY3EXbDhBUpJpeWac97YyorpB+LzOx7Rf4pLk X-Received: by 2002:a50:a452:: with SMTP id v18mr13453524edb.143.1602504034615; Mon, 12 Oct 2020 05:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602504034; cv=none; d=google.com; s=arc-20160816; b=0mOoyxzVzX5dpKEstuXKxPXYj27QzNKAvH4mjQ3sHpOWNZAqGQqK+9HWtgiPUV/+Eo +LnhiJ7jzoiel/Z1tLCqXtObtqqa/nFmW68wyR69wilG1hw+WG9L8JT7wSxU9DATUszg zGiKGiECK9h8xwNFMSpjaDWbcobREdwrCs2lVLA3lKiyJxsxVNVN1hHYZ5A83beUmFhj RemoS0IIo2Bh86eilzm23CuHaXzId3xWL2qL936hyOJ7XdQSFE141hS9LdDwFJc1Av+B BYGH96LH8CQ17jqsHKvn2heBKHWiEXbPwk86BkTu9NAFyq6xmSmH1kizvAjjiZYDYZCi xxOA== 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=zvF+GhkuJoVymUXegMcPr3f6n1QF6QZqJzHt3Boibw8=; b=vKMoKcu7lt0r6saINaNZfPS0uWHKk9WrcfFLwLYLzURbi40bmBUuTAKoEufLvJhi1x wGupN09PO/+6BNA/ijZyslTp7nIDzTWSqaXtxYwEuIA3fF7b2e+4FGqeSRe1CHrHjqqf KSgXbAk7bAWzcAk4cE8J9ssZ8bQq8FVAODt+K6s/rC9eiPGmDkgOxzQYO7Vl8tFS2P34 I7QsYQrRW0Mjyh6XF8BYbM/4HtARtOIGjRyY319V2cDf7hfPzKbqtmNZU5MoWPaNMrUU jrG3heHUUx9wnmNfxoZ6nZpfMOEfrsjQM99NMUDXTBbbEe1cmYYPd7xZkUqUOVrTnpEG YZ5w== 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 n12si6876587eje.169.2020.10.12.05.00.10; Mon, 12 Oct 2020 05:00:34 -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 S2388400AbgJLL5d (ORCPT + 99 others); Mon, 12 Oct 2020 07:57:33 -0400 Received: from mail-m17613.qiye.163.com ([59.111.176.13]:11105 "EHLO mail-m17613.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388248AbgJLL5d (ORCPT ); Mon, 12 Oct 2020 07:57:33 -0400 Received: from ubuntu.localdomain (unknown [157.0.31.124]) by mail-m17613.qiye.163.com (Hmail) with ESMTPA id 33E64482BF1; Mon, 12 Oct 2020 19:57:30 +0800 (CST) From: Bernard Zhao To: Russell King , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Bernard Zhao Subject: [PATCH] gpu/drm/armada: fix unused parameter warning Date: Mon, 12 Oct 2020 04:57:24 -0700 Message-Id: <20201012115724.8980-1-bernard@vivo.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZGkNIT00dHRkYHh1KVkpNS0lOS0hDTktIQ0hVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6M0k6CRw*Ej8ZLzkaFRZRFQw# TgMaCUNVSlVKTUtJTktIQ05LTExIVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlKTkxV S1VISlVKSU9ZV1kIAVlBSUhJTTcG X-HM-Tid: 0a751cac395993bakuws33e64482bf1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Functions armada_drm_crtc_atomic_flush & armada_drm_crtc_atomic_enable 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/armada/armada_crtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c index 38dfaa46d306..fc8b922c3e44 100644 --- a/drivers/gpu/drm/armada/armada_crtc.c +++ b/drivers/gpu/drm/armada/armada_crtc.c @@ -427,7 +427,7 @@ static int armada_drm_crtc_atomic_check(struct drm_crtc *crtc, } static void armada_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 armada_crtc *dcrtc = drm_to_armada_crtc(crtc); @@ -441,7 +441,7 @@ static void armada_drm_crtc_atomic_begin(struct drm_crtc *crtc, } static void armada_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 armada_crtc *dcrtc = drm_to_armada_crtc(crtc); -- 2.28.0