From patchwork Thu Mar 9 22:46:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chris Wilson X-Patchwork-Id: 9614273 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 89E57602B4 for ; Thu, 9 Mar 2017 22:46:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FBE1285D2 for ; Thu, 9 Mar 2017 22:46:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 613362862D; Thu, 9 Mar 2017 22:46:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E7E36285D2 for ; Thu, 9 Mar 2017 22:46:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3B7446E058; Thu, 9 Mar 2017 22:46:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1F5DA6E058; Thu, 9 Mar 2017 22:46:56 +0000 (UTC) Received: by mail-wr0-x243.google.com with SMTP id l37so9582122wrc.3; Thu, 09 Mar 2017 14:46:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DN5lb34DJKW7ZvwdM6W9mFMCeFX+F9SCD/gLJvlz93I=; b=RdREO6DSYzaiVNY7kg9jct3+dHO+ABzzH8QBrpy8HHn6qIzj7xh1MYgm/nkYinjQ+y C8mchg99ylGIrM55QnN6lL716vXTsizvf9hIQl60veEJisT4fJtvH7UkgcQIJc8PVVXy iXrEzJgkYf/1lZRrYAmEM7c7R/em6j1XJ70p/McPz+fesDsALiw6JqJ0h7P0g3LaIQlC u3+EnNoVHMUBFlRb10ZP0Fnr2P/sqFzzwbEfOv42nKjgDf9gzKu48mjr43rxQA7Tp068 0vYshkBKFSM7Q7t87DTJ5Oythjh4//xINGiGKPXA25/wcjPsY9gNlbQ5C9GaP1UVoDsC B8Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=DN5lb34DJKW7ZvwdM6W9mFMCeFX+F9SCD/gLJvlz93I=; b=hrxjwXZTyGi17Wn3vDp5u1vYMhvb+b1z2cp6P5qCxRpXNhUZPXyqQX2bAr5+gdyKjW ZQhAxOw6txCJS1oOItMK+/hi2gOs84c4bFo1RIElj+PeUv7aDTzAloOWH2crBCRhYik5 spM6sosmf7qe+yao0B/5tBJBeuVufkBUT1uMDrFyYpcFiu/UskIR0Bl9Gl2gW5dZ+qZ5 OLQnQafTjNJJ7kM9H4l4lF4FA8ElRkWdg+OopAzmVDAH759zTKvd0OjBIv673WglMt7Y 4kGGMjcfbiFzXU4FqNdvB3cJyA+A+q/H9TUD6Y4b9LF3UqrZKUldPNNiN4MKRbblGWTs V5ZA== X-Gm-Message-State: AMke39nPtdkXkMxR4kjuNq95inxkOm+HBmMFOZpm13nBVxhg9yDYcbGe6MEwkU/qvlA5Fg== X-Received: by 10.223.164.9 with SMTP id d9mr12996438wra.146.1489099614609; Thu, 09 Mar 2017 14:46:54 -0800 (PST) Received: from haswell.alporthouse.com ([78.156.65.138]) by smtp.gmail.com with ESMTPSA id d75sm432592wmd.25.2017.03.09.14.46.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Mar 2017 14:46:54 -0800 (PST) From: Chris Wilson To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm: Forward declare struct platform_device Date: Thu, 9 Mar 2017 22:46:51 +0000 Message-Id: <20170309224651.16621-1-chris@chris-wilson.co.uk> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Cc: Daniel Vetter , Gustavo Padovan , intel-gfx@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP ./include/drm/drm_pci.h:76:64: warning: ‘struct platform_device’ declared inside parameter list will not be visible outside of this definition or declaration extern int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device); Fixes: 23ef59ef6dcc ("drm: Extract drm_pci.h") Signed-off-by: Chris Wilson Cc: Gustavo Padovan Cc: Daniel Vetter Reviewed-by: Emil Velikov --- include/drm/drm_pci.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/drm/drm_pci.h b/include/drm/drm_pci.h index 5081b3eba309..9cd2173fc892 100644 --- a/include/drm/drm_pci.h +++ b/include/drm/drm_pci.h @@ -73,6 +73,8 @@ extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask); extern int drm_pcie_get_max_link_width(struct drm_device *dev, u32 *mlw); /* platform section */ -extern int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device); +struct platform_device; +extern int drm_platform_init(struct drm_driver *driver, + struct platform_device *platform_device); #endif /* _DRM_PCI_H_ */