From patchwork Mon Dec 13 17:07:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 523479 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp6342380imb; Mon, 13 Dec 2021 09:08:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrxQsxrObslT2IRP73wyeNer4AM036eOYXeM3hIa5S4/l4PbBPKVt/fz4obHQF0X6jJITW X-Received: by 2002:a17:90b:2245:: with SMTP id hk5mr15819444pjb.41.1639415283780; Mon, 13 Dec 2021 09:08:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639415283; cv=none; d=google.com; s=arc-20160816; b=fWBf6uM1ONrKK/jSbmldWg60RSYfNUzBIQ64zR1YG32gta38iKIFOjLN0ReEZrvqly qkxMxRu7shMQmRlfnvTISiMZbtjeA7gL81ops2jlMGVtwnYbFNuoH+eJSiV55RQPBfd2 LoarHqmYglhoWo9jfvp/pKgJQgkMZdA8XJWbtle5w72VHm/CvDqzahJEIHUQkHOXtVFm 5O82fsPi0Rh0wvEld+NODn5V8lr7K/6C43KxQJwC0SiI19hgcGUTv+Csb2R3qXrDZYwW 6cJNnZFnAekmn1YlcJRoPEXIgPKERBWKoKp7MHj9jW0ehNsRyEmRH2feGQixcxBm/OYG RWNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=OHXz+RKgTbIc29420HLcjg375nweXHAnmEOq0a3xsyM=; b=gmPpI3gFsGwnZqJqUbrTkTBcoIyLQTEoGNNm6tXE9tpPSbHjBFYgvk/J8NxsXh/t/6 Lzk73Qmry8plSSm8/2reKPZZcx89cbYY0iiz8Uclx31p1P1YUUT6VGbWwKgHA90Sgfek efiKk+6xvPReqBQXLVNHJXXB0hWagvAi7dwsoAOpc3weP6R/j6fT2z1O5CGFbBNqEFCo zDjjt+3Y9+jYPQNdDZG50G+hDKMkNVjdqg+JyWF/+oicc7cBxhijYT6rJzFsauyYNbJe o70KAjNuSgrwRnPQzCchXSq7dHx6vY+8ZkjdYsH9svvF4UxFeGaxJi0roJj+uYWIgVcw tLTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=EpaYBxB6; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id g3si9282673pjv.69.2021.12.13.09.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 09:08:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=EpaYBxB6; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1BD0A10E7CC; Mon, 13 Dec 2021 17:08:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id EF53310E7CC; Mon, 13 Dec 2021 17:08:00 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8463AB8119C; Mon, 13 Dec 2021 17:07:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 362DDC34600; Mon, 13 Dec 2021 17:07:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639415278; bh=neBt5nn9ZDsOLz1R6GX+iLe1RoxSI+6JFmIJJuJGOM0=; h=From:To:Cc:Subject:Date:From; b=EpaYBxB6RTzEkof55lhj5kJznoCYa8wkYWYDQzAnf74eSSV171ueJdKSnEQ0y0zDC GV24qU2mqxkcRUi3LIudjYfWwgqrbSBNepy3FeloNhbslzbZOQyvED92wJvpVVcWv4 +WRxJD+Yr34poOyV5bKbZ6OwqobExRzeR+NJbvG3wGeqqIENvPZ5DS0ZTEZBtho6FV qY+KFlkMiJB8q6Us7ImGI6kfSexlD7VrQ70Qv0bSQL/1tMqFdOaztPF/lg5dxUoBv9 ZRKYBdr8RIM9EUNeGoU0FALmnEPXqcLuzSmb/igp1AdkS+XqjssMoBkohrM7lnLvbj /PJJedJuN2mnA== From: broonie@kernel.org To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter Subject: [PATCH] drm/i915: Fix implicit use of struct pci_dev Date: Mon, 13 Dec 2021 17:07:53 +0000 Message-Id: <20211213170753.3680209-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1485; h=from:subject; bh=B59CtkeqUpZIIn0KhhMhY3pnZ+yxmQeyEKr7IZrsk8w=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBht3y2JtsKLj2V+9iMEpWfnUWMcbwBrIfWSzUmUbsa bEL5Wo6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYbd8tgAKCRAk1otyXVSH0IY1B/ sHYIhA3nx44JRUiss3UuH4hNzVKaeDEzZemZ59oD0ZPum4dkUSYe04dctBsWpFm09LxVO6EogTUx+k Mz2JeTzKayWBOs0DCeopFFBs9UzbGcuBp2Zb99NHKWzkvvGYf5z6lDonbrmHv38xRzPLZZmkOXt9OF bQ0vAZNSWW9vnhsMvQdPqTnAYPjeh6420NmMG6lM8MPwgOBYn4mW+UQCgeCz1W/fv0A6kfusmW22MH dOwaN/2v0/P6LDyoIAjuLzKPPdONk1d92ZUw9vnTmn1QoP5C+vBI3noPy60dINLO7tcx6nM0Rs1Hxv tdVG5Dx5QgKWfT6V4lhocXG5egOMyf X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org, Mark Brown , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Mark Brown intel_device_info.h references struct pci_dev but does not ensure that the struct has been declared, causing build failures if something in other headers changes so that the implicit dependency it is relying on is no longer satisfied: In file included from /tmp/next/build/drivers/gpu/drm/i915/intel_device_info.h:32, from /tmp/next/build/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h:11, from /tmp/next/build/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:11: /tmp/next/build/drivers/gpu/drm/i915/display/intel_display.h:643:39: error: 'struct pci_dev' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 643 | bool intel_modeset_probe_defer(struct pci_dev *pdev); | ^~~~~~~ cc1: all warnings being treated as errors Add a declaration of the struct to fix this. Signed-off-by: Mark Brown Reviewed-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/display/intel_display.h b/drivers/gpu/drm/i915/display/intel_display.h index 4b688a9727b39..377790393a855 100644 --- a/drivers/gpu/drm/i915/display/intel_display.h +++ b/drivers/gpu/drm/i915/display/intel_display.h @@ -57,6 +57,7 @@ struct intel_plane; struct intel_plane_state; struct intel_remapped_info; struct intel_rotation_info; +struct pci_dev; enum i915_gpio { GPIOA,