From patchwork Tue Sep 10 10:03:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 13798253 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8D1F0ECE582 for ; Tue, 10 Sep 2024 10:04:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1D16410E746; Tue, 10 Sep 2024 10:04:30 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="CGmMECB5"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id A14D910E746; Tue, 10 Sep 2024 10:04:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1725962669; x=1757498669; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WKqIK/ZmFsJXPRHNyOF84G9TKFW1bzTau2Aa5vuIsSE=; b=CGmMECB5J/1WOLblz9iyKicIU59xBStrkDJD6xBVwQyxVKQY65ttd1lQ TfwIHC0wFIOG16ssKqYPmnfmJznkBRH7rNP1NyUERPc6/oQh3Mhxrgq+5 QnPjxhAozZGwzNnBrGBUnqgPi+8fQH6GCcamBmdnhYbU4tYnLDfA5aiYo 6Ez0hjTbn6n5rJbln5hqL4V1Qw3Q+XJpGZHUfGw9O+mwh8pxwDXlF9QWF QhuBPruBcGrFtk+RXALgoyU/AZbx4DcPbCK18JVy/WLeP5h+HiTv46vxe KPZDKCiI01UCfTZGecJqXbQVmZJ3VzYjGDkkUS9NxhisJY6ZALsJPqvkC g==; X-CSE-ConnectionGUID: saMqa4kzSf+AM/d9phydlg== X-CSE-MsgGUID: 15grZCipSuuZ7YkwGzKlqg== X-IronPort-AV: E=McAfee;i="6700,10204,11190"; a="50112853" X-IronPort-AV: E=Sophos;i="6.10,216,1719903600"; d="scan'208";a="50112853" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2024 03:04:29 -0700 X-CSE-ConnectionGUID: jj7kEEvrRgCFIGl1kkE12g== X-CSE-MsgGUID: K8yj2zkQR02nFABJei6yng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,216,1719903600"; d="scan'208";a="71762389" Received: from hrotuna-mobl2.ger.corp.intel.com (HELO localhost) ([10.245.246.43]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2024 03:04:26 -0700 From: Jani Nikula To: dri-devel@lists.freedesktop.org Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, jani.nikula@intel.com, Nathan Chancellor , Neil Armstrong , linux-amlogic@lists.infradead.org Subject: [PATCH 6/8] drm/meson: dw-hdmi: annotate dw_hdmi_dwc_write_bits() with __maybe_unused Date: Tue, 10 Sep 2024 13:03:42 +0300 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Building with clang and and W=1 leads to warning about unused dw_hdmi_dwc_write_bits(). Fix by annotating it with __maybe_unused. See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static inline functions for W=1 build"). Signed-off-by: Jani Nikula --- Cc: Neil Armstrong Cc: linux-amlogic@lists.infradead.org Cc: Nathan Chancellor --- drivers/gpu/drm/meson/meson_dw_hdmi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/meson/meson_dw_hdmi.c b/drivers/gpu/drm/meson/meson_dw_hdmi.c index 5565f7777529..8d99d70a36e3 100644 --- a/drivers/gpu/drm/meson/meson_dw_hdmi.c +++ b/drivers/gpu/drm/meson/meson_dw_hdmi.c @@ -273,10 +273,10 @@ static inline void dw_hdmi_g12a_dwc_write(struct meson_dw_hdmi *dw_hdmi, } /* Helper to change specific bits in controller registers */ -static inline void dw_hdmi_dwc_write_bits(struct meson_dw_hdmi *dw_hdmi, - unsigned int addr, - unsigned int mask, - unsigned int val) +static inline __maybe_unused void dw_hdmi_dwc_write_bits(struct meson_dw_hdmi *dw_hdmi, + unsigned int addr, + unsigned int mask, + unsigned int val) { unsigned int data = dw_hdmi->data->dwc_read(dw_hdmi, addr);