Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2168469lqb; Mon, 27 May 2024 09:56:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJY5zfWx0u+n2FdHhUeAwsP8+BNTomWhWKZUkAzHbAbXxQ9vaOYuWlQ3rvu79nTP+jmoaJ9SuCmIALI1ux3BuzSrteOVYReM9JpPyTUA== X-Google-Smtp-Source: AGHT+IGqHPrDAqMdLdpB08cMeuhypoSibtzMssyJ5IBnH1WkW1iO2lagZAlBGcXuw4l8Ct3LipgF X-Received: by 2002:a05:6a21:8193:b0:1a9:b2ee:5f72 with SMTP id adf61e73a8af0-1b212d4c365mr9124222637.36.1716829001462; Mon, 27 May 2024 09:56:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716829001; cv=pass; d=google.com; s=arc-20160816; b=q7PrQCGMgeW8c0PCbII8sHvVrPyJXGZ2cwefR4Va4FKkZ2+CNNMq3jmk+ECTMOJvWY FPESurWc/auAAj2c6qgM2vdl7znDQGovy7tGr2pS2/SCWZIBlT2qWuigHoUypF5PluNc a1vH3nED/Iq3vh+qmjK5VzsiGPjtImAncAuCQqNU7zyqubrsPxPgrEcn4zwAPn8X2DH/ yM7+QhxOU0wgIGQZyCQ0JP89lALL2iQVvJywST6sULg8y9QHjwRxKwxSGmYqrSxs+P29 VT9YNcJeiHvmWZy5zEgAK2pZO+z5ZNdvSvnC0p6x0GQrYbPkepBdeDUrDT09FhXMUzw1 9WLQ== 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=RMIMm1skujqu5dJg4uPYXRM4OKtaZ8+sdeoaQdRzSE4=; fh=FOfHSnIdWeOaClOl4TJiWuMGCAWm9aVg26yK/xgfBFY=; b=lFZKelyRPFQz1ubtzyxcKAW3Hp8F1ESV6uY5Ew+WRX1gTylTMbMZekb2V7rDa66Cdt AjnNjw7NtU/bZ7ja6FnTR66q7ze56N73SpEQuY/2UpI4yQcdgeT4Bpvnf+0YdXIqzAZD UaZyYQMNatlyS5aSXHv7kfypmd9LcO9OCbK3OyCdGJAxRqubmWdTCE3lSoWmREPWzdgT WqUZetKSy1tb0Vc9PfaJAFpDGrz5lfRCH/nTAyPVfZjhqCQVSiO0cwhGh7g5mSVKXf3U 9kWWo/Sa54lvRASXv9+75K6owFdPIiHkriiHpU+NETFnBgPIMGhlAr4xRAkF20sPH31J 1vrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uC4P/69Z"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68221b73b33si6630290a12.17.2024.05.27.09.56.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 09:56:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uC4P/69Z"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190767-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EDFB4294B95 for ; Mon, 27 May 2024 13:59:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C8CC15FD12; Mon, 27 May 2024 13:58:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uC4P/69Z" 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 2804615FCEB; Mon, 27 May 2024 13:58:22 +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=1716818303; cv=none; b=Os6hpG7F1tj0IwOIDDlq5v69kSrEiRk+Qnfc1YgCDRBpfksexwdUxsRUBpv2GfE91rEHN6Ni7ggeHp5XLUNsPJMaapoGKnoQq8bYN6NjPci4Z1Ph7TLlZfMjJpFNBXxivAixw9MIOJcd688Eew5jl8a5UCHiG51/w8YKOceLilc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716818303; c=relaxed/simple; bh=Rw5+InX0fgillZLgsQwYR3h19gtgu6sjCwii1TYZtTA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ls/zCS8hwSKIS6h104FMMfA+LJUmrULqkc9OAc9gYv8SrUxztnH4FibXomV9Z4ilVUe7NAFt4M5itEAfNO6QpYfBzR4yuDHTTMczso6ZOlPDkiNLrKOLL+gToQ/sM6WISRvqW+rmWpjbzKRcJwfCcbrOKwheyWOPTZNlfI08gfY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uC4P/69Z; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 672D2C2BBFC; Mon, 27 May 2024 13:58:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716818302; bh=Rw5+InX0fgillZLgsQwYR3h19gtgu6sjCwii1TYZtTA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=uC4P/69ZVYx4tWN6ltPAff+QtAjXoubpZRtb3snppYrEm8c1ufwFVVRgbMN2FIk3n HXWWPPaRn/ZrTxpotNI89iXmD9Dl7cRu1yRFpAVecudaJfeK+CoENNr+wG4XJTz5TN WAdjgrQHZeb2Q/JNf/Lb+FsYcIJG2TWfBqk+tAa2VO9xMlAAfDyjtkhH1IrA2sLbwt bFR24eq2xX66AWIOck9ZFOIQdxzoRHf4b60GPjNIo4C6beIGMmqTXT/XovvZYtACxH 7L2q5KXkowQ6iZZk+kxDvAv7ctq9yMi+hnbkuLViqa8Z3umL5lA0s2h8Ak4+J0ra6D Q5DZLZbDQ3ggQ== From: Maxime Ripard Date: Mon, 27 May 2024 15:57:54 +0200 Subject: [PATCH v15 05/29] 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: <20240527-kms-hdmi-connector-state-v15-5-c5af16c3aae2@kernel.org> References: <20240527-kms-hdmi-connector-state-v15-0-c5af16c3aae2@kernel.org> In-Reply-To: <20240527-kms-hdmi-connector-state-v15-0-c5af16c3aae2@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 , Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=998; i=mripard@kernel.org; h=from:subject:message-id; bh=Rw5+InX0fgillZLgsQwYR3h19gtgu6sjCwii1TYZtTA=; b=owGbwMvMwCmsHn9OcpHtvjLG02pJDGkhE5N8Cy/t9J+b9F7JZOOPMGORgi69a6vmtgcc6f23d puGe/yBjqksDMKcDLJiiixPZMJOL29fXOVgv/IHzBxWJpAhDFycAjARtZWMDRMED35Ok3PdVx/b 7f+Va1qF3bHpy5kWfTvjM+PjXs6vxgd9O94ESBwMqxLqa2p0knrHyNiwJt5Y5fIzCcdva1h3nL6 5duYT+wf6CswK5xZ+C63zOnd+Z+rvOyfmqXw5eNOVxfBIauVJAA== 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. Reviewed-by: Dmitry Baryshkov 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