From nobody Sat Feb 7 22:21:34 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBC181487F1 for ; Thu, 29 Aug 2024 16:00:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724947202; cv=none; b=Hu3tbSGrx5I5d+bsa6IXp6yzEVzhzHqpZJxrwEvgBZUKl25+OIqnLXgk8KBLU1wJPbvBSfuc+Hh/vq+Ii+Xz3NKuSyrASKQKUHP1d+NZHdOpvB0gPx83kWh0lFVVTfyNo7edmVUwi69ae1gFQi5DBy6SX/Sccy0Sl2xeUlfvZZo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724947202; c=relaxed/simple; bh=ZVhy00hR+PCS3Oja2q7T0ClCf3oyBQZQu1h8s4wBumA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EU01A6VZqTwZPyVN6OEf2iP/1F2Ql6ufYtyCWNfS5UscYK4IvnukiLtmO8HE6yspsgeLvChgj6g3JQ7Fi3BhMIghMDklKdY4OjZ1FT9PlH+f75GafJMLFstYJ1JYR3/3mxkCtLXeyB9fFj+pU2fvyfU5gEUYzMJMIy2RuOGflvo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=GkqbmM/h; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GkqbmM/h" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724947202; x=1756483202; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZVhy00hR+PCS3Oja2q7T0ClCf3oyBQZQu1h8s4wBumA=; b=GkqbmM/hwzgnmteF9FbKhF39TA1Hrca0DZ3IHMlLLR1vzAwjLjohhkh2 pJaHhKSd33YHYTyBmRCpLzazcJuFjVh7owQia1gQzGpFYIjzSuhGS6Rtn f+Xx7MzWFBS35M01fWjOj1kUhwsmqyZAd7EBpC3fFZ7WLwPHk8tP2zOJ7 qTpHrWusVYd7t34KLBA6FNMW6dtJ/4QlCIWJOzwTHTA2nqr5GsnohlE1U BikaoIqK44fjlyrYLjzXOafUCFo9DAZ+iI+/qwBukCdSYm9/NgstTjsO/ zG57R7okYDGMcX7RK3LHpoUCtn0Jui/PxspVJRCSMox4OsE5b7nzD0TYM Q==; X-CSE-ConnectionGUID: lWDHgmuvRuS/9iD1e2OneA== X-CSE-MsgGUID: 7jU4q8e0RJGodkxK0hCoyA== X-IronPort-AV: E=McAfee;i="6700,10204,11179"; a="27313783" X-IronPort-AV: E=Sophos;i="6.10,186,1719903600"; d="scan'208";a="27313783" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2024 09:00:01 -0700 X-CSE-ConnectionGUID: TPDw9tJfSQ+wBECcZqVJLQ== X-CSE-MsgGUID: V5v7svFgR5GHF5c6OuY6DQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,186,1719903600"; d="scan'208";a="63455322" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa010.jf.intel.com with ESMTP; 29 Aug 2024 08:59:58 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id B4F35143; Thu, 29 Aug 2024 18:59:56 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter Subject: [PATCH v1 1/2] drm/i915/fence: Mark debug_fence_init_onstack() with __maybe_unused Date: Thu, 29 Aug 2024 18:58:37 +0300 Message-ID: <20240829155950.1141978-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac In-Reply-To: <20240829155950.1141978-1-andriy.shevchenko@linux.intel.com> References: <20240829155950.1141978-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When debug_fence_init_onstack() unused, it prevents kernel builds with `make W=3D1` and CONFIG_WERROR=3Dy: .../i915_sw_fence.c:97:20: error: unused function 'debug_fence_init_onstack= ' [-Werror,-Wunused-function] 97 | static inline void debug_fence_init_onstack(struct i915_sw_fence *f= ence) | ^~~~~~~~~~~~~~~~~~~~~~~~ Fix this by marking debug_fence_init_onstack() with __maybe_unused. Fixes: 214707fc2ce0 ("drm/i915/selftests: Wrap a timer into a i915_sw_fence= ") Signed-off-by: Andy Shevchenko Reviewed-by: Jani Nikula --- drivers/gpu/drm/i915/i915_sw_fence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_sw_fence.c b/drivers/gpu/drm/i915/i9= 15_sw_fence.c index 8a9aad523eec..d4020ff3549a 100644 --- a/drivers/gpu/drm/i915/i915_sw_fence.c +++ b/drivers/gpu/drm/i915/i915_sw_fence.c @@ -51,7 +51,7 @@ static inline void debug_fence_init(struct i915_sw_fence = *fence) debug_object_init(fence, &i915_sw_fence_debug_descr); } =20 -static inline void debug_fence_init_onstack(struct i915_sw_fence *fence) +static inline __maybe_unused void debug_fence_init_onstack(struct i915_sw_= fence *fence) { debug_object_init_on_stack(fence, &i915_sw_fence_debug_descr); } @@ -94,7 +94,7 @@ static inline void debug_fence_init(struct i915_sw_fence = *fence) { } =20 -static inline void debug_fence_init_onstack(struct i915_sw_fence *fence) +static inline __maybe_unused void debug_fence_init_onstack(struct i915_sw_= fence *fence) { } =20 --=20 2.43.0.rc1.1336.g36b5255a03ac From nobody Sat Feb 7 22:21:34 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C64EE1B3F08 for ; Thu, 29 Aug 2024 16:00:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724947204; cv=none; b=mKjig4W4c80JKfEKF5dKQD82BcJzvoijQwxCPNsl7kbs2lKGB937pJyq8c8XoyqFbXLZzO8nA0vsKwwMpOHtNZbRBvjrW0aVZOK7dVgup/NJDu70UatrCmM4zabsyqnBamZydRBz6Ysl2ZndmbBOxlVjLgdTD4uAuiDXAD+epG4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724947204; c=relaxed/simple; bh=kIbeBcvklRZnAUyEaogr4BsfGsKIwHXOjt9dIl1120s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=u83cv/Tqw/piPJXIaKId/YZZgFg+O2d7TzztOAmAwRjF03naYN2bthuEYcsHMSAc7ZnYhgQUhPcV1TXm7zVlq7rsD7AD84Vzt3Ple2CqLTYNgUlvxYTNPyrSS1M7hdkw/UqbvoiFXAv4U9MJAHTEtW3QJZKbifP11B5CH5CnMqs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=WZPXYftB; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WZPXYftB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724947203; x=1756483203; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kIbeBcvklRZnAUyEaogr4BsfGsKIwHXOjt9dIl1120s=; b=WZPXYftB6bom/OthIisRPGfZKc4Zjy4vhQ47M8CizxaD12SdHj+nKGGN S6I3INAiLfvgC1lvIKmye1ZFunzophwL5esFUNWl8mUJIOzad9XLuYbgz Amjl0vcWq4KxKwRi7Q9EGFtOWoyDE603vy5zKOTJzY7XlONZQD9+/J04+ bLFgd25tzR/NgpJUsJyI2pmAB2UC/We9IGRNzrZAI4veygZdoemAG3i1w 0zIB13wcWQr3WqSK0auh8vfz/DZc02s9CDaXZKry7oTPskLLJFRi33zCG DNKiDwvnexGK4x26jBo8CSeAWN0CLR5t/rlB/v4MsiMSlG4/eQNT4WnqF Q==; X-CSE-ConnectionGUID: 1N9WWxXEQ+OMLnKYG1nYDw== X-CSE-MsgGUID: 6AVRqjSrRSmGIsfsWys/TA== X-IronPort-AV: E=McAfee;i="6700,10204,11179"; a="27313786" X-IronPort-AV: E=Sophos;i="6.10,186,1719903600"; d="scan'208";a="27313786" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2024 09:00:01 -0700 X-CSE-ConnectionGUID: U1FTIqQYQ8ujxx5ZZCRvEA== X-CSE-MsgGUID: YliLZ7OsQvaylZ8R7B+OmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,186,1719903600"; d="scan'208";a="63455324" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa010.jf.intel.com with ESMTP; 29 Aug 2024 08:59:58 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id C22D8956; Thu, 29 Aug 2024 18:59:56 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter Subject: [PATCH v1 2/2] drm/i915/fence: Mark debug_fence_free() with __maybe_unused Date: Thu, 29 Aug 2024 18:58:38 +0300 Message-ID: <20240829155950.1141978-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac In-Reply-To: <20240829155950.1141978-1-andriy.shevchenko@linux.intel.com> References: <20240829155950.1141978-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When debug_fence_free() unused, it prevents kernel builds with `make W=3D1` and CONFIG_WERROR=3Dy: .../i915_sw_fence.c:118:20: error: unused function 'debug_fence_free' [-Wer= ror,-Wunused-function] 118 | static inline void debug_fence_free(struct i915_sw_fence *fence) | ^~~~~~~~~~~~~~~~ Fix this by marking debug_fence_free() with __maybe_unused. Fixes: fc1584059d6c ("drm/i915: Integrate i915_sw_fence with debugobjects") Signed-off-by: Andy Shevchenko Reviewed-by: Jani Nikula --- drivers/gpu/drm/i915/i915_sw_fence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_sw_fence.c b/drivers/gpu/drm/i915/i9= 15_sw_fence.c index d4020ff3549a..1d4cc91c0e40 100644 --- a/drivers/gpu/drm/i915/i915_sw_fence.c +++ b/drivers/gpu/drm/i915/i915_sw_fence.c @@ -77,7 +77,7 @@ static inline void debug_fence_destroy(struct i915_sw_fen= ce *fence) debug_object_destroy(fence, &i915_sw_fence_debug_descr); } =20 -static inline void debug_fence_free(struct i915_sw_fence *fence) +static inline __maybe_unused void debug_fence_free(struct i915_sw_fence *f= ence) { debug_object_free(fence, &i915_sw_fence_debug_descr); smp_wmb(); /* flush the change in state before reallocation */ @@ -115,7 +115,7 @@ static inline void debug_fence_destroy(struct i915_sw_f= ence *fence) { } =20 -static inline void debug_fence_free(struct i915_sw_fence *fence) +static inline __maybe_unused void debug_fence_free(struct i915_sw_fence *f= ence) { } =20 --=20 2.43.0.rc1.1336.g36b5255a03ac