From patchwork Mon Feb 12 13:12:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 199745 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2417811dyd; Mon, 12 Feb 2024 05:14:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX2RsiNRuACCtNQuvGs4+7ajdxBp8WISj9dNJ6HWFx6Zf9S/8/Bt/IXsxm1UhIw3wg2kzGZ6qmjeUsR+iO46RFAxwGcLA== X-Google-Smtp-Source: AGHT+IGjNVordeQxcoT7yOgjsCMf41dXVGp93lNsN+oFDe6AhI/AuQDuAkELqNrzPZWdawtUN+nK X-Received: by 2002:aa7:cd45:0:b0:561:1f4:cb5e with SMTP id v5-20020aa7cd45000000b0056101f4cb5emr5184822edw.7.1707743677266; Mon, 12 Feb 2024 05:14:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707743677; cv=pass; d=google.com; s=arc-20160816; b=IWTE15TQQPXDvPT/LKGuoA5oRu0FGNBAPnyIxw+41yb9w95aJwxICuuK12HRqAuOeg ltthHJwe9mxrldt8ZXlRltHhVybmZtyV/SMyw1K8+RTdoZqxuZxjxwSc9nDg4O0Jxxe5 v6r2r/wyO+rx83yBBRAmwO+rCF/Z8npN9/QxVHNRXQKBVd1aP+/BGO5hW1DeueOtTsyW SI6u8c9OOddvr07sapBi8kdShtgJYoGPSJkTMpuIeUg0As1x0w7RJnOtxwF80Z4VVDF9 2vipgN/mg4IddrTd9Rs0n0jF+8gT4iVu1RnNGS8MCrNz3qYv5ttmdrdG1JBIeCEO0r3d MaPw== 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=YY6jqH0GE/prsNq6RALQ2aHBNl6p7Ysf96x0HPnfJ1E=; fh=+uKav86NSGE6U/bZ9UN2mu7sk/E5SdTAEjbVMxnX+b0=; b=EAL89eaf/JnsgOakcyxWPw3xg+xQfjdAGmqVG9sO3VlVoAKq9bTtSLU3bKwQCdqDT2 9wMCleoTu1Gc1nEaGalW3OIZzYXJh3a0iLMlkQSXGfH9L/veKOOpXJzEH9dv8XvfKe0c EVcgSOeDgTHJ3+046ZkM9Al4CPRq5nqQdw0fNcTCAttwCZq+IIsGOW7uQa9az6PZMmIH W5xaSiG6ycoOCnXG851bgGBDqiWIANcoEheyYuJ++LWz0Ej1LepPSRfcntSA+rBGwDYt ZE7OPONVtEYMcEUPZKUjuGJvrqOaiwTIS54DZBWkKGp2EG0AUGkDMwY8wI5mpuE0MrXh q7RQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=agMK6zpv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-61615-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61615-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWyvMb4GqofOi+Neyz30+laz+ahfZT7gxIOYfH5Clse+QhkswpYOp7F6eZaVFOnUexYwFCQ95OR8cLrAfS3+9EDKpvbvw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dj17-20020a05640231b100b0055fcf35fb3fsi2632731edb.265.2024.02.12.05.14.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:14:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61615-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=agMK6zpv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-61615-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61615-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id DA1131F21754 for ; Mon, 12 Feb 2024 13:14:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DD463B78D; Mon, 12 Feb 2024 13:13:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="agMK6zpv" 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 4D0223AC1A; Mon, 12 Feb 2024 13:13:31 +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=1707743613; cv=none; b=X1DX2Ci5fA0N/uz2A5QMLVYiXxS3jNnSwVlUDQGfGdYht8ruas5ZkS/4uclWdnORfUNB8tF47bu7ViuZQfegaC+KsM49c4NLHbMyV5obpl2RJnpx/O2ET8voaWiv3JgqszizYaweTjGE49naVA3Y3G3mWqOdGHforcYvy7GsfQQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707743613; c=relaxed/simple; bh=81lEe31K2YU0V4EnFq3xxesUJy/t9LyYJwWTzno5+Rg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=prttT1JfYoyfYAedA2SvHqieJamueWHayyh+mjjjAY9HM/WKI6YTis065IucKK8taOrOUCc/TtmIFJuiCMWJq3PFgDoHFOB/v6B0IeS1Bd4M+KfpQeDYr/e35j+L5dTCRTJcTONUsJFmReuJYoDkPkj13+Q3ltXPxtyIklGJfnM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=agMK6zpv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56B5EC43399; Mon, 12 Feb 2024 13:13:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707743611; bh=81lEe31K2YU0V4EnFq3xxesUJy/t9LyYJwWTzno5+Rg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=agMK6zpvNkiF/exIgCw6MWEwPTwthUWbp7r55Qi9e+QM6MF82pxE8GXReInl+uxkt UPWPI2UPVwJcvRL6hcKHnuiwe6Y+Jpn/I2OcLbGU7AwRCgF7I7fzwp4uitSHUGp++B w3xGCk7/verBbLy5tcOGxTqnUbzKS195N15pPsSVHCsjMgpmDkilLn3p/77QjXaGkr CCF4AZ+czm+PdhZ6fMmv1A2OgWRmLC5ew1XN+SJMi5bk20J43QtnZqe3PjjtnRN2mb vduSytTdtFAhd1qL95znRl0o40rcMk0BbNhr3K+n7m3vgEK4f2dYKr3AklojLCZaLM GiHMhmb9msFog== From: Maxime Ripard Date: Mon, 12 Feb 2024 14:12:44 +0100 Subject: [PATCH v6 01/36] drm/tests: helpers: Include missing drm_drv header Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240212-kms-hdmi-connector-state-v6-1-f4bcdc979e6f@kernel.org> References: <20240212-kms-hdmi-connector-state-v6-0-f4bcdc979e6f@kernel.org> In-Reply-To: <20240212-kms-hdmi-connector-state-v6-0-f4bcdc979e6f@kernel.org> To: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Emma Anholt , Jonathan Corbet , Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Hans Verkuil , 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.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=857; i=mripard@kernel.org; h=from:subject:message-id; bh=81lEe31K2YU0V4EnFq3xxesUJy/t9LyYJwWTzno5+Rg=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDKmnJONyhB9FcElXrd69yPRXoObCkusKM1a2Hv5oaXJ4z +Hk8hCXjlIWBjEuBlkxRZYYYfMlcadmve5k45sHM4eVCWQIAxenAEykKonhv0fno5pP9Vc7D/+Z d1Fy4WvWJZy9e/cde6KwQjduwbKZhYGMDGdOfGx44vFtk85ti+fdSxJK35UELNHaWctYFPVA8UI PFzcA X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790699033933429760 X-GMAIL-MSGID: 1790699033933429760 We have a few functions declared in our kunit helpers header, some of them dereferencing the struct drm_driver. However, we don't include the drm_drv.h header file defining that structure, leading to compilation errors if we don't include both headers. Fixes: d98780310719 ("drm/tests: helpers: Allow to pass a custom drm_driver") Signed-off-by: Maxime Ripard --- include/drm/drm_kunit_helpers.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm_kunit_helpers.h b/include/drm/drm_kunit_helpers.h index ba483c87f0e7..3ae19892229d 100644 --- a/include/drm/drm_kunit_helpers.h +++ b/include/drm/drm_kunit_helpers.h @@ -3,6 +3,8 @@ #ifndef DRM_KUNIT_HELPERS_H_ #define DRM_KUNIT_HELPERS_H_ +#include + #include #include