Skip to contentSkip to conversation

staging: drm/omap: fix missing include on omap_crtc

PATCH In review Enric Balletbo i Serra 2 participants 3 messages Nov 28, 2012 – Nov 29, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: drm/omap: fix missing include on omap_crtc

From: Enric Balletbo i Serra <[email protected]>

This fixes following error:

| ...
| CC [M]  drivers/staging/omapdrm/omap_crtc.o
| .../omapdrm/omap_crtc.c:22:22: fatal error: drm_mode.h: No such file or directory
| ...
---
 drivers/staging/omapdrm/omap_crtc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/omapdrm/omap_crtc.c +2 -2
index 732f2ad..1d54fe9 100644
@@ -17,9 +17,9 @@
  * this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "omap_drv.h"
+#include <drm/drm_mode.h>
 
-#include "drm_mode.h"
+#include "omap_drv.h"
 #include "drm_crtc.h"
 #include "drm_crtc_helper.h"
 
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 8 lines · Enric Balletbo i Serra

From: Enric Balletbo i Serra <[email protected]>

This fixes following error:

| ...
| CC [M]  drivers/staging/omapdrm/omap_crtc.o
| .../omapdrm/omap_crtc.c:22:22: fatal error: drm_mode.h: No such file or directory
| ...

fwiw, I have this patch in my local tree that is fixing the same issue:

https://patchwork.kernel.org/patch/1588461/

and I think I've seen at least one other patch for the same thing.. it would be nice to at least get one version of this fix in 3.7..

BR,
-R

Quoted 22 lines
---
  drivers/staging/omapdrm/omap_crtc.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/omapdrm/omap_crtc.c +2 -2
index 732f2ad..1d54fe9 100644
@@ -17,9 +17,9 @@
   * this program.  If not, see <http://www.gnu.org/licenses/>.
   */
 
-#include "omap_drv.h"
+#include <drm/drm_mode.h>
 
-#include "drm_mode.h"
+#include "omap_drv.h"
  #include "drm_crtc.h"
  #include "drm_crtc_helper.h"
 
#2 lore raw

Hi Rob,

2012/11/29 Rob Clark <[email protected]>:

Quoted 13 lines · Enric Balletbo i Serra
Quoted 10 lines

From: Enric Balletbo i Serra <[email protected]>

This fixes following error:

| ...
| CC [M]  drivers/staging/omapdrm/omap_crtc.o
| .../omapdrm/omap_crtc.c:22:22: fatal error: drm_mode.h: No such file or

directory
| ...

Quoted 4 lines

fwiw, I have this patch in my local tree that is fixing the same issue:

https://patchwork.kernel.org/patch/1588461/

Thanks, I didn't see this patch in linux-omap ML and others ML that I'm subscribed. Please skip this patch.

Quoted 4 lines

and I think I've seen at least one other patch for the same thing.. it
would be nice to at least get one version of this fix in 3.7..

Completely agree.

Best regards,
Enric

Quoted 27 lines

BR,
-R

Quoted 21 lines
---
  drivers/staging/omapdrm/omap_crtc.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/omapdrm/omap_crtc.c +2 -0
index 732f2ad..1d54fe9 100644
@@ -17,9 +17,9 @@
   * this program.  If not, see <http://www.gnu.org/licenses/>.
   */
  -#include "omap_drv.h"
+#include <drm/drm_mode.h>
  -#include "drm_mode.h"
+#include "omap_drv.h"
  #include "drm_crtc.h"
  #include "drm_crtc_helper.h"