Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp511305lqh; Tue, 7 May 2024 06:18:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUkBE4FAjRnIcER3lFb2M4Z3WjK6Sk5txwAfkncn54+v5ROci1C83gZcw+wbUWjWzm2kZShWayUwvxYe3dRU0uhFJq7dcY5JMtJ7KCSw== X-Google-Smtp-Source: AGHT+IHRlVnFkFfelTzDrz4cCOG6LhbXiu/Wd+s0lq2MTkjpzwMwkcVQ0mm+FceAV3py7MCqBr6+ X-Received: by 2002:a05:622a:38a:b0:43a:c0c7:a218 with SMTP id j10-20020a05622a038a00b0043ac0c7a218mr4407565qtx.33.1715087910595; Tue, 07 May 2024 06:18:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715087910; cv=pass; d=google.com; s=arc-20160816; b=ueuv3svdy1joYSevH7ED6dh7N/Xu+vCxRWG/joB0gxcFhEKY7xfWSyGMlZoVtJQbao hxh61+pMxbIpxef1RGpMiy4uBjRBjrmHRe2ID/2H7XmnOEnDJ+ZkFwsQpqMK9oE9TXdL ZmSnxb1kAgy9iTisHsoYyz+6wlm+nMbh86YfP8EBR9F6cRFDxayEYfdloA3Y4jwkNC3F PeYmG+fIHDjU20sM3VJBetYvWNH6jm8ZJH79MS5cHU9nk0PFIwGC4iqyofovqtcVU/be 4U9dkMdCcToCcfc3NCMj5olsFlOlV1d0vGTmxk5c/b2dWr3acvnvCYBkQ+J/a5Ss0yOK qKdg== 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=UaH7N7ZiWIZqv6i2BqfrQO/Dm9Rnqp9rbhaitCV5VTBY2qmwCQoigee3CsZ1lY8CEX f2NaQxGCQaYxZDTmxc/eMXFl1306LrV6ejQu+mtwvVeHnJ+aAKqPlyTMUSFo0W+8nNHA 4xegaCV+/m5A2gh8eTk7SK8JT96EteJcs8prcXSN6mkWnQudBno+z1y7WEnByN99wMK9 mPY9Rjgbs4CewK4cwBAxlQjTIuerDj336Ni4VACzfg2cVfzXMMNmGD6TRtxFxwccf5i1 4rKGFgfq4cHOvgMK6eyTxpMPGc6CYCcPnVPzrDv6rnvl/Vxfzt4qghpXVpz8XeEV/L5x Xigg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QlLWv+GE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171372-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h16-20020ac85e10000000b004347d9f0ed0si11699422qtx.569.2024.05.07.06.18.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 06:18:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QlLWv+GE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171372-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 3C1581C23C59 for ; Tue, 7 May 2024 13:18:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51D3015ECC6; Tue, 7 May 2024 13:17:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QlLWv+GE" 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 6BD2D15E80A; Tue, 7 May 2024 13:17:49 +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=1715087869; cv=none; b=KXb1pF/CvIdeouCXjZzwsD/9AvbXHovP4V2m1BYdAEZqFC/kKQvwwDMNoT/7mK8hpEG6zqws2a60xrutfVR6/zgmDDqVchHjapo6bYiWbxIuabv1J9WVdhOuYCIocITVkNWR1Sg9WMpJzW3SdMoT7Xj21uunQy+a30QIjIOE3po= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715087869; c=relaxed/simple; bh=RHQ+M/X8yAIVLRtJQPx77FibueWozKcb1Cr3A01lM9s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AMy90B/pXeDKqwb0SqL68ZJl0zRxm87ttp/cBLHs6Vj6y6C0ZGCXZGcPwyO2SdR95544JQlK+wbLe5FZt9HJ0FxoT5cTKgbKL1EVlH2gthPFyvxjw3h5Lf7pRHKOQYlhn+ZUT6SFOurcICkgfh6djCh995GalXZNdetCJt7LdKU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QlLWv+GE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4000C4DDE3; Tue, 7 May 2024 13:17:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715087869; bh=RHQ+M/X8yAIVLRtJQPx77FibueWozKcb1Cr3A01lM9s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=QlLWv+GEXCa2lAO38Dh4VCIk8N6Lhjgr7s2/NI8bJSb2fTV5mmgHYtRElTKoVBWmE H99okaTVcPHHsetwnCECjzJn3a2sFIJp6sLQLGmVSZEwELU86DXK+IHgjabljKOOHR PhTgsIyiajV1LknZZZ/Jc8OoyPAS92wx5Wqe3+j/S7rfMNsuIk2yJ/Mw8KcDqTyfoY gyDM0u5nb4s0yH/tMEg/s6DyUrOXzZ3tcOgnWyYlkvX2rLU5PDcSUvhLLFLnyTzsqa XgCcWpAW5WHUP/NACWO2YDBwb+znGRuMVMDU7e6k8ZuVzODU6OE4tUoZ4HhU/u2kpe +kmH9T1g9k5mQ== From: Maxime Ripard Date: Tue, 07 May 2024 15:17:20 +0200 Subject: [PATCH v13 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: <20240507-kms-hdmi-connector-state-v13-2-8fafc5efe8be@kernel.org> References: <20240507-kms-hdmi-connector-state-v13-0-8fafc5efe8be@kernel.org> In-Reply-To: <20240507-kms-hdmi-connector-state-v13-0-8fafc5efe8be@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=owGbwMvMwCmsHn9OcpHtvjLG02pJDGlWms8Zin188hQuPxBZxXy1/N6tpwbfHXWjE1YeWFPFl rwyjfVjx1QWBmFOBlkxRZYnMmGnl7cvrnKwX/kDZg4rE9gQLk4BmMi5W4z1IZPETxzmV+HmeDR1 4laJlblb3nWuCazXkju0OILjhAynffjTSUdChHP2359kY3Jmdscyxlq5XWVqBVX9OYv0Y+0LXfh z1sp9N0vawndLvtCr5bpcJ2eP/IIP/oavtkj/LF+T3ViyFAA= 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