From patchwork Wed Dec 26 21:03:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10743291 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7557813A4 for ; Wed, 26 Dec 2018 21:04:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64980286D4 for ; Wed, 26 Dec 2018 21:04:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58BF528701; Wed, 26 Dec 2018 21:04:31 +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=-3.7 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,URIBL_RHS_DOB 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 E31F7286D4 for ; Wed, 26 Dec 2018 21:04:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E6CBE6E028; Wed, 26 Dec 2018 21:04:28 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0D8FD6E028 for ; Wed, 26 Dec 2018 21:04:28 +0000 (UTC) Received: by mail-lj1-x244.google.com with SMTP id g11-v6so14721541ljk.3 for ; Wed, 26 Dec 2018 13:04:27 -0800 (PST) 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 :in-reply-to:references; bh=fsBXqBJslNWkzB2GNJjcUo4JaMGhgeRfhXO3VU4naB8=; b=cW/9d0oKd+Kf6RJLfODc8qzSBTdLS8RXTZVuiDQgpAy9TBUvVXOz32KUGfrmjESyf1 MUOl4cFmQgfZnqpnTlD57Uq50lPYMdVLnUgsb8l0OqoSjoF7RBw0jKCXBD4iqDaOO82K sI0a/viz6ilFk4CxIwwNsZT4QLISL++lyQ51DNpGjCSWCIVuMnZG7Wk35/8MgGn9DEaT DHDlAMNMtMsGPBFPBaGwbk2Th9GaMvLUJ6OKNMTpcNet+cqqHF5zpoGtaLjKxrhhiCfY YD3B0ry6yv8XnHE3zdUyoaA0jAX+Axl8Jr1KjY5dHXn9TiwOjz+zYjm8RD+/5ty2GjQF AYMA== X-Gm-Message-State: AA+aEWbdSpjzLEjXGgjNh37mY/DKz7fDt2WC1MqbgY6/qcWUeaENT0jz 3B/EHhpb7yUVrT6chnkPnWhwokRj X-Google-Smtp-Source: ALg8bN4yml4ed1qAq/TfUTPtm9zNNvW3xbitMYSNuZVMYVsiPAlLPzzmCWJsiLo36aegdBDfnNTdmg== X-Received: by 2002:a2e:92:: with SMTP id e18-v6mr13328539lji.130.1545858266294; Wed, 26 Dec 2018 13:04:26 -0800 (PST) Received: from jupiter.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id g70-v6sm7768124ljg.92.2018.12.26.13.04.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Dec 2018 13:04:25 -0800 (PST) From: Sam Ravnborg To: Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Sean Paul , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v1 1/7] drm: move DRM_IF_VERSION to drm_internal.h Date: Wed, 26 Dec 2018 22:03:47 +0100 Message-Id: <20181226210353.13993-1-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20181226210215.GA27610@ravnborg.org> References: <20181226210215.GA27610@ravnborg.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sam Ravnborg MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Move DRM_IF_VERSION out of drmP.h to allow users to get rid of the drmP include. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/drm_internal.h | 2 ++ include/drm/drmP.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_internal.h b/drivers/gpu/drm/drm_internal.h index 51e06defc8d8..e9374cd43610 100644 --- a/drivers/gpu/drm/drm_internal.h +++ b/drivers/gpu/drm/drm_internal.h @@ -26,6 +26,8 @@ #define DRM_IF_MAJOR 1 #define DRM_IF_MINOR 4 +#define DRM_IF_VERSION(maj, min) (maj << 16 | min) + struct drm_prime_file_private; struct dma_buf; diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 05350424a4d3..b6b8436b5123 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -95,8 +95,6 @@ struct dma_buf_attachment; struct pci_dev; struct pci_controller; -#define DRM_IF_VERSION(maj, min) (maj << 16 | min) - #define DRM_SWITCH_POWER_ON 0 #define DRM_SWITCH_POWER_OFF 1 #define DRM_SWITCH_POWER_CHANGING 2 From patchwork Wed Dec 26 21:03:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10743293 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5A0796C2 for ; Wed, 26 Dec 2018 21:04:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A38B286D4 for ; Wed, 26 Dec 2018 21:04:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B69D28701; Wed, 26 Dec 2018 21:04:42 +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=-3.7 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,URIBL_RHS_DOB 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 DF056286D4 for ; Wed, 26 Dec 2018 21:04:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EA3C16E101; Wed, 26 Dec 2018 21:04:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id A02356E0BA for ; Wed, 26 Dec 2018 21:04:38 +0000 (UTC) Received: by mail-lj1-x242.google.com with SMTP id q2-v6so14702584lji.10 for ; Wed, 26 Dec 2018 13:04:38 -0800 (PST) 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 :in-reply-to:references; bh=EuxKM+L8goMIZAgnpg5Zp++orBI8BY79job/7famgVo=; b=PStDCtUaYwG0yGXjI29ZT6ylzpvFHBNO78kCRuaIxLLQKI3fAa70HBVtzH1A2tDZyl mqBwKl7xTw6QQyDTr3sFmQl9uDnzkRptiS+PTdV78mWj2EXma/hzlQzOLPwGrEEJWhCY qe5PYqdC6ZZ2x45iBLaRbTQEnaav3p/8JCLqQ2pM6aBA66/HdxalJXR++nIa5q65q3UX RFgp3xastpjW1X8eLLjXDII0KmutEyBLVZj4SSrKC54KRjIzx4Xkr32bB45XaZFt5G3l bnvCDBMIwCzBP5bFxdfNTjuIEZ960R1hDOsSVCyPcjNKVswpnSt/NPNRd5yzVSv2BXMp G2ug== X-Gm-Message-State: AJcUukdCwLOOSVgRZvuFlJWNltiRI0k8ZFqwCkzQe0mX2xNFp3BJBORT pzkesmjqWRQvmGrOSg/1QdI= X-Google-Smtp-Source: ALg8bN5U/nD1KODcHS70RxFtPxfi8p68K1oKZu6P6glo57RbTqYBkg3hY67OVbYARBWdX6iqAutT3w== X-Received: by 2002:a2e:8546:: with SMTP id u6-v6mr11827020ljj.95.1545858277083; Wed, 26 Dec 2018 13:04:37 -0800 (PST) Received: from jupiter.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id g70-v6sm7768124ljg.92.2018.12.26.13.04.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Dec 2018 13:04:36 -0800 (PST) From: Sam Ravnborg To: Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Sean Paul , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v1 2/7] drm: move DRM_SWITCH_POWER defines to drm_device.h Date: Wed, 26 Dec 2018 22:03:48 +0100 Message-Id: <20181226210353.13993-2-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20181226210215.GA27610@ravnborg.org> References: <20181226210215.GA27610@ravnborg.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sam Ravnborg MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Move DRM_SWITCH_POWER out of drmP.h to allow users to get rid of the drmP include. DRM_SWITCH_POWER defines are used in combination with drm_device.switch_power_state. Move the DRM_SWITCH_POWER defines to the file where drm_device.switch_power_state is defined. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Signed-off-by: Sam Ravnborg --- include/drm/drmP.h | 5 ----- include/drm/drm_device.h | 9 +++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/include/drm/drmP.h b/include/drm/drmP.h index b6b8436b5123..2ba786820052 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -95,11 +95,6 @@ struct dma_buf_attachment; struct pci_dev; struct pci_controller; -#define DRM_SWITCH_POWER_ON 0 -#define DRM_SWITCH_POWER_OFF 1 -#define DRM_SWITCH_POWER_CHANGING 2 -#define DRM_SWITCH_POWER_DYNAMIC_OFF 3 - /* returns true if currently okay to sleep */ static inline bool drm_can_sleep(void) { diff --git a/include/drm/drm_device.h b/include/drm/drm_device.h index 42411b3ea0c8..c3da194d25f9 100644 --- a/include/drm/drm_device.h +++ b/include/drm/drm_device.h @@ -24,6 +24,13 @@ struct inode; struct pci_dev; struct pci_controller; + +/* Used by drm_device.switch_power_state */ +#define DRM_SWITCH_POWER_ON 0 +#define DRM_SWITCH_POWER_OFF 1 +#define DRM_SWITCH_POWER_CHANGING 2 +#define DRM_SWITCH_POWER_DYNAMIC_OFF 3 + /** * DRM device structure. This structure represent a complete card that * may contain multiple heads. @@ -222,6 +229,8 @@ struct drm_device { struct idr object_name_idr; struct drm_vma_offset_manager *vma_offset_manager; /*@} */ + + /* See DRM_SWITCH_POWER defines */ int switch_power_state; /** From patchwork Wed Dec 26 21:03:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10743301 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7F87A13A4 for ; Wed, 26 Dec 2018 21:04:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E632286D4 for ; Wed, 26 Dec 2018 21:04:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62B3728701; Wed, 26 Dec 2018 21:04:52 +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=-3.7 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,URIBL_RHS_DOB 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 AB321286D4 for ; Wed, 26 Dec 2018 21:04:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 828F66E104; Wed, 26 Dec 2018 21:04:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by gabe.freedesktop.org (Postfix) with ESMTPS id D24246E0BA for ; Wed, 26 Dec 2018 21:04:39 +0000 (UTC) Received: by mail-lf1-x142.google.com with SMTP id i26so11538729lfc.0 for ; Wed, 26 Dec 2018 13:04:39 -0800 (PST) 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=lXs58+S54CGTkV9v4MfzMQtZsLa5ZbnTK3QPc1SiXps=; b=OtBU+p7oryNnj8BdztmO6/7jIVDsOSKPnqKvfKlvkKpB9YaURlqZaM9DDPJGi82dD1 s/Fy79gJwHxccjwc3h0loG70rtjyA0AxP1TICv163j9grG9sbjDbo3GbFFqJXq6DQbRX YijexfGJqBcL7nIBEj9jtC6UJdXYLetnjtEmfMaknCMzuUXEMUK+oyoQZ1Eo+baYEESy 2mM4Xi/StkK9X0L8Fopcfwoecj+h2yJUAuPnQ17TgWHUUYJQZo9zQH309prwsJMR6BJC y2wBVFNKUSMpRiMQwITUZyYK7iG/vGC7tK3QC+lLv8xHOL06+vDSVtIsgfoKVWZ14pHY hjtQ== X-Gm-Message-State: AA+aEWZBOmUvqiAZlOEZlFRUWxlVBSraJ/eg4dhe60zHyRTbgLTOK6Xi 1y9h1M/d1/x6KFgkhmVQabw= X-Google-Smtp-Source: AFSGD/V1kWBrltfOYiwGjQxUZagiSvFlxIjI1wHazOnTbGd9s8Iiq/Ubmavsk0wehwB5WrYH7Zs9/w== X-Received: by 2002:a19:9653:: with SMTP id y80mr10596276lfd.66.1545858278165; Wed, 26 Dec 2018 13:04:38 -0800 (PST) Received: from jupiter.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id g70-v6sm7768124ljg.92.2018.12.26.13.04.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Dec 2018 13:04:37 -0800 (PST) From: Sam Ravnborg To: Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Sean Paul , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v1 3/7] drm: move drm_can_sleep() to drm_util.h Date: Wed, 26 Dec 2018 22:03:49 +0100 Message-Id: <20181226210353.13993-3-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20181226210215.GA27610@ravnborg.org> References: <20181226210215.GA27610@ravnborg.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tomi Valkeinen , Gerd Hoffmann , Alex Deucher , Sam Ravnborg , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Move drm_can_sleep() out of drmP.h to allow users to get rid of the drmP.h include. There was no header file that was a good match for this helper function. So add this to drm_util with the relevant includes. Add include of drm_util.h to all users. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: Gerd Hoffmann Cc: Rob Clark Cc: Tomi Valkeinen Cc: Eric Anholt --- drivers/gpu/drm/amd/amdgpu/atom.c | 2 ++ drivers/gpu/drm/ast/ast_fb.c | 1 + drivers/gpu/drm/cirrus/cirrus_fbdev.c | 1 + drivers/gpu/drm/drm_flip_work.c | 1 + drivers/gpu/drm/mgag200/mgag200_fb.c | 1 + drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c | 1 + drivers/gpu/drm/omapdrm/omap_fbdev.c | 1 + drivers/gpu/drm/qxl/qxl_cmd.c | 2 ++ drivers/gpu/drm/radeon/atom.c | 2 ++ drivers/gpu/drm/radeon/radeon_legacy_encoders.c | 1 + drivers/gpu/drm/vc4/vc4_drv.h | 1 + include/drm/drmP.h | 8 -------- include/drm/drm_util.h | 13 +++++++++++++ 13 files changed, 27 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/atom.c b/drivers/gpu/drm/amd/amdgpu/atom.c index e9934de1b9cf..dd30f4e61a8c 100644 --- a/drivers/gpu/drm/amd/amdgpu/atom.c +++ b/drivers/gpu/drm/amd/amdgpu/atom.c @@ -27,6 +27,8 @@ #include #include +#include + #define ATOM_DEBUG #include "atom.h" diff --git a/drivers/gpu/drm/ast/ast_fb.c b/drivers/gpu/drm/ast/ast_fb.c index de26df0c6044..fb56fe848e81 100644 --- a/drivers/gpu/drm/ast/ast_fb.c +++ b/drivers/gpu/drm/ast/ast_fb.c @@ -38,6 +38,7 @@ #include #include +#include #include #include #include "ast_drv.h" diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c index 68ab1821e15b..1544fa55d1ff 100644 --- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c +++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c @@ -10,6 +10,7 @@ */ #include #include +#include #include #include diff --git a/drivers/gpu/drm/drm_flip_work.c b/drivers/gpu/drm/drm_flip_work.c index 12dea16f22a8..3da3bf5af405 100644 --- a/drivers/gpu/drm/drm_flip_work.c +++ b/drivers/gpu/drm/drm_flip_work.c @@ -22,6 +22,7 @@ */ #include +#include #include /** diff --git a/drivers/gpu/drm/mgag200/mgag200_fb.c b/drivers/gpu/drm/mgag200/mgag200_fb.c index 30726c9fe28c..6893934b26c0 100644 --- a/drivers/gpu/drm/mgag200/mgag200_fb.c +++ b/drivers/gpu/drm/mgag200/mgag200_fb.c @@ -12,6 +12,7 @@ */ #include #include +#include #include #include diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c index 96c2b828dba4..fa2d1d8995ee 100644 --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c @@ -16,6 +16,7 @@ * this program. If not, see . */ +#include #include "mdp5_kms.h" #include "mdp5_smp.h" diff --git a/drivers/gpu/drm/omapdrm/omap_fbdev.c b/drivers/gpu/drm/omapdrm/omap_fbdev.c index aee99194499f..851c59f07eb1 100644 --- a/drivers/gpu/drm/omapdrm/omap_fbdev.c +++ b/drivers/gpu/drm/omapdrm/omap_fbdev.c @@ -16,6 +16,7 @@ */ #include +#include #include #include "omap_drv.h" diff --git a/drivers/gpu/drm/qxl/qxl_cmd.c b/drivers/gpu/drm/qxl/qxl_cmd.c index 208af9f37914..d17676824377 100644 --- a/drivers/gpu/drm/qxl/qxl_cmd.c +++ b/drivers/gpu/drm/qxl/qxl_cmd.c @@ -25,6 +25,8 @@ /* QXL cmd/ring handling */ +#include + #include "qxl_drv.h" #include "qxl_object.h" diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c index e55cbeee7a53..ac98ad561870 100644 --- a/drivers/gpu/drm/radeon/atom.c +++ b/drivers/gpu/drm/radeon/atom.c @@ -27,6 +27,8 @@ #include #include +#include + #define ATOM_DEBUG #include "atom.h" diff --git a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c index 222a1fa41d7c..7e3257e8fd56 100644 --- a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c @@ -24,6 +24,7 @@ * Alex Deucher */ #include +#include #include #include #include "radeon.h" diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers/gpu/drm/vc4/vc4_drv.h index bd6ef1f31822..79c6bcc4f509 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.h +++ b/drivers/gpu/drm/vc4/vc4_drv.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 2ba786820052..a77c9ee43b68 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -95,12 +95,4 @@ struct dma_buf_attachment; struct pci_dev; struct pci_controller; -/* returns true if currently okay to sleep */ -static inline bool drm_can_sleep(void) -{ - if (in_atomic() || in_dbg_master() || irqs_disabled()) - return false; - return true; -} - #endif diff --git a/include/drm/drm_util.h b/include/drm/drm_util.h index 88abdca89baa..e3200980d3f3 100644 --- a/include/drm/drm_util.h +++ b/include/drm/drm_util.h @@ -26,7 +26,20 @@ #ifndef _DRM_UTIL_H_ #define _DRM_UTIL_H_ +#include +#include +#include +#include + /* helper for handling conditionals in various for_each macros */ #define for_each_if(condition) if (!(condition)) {} else +/* returns true if currently okay to sleep */ +static inline bool drm_can_sleep(void) +{ + if (in_atomic() || in_dbg_master() || irqs_disabled()) + return false; + return true; +} + #endif From patchwork Wed Dec 26 21:03:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10743295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3D08A6C2 for ; Wed, 26 Dec 2018 21:04:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DEDC286D4 for ; Wed, 26 Dec 2018 21:04:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2259F28701; Wed, 26 Dec 2018 21:04:46 +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=-3.7 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,URIBL_RHS_DOB 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 98B2C286D4 for ; Wed, 26 Dec 2018 21:04:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8CCA56E0BA; Wed, 26 Dec 2018 21:04:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id D8AAA6E0BA for ; Wed, 26 Dec 2018 21:04:40 +0000 (UTC) Received: by mail-lj1-x242.google.com with SMTP id s5-v6so14683117ljd.12 for ; Wed, 26 Dec 2018 13:04:40 -0800 (PST) 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 :in-reply-to:references; bh=NRozyeLiWHpg/hx5SA4kgSLG5KuwqMNqVkRPL1Epp5c=; b=FHgyOfw14vj/S28TIBHRtuN7y1KZqHte311rYjOiiehDrIddij9OYxmZ4aBMdYq7/x W6l/MCUXZeFK41e1gj+WOIwarc12jxMvYfaDkRl9SYH5dJbjCCS7TyHkJkqXsQhdxGfN hxPM+EzVig+RUa3SIDx59V6oDC/4rgKIZ+2Aw4J/smcGligNwY16rnHIU0vz5ftuumNm cINNIDZyG6W269/kWxUYRdxeB3nOVoG1kze+yVlgwLfsCvXCEAtPta+t/akLB89yKO8Q MMkbW+7iLrOPCVzgLbX2WqULk9Bk5Wv6Zugwe7ihTEKtLTfUS/4sNDstY+JBCt2XsSiw VcLA== X-Gm-Message-State: AA+aEWaig3j3Q5qWMGKUuZrB7BS/xJ7pJIML5FYgeJ9VYGCBftlXZElm q0V2VsKMJFw+BDidgFCnCK4= X-Google-Smtp-Source: AFSGD/VC69C34X3ccV1MIOiiBWM+M3UK4GmcJ62tGLrx20s9n+6vx3QTUbFMrCyLGxnhMUHrSb8rlw== X-Received: by 2002:a2e:5654:: with SMTP id k81-v6mr11762622ljb.48.1545858279261; Wed, 26 Dec 2018 13:04:39 -0800 (PST) Received: from jupiter.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id g70-v6sm7768124ljg.92.2018.12.26.13.04.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Dec 2018 13:04:38 -0800 (PST) From: Sam Ravnborg To: Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Sean Paul , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v1 4/7] drm: remove include of drmP.h from bridge/dw_hdmi.h Date: Wed, 26 Dec 2018 22:03:50 +0100 Message-Id: <20181226210353.13993-4-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20181226210215.GA27610@ravnborg.org> References: <20181226210215.GA27610@ravnborg.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Kieran Bingham , Laurent Pinchart , Fabio Estevam , Sam Ravnborg MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add missing includes in dw_hdmi.h and fix fallout in drivers. Signed-off-by: Sam Ravnborg Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: David Airlie Cc: Daniel Vetter Cc: Kieran Bingham Cc: Fabio Estevam Cc: Neil Armstrong Cc: Maxime Ripard Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 4 ++++ drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c | 1 + include/drm/bridge/dw_hdmi.h | 5 ++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c index 8f9c8a6b46de..c61ec4caaa84 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c @@ -8,6 +8,10 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ + +#include +#include + #include #include diff --git a/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c b/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c index 75490a3e0a2a..f5b07a2e3f59 100644 --- a/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c +++ b/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c @@ -8,6 +8,7 @@ */ #include +#include #include #include diff --git a/include/drm/bridge/dw_hdmi.h b/include/drm/bridge/dw_hdmi.h index ccb5aa8468e0..b0218ee75a65 100644 --- a/include/drm/bridge/dw_hdmi.h +++ b/include/drm/bridge/dw_hdmi.h @@ -10,7 +10,10 @@ #ifndef __DW_HDMI__ #define __DW_HDMI__ -#include +#include + +#include +#include struct dw_hdmi; From patchwork Wed Dec 26 21:03:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10743297 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C042C6C2 for ; Wed, 26 Dec 2018 21:04:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1BA9286D4 for ; Wed, 26 Dec 2018 21:04:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A686228701; Wed, 26 Dec 2018 21:04:48 +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=-3.7 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,URIBL_RHS_DOB 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 66FCF286D4 for ; Wed, 26 Dec 2018 21:04:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 09A3C6E102; Wed, 26 Dec 2018 21:04:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by gabe.freedesktop.org (Postfix) with ESMTPS id A80066E102 for ; Wed, 26 Dec 2018 21:04:41 +0000 (UTC) Received: by mail-lf1-x141.google.com with SMTP id b20so11495018lfa.12 for ; Wed, 26 Dec 2018 13:04:41 -0800 (PST) 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 :in-reply-to:references; bh=VdeDdyogVLBFon8h3UNQyuscXKoXRi/BGyhqSDbu6NQ=; b=slk51UN5Qu8QynGKUJu1spygpsnTCZoSAe9ifBNUH8gt/JpqQq4V0nN2LzzI6eYSip 3C0Uzj9Apl52V7Emq6M+aZqwtq7X5OLst3JRO3uJWC9OoBqEbLv5fe3zDSjMwrthtcWV Dc7a9bAO8ybeiU/6jOrcsPgiykp1ugBQGCb29+0AUdNPvO0g92Mh/mDDiGwFNqy2EJDx dGTC8Qhbinx4rlHtt6Le44P4m2w6digdmFPYqpWtwg41G11LXE51WapHh/Pwf7P8OllI voGli/ISm7hY1ovdIxwrnTzk39TeGZZSmyXPfxp5DIf1k7Hfg1tlew4nLfaRYFcYKsWa k64g== X-Gm-Message-State: AA+aEWbGr70Wvnwo84TWsnU3JXWWmvgwL7tJ3xDeSL4XeW2JN0kWmWZQ phGobfR7LKcFAkJq5eb65KQ= X-Google-Smtp-Source: AFSGD/Uok1jRpIBLuRQYsNiCvC1/7Uy90f9ghNbNvyrmqROb9+zPzQVZu8GieUZIv2vernj0rn2C+Q== X-Received: by 2002:a19:980f:: with SMTP id a15mr11334427lfe.103.1545858280122; Wed, 26 Dec 2018 13:04:40 -0800 (PST) Received: from jupiter.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id g70-v6sm7768124ljg.92.2018.12.26.13.04.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Dec 2018 13:04:39 -0800 (PST) From: Sam Ravnborg To: Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Sean Paul , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v1 5/7] drm: remove include of drmP.h from drm_encoder_slave.h Date: Wed, 26 Dec 2018 22:03:51 +0100 Message-Id: <20181226210353.13993-5-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20181226210215.GA27610@ravnborg.org> References: <20181226210215.GA27610@ravnborg.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sam Ravnborg MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP No further changes required. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- include/drm/drm_encoder_slave.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/drm/drm_encoder_slave.h b/include/drm/drm_encoder_slave.h index 1107b4b1c599..a09864f6d684 100644 --- a/include/drm/drm_encoder_slave.h +++ b/include/drm/drm_encoder_slave.h @@ -27,7 +27,6 @@ #ifndef __DRM_ENCODER_SLAVE_H__ #define __DRM_ENCODER_SLAVE_H__ -#include #include #include From patchwork Wed Dec 26 21:03:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10743303 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A82DB6C2 for ; Wed, 26 Dec 2018 21:04:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99130286D4 for ; Wed, 26 Dec 2018 21:04:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CAA228701; Wed, 26 Dec 2018 21:04:53 +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=-3.7 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,URIBL_RHS_DOB 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 16BF8286D4 for ; Wed, 26 Dec 2018 21:04:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 436986E106; Wed, 26 Dec 2018 21:04:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by gabe.freedesktop.org (Postfix) with ESMTPS id B62BF6E0BA for ; Wed, 26 Dec 2018 21:04:42 +0000 (UTC) Received: by mail-lf1-x142.google.com with SMTP id y11so11505996lfj.4 for ; Wed, 26 Dec 2018 13:04:42 -0800 (PST) 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 :in-reply-to:references; bh=zCdfpeU411KjlCS3g69cDsngrFR+hB9MgDrYPgqXhW8=; b=NjOaljQE0DF/6c9cWfXs9A4lrdf5jcZvfM8/dK3gVMmydYc8kFH8xfd5byuuyaumZ2 Grhj6pHq0JDPW4UOsr7SgSxzDyW0pWrcZhGD5c1KQPaGkj1QCzIO71Q9K9U1cdNQGTQL HUQ26dXEONkYykCroOmhgek4WLre5wwPkPF6a0Qjim18D+2n+xyZ6HvwBWWHTRbXneGb FSGEndN6xjoFhUJRPRKKeb1g4FDwP3eVyFEktYPNB69KRJsO2+JATs1IXT86xu/0VyBz qVfEERa1Yen6/J63RnrMwJqP/mtsZOBORfsbyZ77nRLtB79tX+ap5K0zFOibxt7Kmlgu kF8Q== X-Gm-Message-State: AA+aEWZzmnDHNMfP9HNMqxOc511MNfALExDUAPV4zMTdgVqOAodwsDEQ 0XoU+hTmbgT+9vQi/AzG2Ps= X-Google-Smtp-Source: AFSGD/VT1rsxLK6o7jZ01T070jfHR82iXEmXTEqDJQ+yYFWnParLcJiw2kpyTTtLyH3XVOOtg7B2vg== X-Received: by 2002:a19:f204:: with SMTP id q4mr11291926lfh.133.1545858281126; Wed, 26 Dec 2018 13:04:41 -0800 (PST) Received: from jupiter.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id g70-v6sm7768124ljg.92.2018.12.26.13.04.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Dec 2018 13:04:40 -0800 (PST) From: Sam Ravnborg To: Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Sean Paul , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v1 6/7] drm: remove include of drmP.h from drm_modeset_helper.h Date: Wed, 26 Dec 2018 22:03:52 +0100 Message-Id: <20181226210353.13993-6-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20181226210215.GA27610@ravnborg.org> References: <20181226210215.GA27610@ravnborg.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Brodkin , Kieran Bingham , Laurent Pinchart , Sam Ravnborg MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Fix fallout in various files/drivers by adding missing include files. Signed-off-by: Sam Ravnborg Cc: Alexey Brodkin Cc: David Airlie Cc: Daniel Vetter Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: Kieran Bingham Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/arc/arcpgu_sim.c | 1 + drivers/gpu/drm/bridge/cdns-dsi.c | 2 ++ drivers/gpu/drm/drm_modeset_helper.c | 2 ++ drivers/gpu/drm/rcar-du/rcar_lvds.c | 1 + include/drm/drm_modeset_helper.h | 2 -- 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/arc/arcpgu_sim.c b/drivers/gpu/drm/arc/arcpgu_sim.c index 68629e614990..3b7556f62230 100644 --- a/drivers/gpu/drm/arc/arcpgu_sim.c +++ b/drivers/gpu/drm/arc/arcpgu_sim.c @@ -14,6 +14,7 @@ * */ +#include #include #include diff --git a/drivers/gpu/drm/bridge/cdns-dsi.c b/drivers/gpu/drm/bridge/cdns-dsi.c index ce9496d13986..4b73d0969468 100644 --- a/drivers/gpu/drm/bridge/cdns-dsi.c +++ b/drivers/gpu/drm/bridge/cdns-dsi.c @@ -8,11 +8,13 @@ #include #include #include +#include #include #include #include