Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2979395lqo; Tue, 21 May 2024 03:14:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXosmncj4BsyVhJRsMf+hM2DIkiBl1t0FEs4UciTXSrUpgPqbPExLkpk2ewAsOF8mwDDeqwOCubS5R+FY4POpIldBSyG5+hnxjwbxw+TA== X-Google-Smtp-Source: AGHT+IFgzrxazbjlBlNn19W0V3QKVG070aab8oDb6iuyf0TTI7IQ3rSGdyU2n6l3RWZzAcznJKt7 X-Received: by 2002:a05:6102:c86:b0:47e:f116:4535 with SMTP id ada2fe7eead31-48077dca716mr32411984137.8.1716286478692; Tue, 21 May 2024 03:14:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716286478; cv=pass; d=google.com; s=arc-20160816; b=EY0Y+WMGi84tr2SgEEsHGzQhcdvyOOOz8hZviV8S4odson5jMumRxlkto4Hx6wc9P/ +6DpCq0u+307uZCHIZXrxEF14N6uAsbRwbhZlInZnUiGOH7vBG+d9WomsYO7moLTCKvX IgiylWTPl/Z5c54vw7Bnr8q5fuQBWJgYb3LCe/vg6sL/AVQqmUVK93fag8Jtnn3dD+Na D6IEXZRJoDEQeQvrTdnwFB7ULPcY02lYlxxU7YqPvoFOgQTjKud3j+h5ew71fiZ3yaue vppNMnp4BLXBN1SudO8B+vhy5UDyIdv5LXYd8pIGUKyMm4eDwL/cElqBsic1SAY0iCtS loSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=tNE/HHSCe2JysQAzllaDSdomKUWB1rG5bXsEcTjjO8E=; fh=cXjl/YXY5UINzzOsrRmPCeOXLg/YFLu10NI0gaKdyKc=; b=F/fUyM+TtFqrCgY0WjjmMH0LMt6OTryqirYl3fGHQLPCe0b8Zn2oEY31czeLZ2E1cQ /kwL8MFlsF+0pPxAWvOGSXiwsI3MhFSiALDRRSa5tFozaby/SXLJ4STfYOB6UPgJ/4u5 aG2xaPLGbuTUUHN6RZ8cqhtMPJsx/zNEY6OaQIqD/RwlWlINhrhxe40bB4q+ZJh2dPma KMo8iOflNFJ4WUmVoiWtEicsIl8dfaF5maNyt5v/kEyM7/NQ5TY61BsS7u7Mi4VSAL6z p+jbjDw032ZM1BVA8GAdlNZZsN6ooI+XptR1NL8qKTwmVM9wtHZSY4iaT+UUXCaI44Dt VS4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SXRsSih0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184762-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56d50c5si1533471cf.688.2024.05.21.03.14.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 03:14:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184762-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SXRsSih0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184762-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6B8D51C20C50 for ; Tue, 21 May 2024 10:14:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 885C071B48; Tue, 21 May 2024 10:13:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SXRsSih0" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A14A77319C; Tue, 21 May 2024 10:13:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716286438; cv=none; b=CBe2a32uGSUU4GmIc4/TbHLFOZwDnThKfX/IxuDMH13A9Fuz3gQeULmT+El9c0WsUNQc2wmdxderJ1+2wALzRFAHzUgxNVkBXI5/vBjwu1JWcmaimE9xEaUt8rAZthkJL/GFbg1SCo5d90d4Zrz8KpFRizscdV2xnxFNTZYHXW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716286438; c=relaxed/simple; bh=RHQ+M/X8yAIVLRtJQPx77FibueWozKcb1Cr3A01lM9s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VU3TaKHJ9ebGQOeCAFpxuhdA/6+ZUbgZLNrGlu4FOd0puA2XxJLVF++xg2EU4gA+CxjlbjhbQ/mMbZkdmLfqam5De3n4Rd2dLV9CziOCvVn7b5kYchkJ61DebJJPOiPxAaIwUzUt++DBuB8isBQbWQNR0VlIitknSig+bJqIhtY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SXRsSih0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D658AC2BD11; Tue, 21 May 2024 10:13:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716286438; bh=RHQ+M/X8yAIVLRtJQPx77FibueWozKcb1Cr3A01lM9s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=SXRsSih0Mj5GfwbMrS07ZwAtAkQmA0QjbNIddcx2ZflDqJJePZ8k01EWEfb9Xmvo5 ckuIz70CYkEdHsxSgtGQOuNs+LiWc8ix2IYHoAnPbNZPIEivKrZ7ceUwQDaayvLOln rWLjFN0WaazcvSsUSSYzXplNZyT8HJeMszxa+o8srEj0AMt4t4BOc8k3fplDFAJdNd iWsgXhcWNzP66IATC71fSNJ8UZ7Fl2D6GHnTDscz8PuMBMOZOKK90MKL95aP3JSekn zWj+PU/bL/GH30xDfNKPm+yK+Z81R+i9D89paj7o3CzomfIuvabpTSaguCtXjsXJyA DR5rmaWNAhWgg== From: Maxime Ripard Date: Tue, 21 May 2024 12:13:35 +0200 Subject: [PATCH v14 02/28] drm/mode_object: Export drm_mode_obj_find_prop_id for tests Precedence: bulk X-Mailing-List: linux-kernel@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: <20240521-kms-hdmi-connector-state-v14-2-51950db4fedb@kernel.org> References: <20240521-kms-hdmi-connector-state-v14-0-51950db4fedb@kernel.org> In-Reply-To: <20240521-kms-hdmi-connector-state-v14-0-51950db4fedb@kernel.org> To: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andy Yan Cc: Hans Verkuil , Sebastian Wick , =?utf-8?q?Ville_Syrj=C3=A4l=C3=A4?= , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev, Maxime Ripard X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=937; i=mripard@kernel.org; h=from:subject:message-id; bh=RHQ+M/X8yAIVLRtJQPx77FibueWozKcb1Cr3A01lM9s=; b=owGbwMvMwCmsHn9OcpHtvjLG02pJDGk+xRelV+UeDr0cWyd+7C+LpjTDd2ExIaHwTbNmnT/7I dCSvX9tx1QWBmFOBlkxRZYnMmGnl7cvrnKwX/kDZg4rE8gQBi5OAZiI6zXGWplitm8PPXpV7CPd PPe6f/0s+KLe8n3/8XjHChuvG12hn/WUnpte/OvD9+PzwdYvnPzMjPWV7GpGh81eP2NTWOph9mz ew9dHXd8f4XfMmRUsYW5dffSka5ub3pttYTU1P40y1FZ4VQMA X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D We'll need to use drm_mode_obj_find_prop_id() for kunit tests to make sure a given property has been properly created. Let's export it for tests only. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_mode_object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/drm_mode_object.c b/drivers/gpu/drm/drm_mode_object.c index 0e8355063eee..df4cc0e8e263 100644 --- a/drivers/gpu/drm/drm_mode_object.c +++ b/drivers/gpu/drm/drm_mode_object.c @@ -476,10 +476,11 @@ struct drm_property *drm_mode_obj_find_prop_id(struct drm_mode_object *obj, if (obj->properties->properties[i]->base.id == prop_id) return obj->properties->properties[i]; return NULL; } +EXPORT_SYMBOL_FOR_TESTS_ONLY(drm_mode_obj_find_prop_id); static int set_property_legacy(struct drm_mode_object *obj, struct drm_property *prop, uint64_t prop_value) { -- 2.45.0