From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 6C8284963DB for ; Mon, 7 Sep 2026 13:29:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788787772; cv=none; b=U/4CL+THagCKnoYD9n0c6J010/XDM4OLAmgPgUqi5dHBxhRmzVPGZm5sZdjJKup7d9xlEjf+GxkW5yQMCfXymgwPtREGdJtuqmDuWDDA35NaFPZCj66y/IsbcTJvTOG+2x05KnG+HBZE2CEjs8dd/+zxf0Fu2UG/Wak/4ah3pIw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788787772; c=relaxed/simple; bh=FMk6nmYE8//ZlncdjePunFwhXKADEtkS5BFhT5MPsos=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=baQ/XOamBsd0D6vVPVCitoK8Bn1VF2ZZghYpDcQNkIuaFxl0Fsmfn0ncLP2DafPW/ZjEBBeRVzp3VluVs4Rvaf8adQYoWAJGvyk178RvnwLR0lGqatgA+r0lxVnxR9bCAMqDKbzd1+l9PG4gyalgzSKKW8RY83mEeUD0/bZzsDU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=HWJVKwHI; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HWJVKwHI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788787763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FzL07gJuf7PFvexAZWGO9lr3zsHL6njv/XSwM6aFQXo=; b=HWJVKwHIIX2TGqdYdWpCrHan/tdvqHv9bYmqedLo50JD0UbTArQDd9hd2GNhRU89gQaaz7 kOQqOvbWxoQhLc9T1ATzwI3SCRWai5VPmelUUQtnRO+Epy20wx+SpFGKDaIRaxUQaWy545 0U2EVxoXon05twJfdflYcxfakq+V0L4= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-552-Yr-lGXBKOa-dUpup-ep1ag-1; Mon, 07 Sep 2026 09:29:19 -0400 X-MC-Unique: Yr-lGXBKOa-dUpup-ep1ag-1 X-Mimecast-MFC-AGG-ID: Yr-lGXBKOa-dUpup-ep1ag_1788787757 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0F4941954126; Mon, 7 Sep 2026 13:29:17 +0000 (UTC) Received: from aesteve-thinkpadp1gen8.rmtes.csb (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CB33430001A2; Mon, 7 Sep 2026 13:29:13 +0000 (UTC) From: Albert Esteve Date: Mon, 07 Sep 2026 15:28:58 +0200 Subject: [PATCH 3/3] drm/amd/display: drop INLINE_IFN_KUNIT Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260907-visibility-unification-v1-3-6a962e5b3351@redhat.com> References: <20260907-visibility-unification-v1-0-6a962e5b3351@redhat.com> In-Reply-To: <20260907-visibility-unification-v1-0-6a962e5b3351@redhat.com> To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , David Airlie , Simona Vetter , Jonathan Corbet , Shuah Khan , Randy Dunlap Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Ripard , Albert Esteve X-Developer-Signature: v=1; a=ed25519-sha256; t=1788787740; l=2429; i=aesteve@redhat.com; s=20260827; h=from:subject:message-id; bh=FMk6nmYE8//ZlncdjePunFwhXKADEtkS5BFhT5MPsos=; b=uI+7yjzvElbGaGDTZmc07bb3MZwvXKjag8NkjsgSbHeGBt92E0Wd8XNnt+RuCTSb3/UN6htA/ zABNdSgKNVRC4R7ZZgqsJvQNKFQWsaWZip/xK2zs0J04GKYOEDpibnU X-Developer-Key: i=aesteve@redhat.com; a=ed25519; pk=zI2RBeZgocwYm3AkJW4CtjoJnKoDZrfBl1xe5Ed6h+U= X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 This helper was originally static inline. INLINE_IFN_KUNIT only added inline for KUnit builds, which dropped that hint from production. There is no equivalent in kunit/visibility.h, and tests do not need one: they call the exported symbol from another translation unit. Use an unconditional inline with VISIBLE_IF_KUNIT instead so production stays static inline. kernel-doc already strips inline, so the dedicated xform can go too. Signed-off-by: Albert Esteve --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c | 2 +- drivers/gpu/drm/amd/display/dc/dm_helpers.h | 7 ------- tools/lib/python/kdoc/xforms_lists.py | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c index e3f4ee6e8380..eea7e7dcfa30 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c @@ -173,7 +173,7 @@ void amdgpu_dm_init_color_mod(void) } EXPORT_SYMBOL_IF_KUNIT(amdgpu_dm_init_color_mod); -VISIBLE_IF_KUNIT INLINE_IFN_KUNIT +VISIBLE_IF_KUNIT inline struct fixed31_32 amdgpu_dm_fixpt_from_s3132(__u64 x) { struct fixed31_32 val; diff --git a/drivers/gpu/drm/amd/display/dc/dm_helpers.h b/drivers/gpu/drm/amd/display/dc/dm_helpers.h index 6d7cdab1006f..cabcbc2599e6 100644 --- a/drivers/gpu/drm/amd/display/dc/dm_helpers.h +++ b/drivers/gpu/drm/amd/display/dc/dm_helpers.h @@ -194,13 +194,6 @@ void dm_helpers_mccs_vcp_set( struct dc_link *link, struct dc_sink *sink); -#if IS_ENABLED(CONFIG_DRM_AMD_DC_KUNIT_TEST) -#define INLINE_IFN_KUNIT inline - -#else -#define INLINE_IFN_KUNIT -#endif - bool dm_helpers_submit_i2c_over_aux( struct ddc_service *ddc, uint32_t address, diff --git a/tools/lib/python/kdoc/xforms_lists.py b/tools/lib/python/kdoc/xforms_lists.py index b49b81da74d9..cab4a49e4fc4 100644 --- a/tools/lib/python/kdoc/xforms_lists.py +++ b/tools/lib/python/kdoc/xforms_lists.py @@ -105,7 +105,6 @@ class CTransforms: (CMatch("__attribute_const__"), ""), (CMatch("__attribute__"), ""), (CMatch("VISIBLE_IF_KUNIT"), ""), - (CMatch("INLINE_IFN_KUNIT"), ""), # # HACK: this is similar to process_export() hack. It is meant to -- 2.55.0