Skip to content

Commit fc3be3e

Browse files
committed
gpu: host1x: Use relative include paths
This is slightly safer than adding -Idrivers/gpu/host1x to cflags-y. Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent 776dc38 commit fc3be3e

7 files changed

Lines changed: 24 additions & 26 deletions

File tree

‎drivers/gpu/host1x/Makefile‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
ccflags-y = -Idrivers/gpu/host1x
2-
31
host1x-y = \
42
bus.o \
53
syncpt.o \

‎drivers/gpu/host1x/hw/cdma_hw.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
#include <linux/scatterlist.h>
2121
#include <linux/dma-mapping.h>
2222

23-
#include "cdma.h"
24-
#include "channel.h"
25-
#include "dev.h"
26-
#include "debug.h"
23+
#include "../cdma.h"
24+
#include "../channel.h"
25+
#include "../dev.h"
26+
#include "../debug.h"
2727

2828
/*
2929
* Put the restart at the end of pushbuffer memor

‎drivers/gpu/host1x/hw/channel_hw.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121

2222
#include <trace/events/host1x.h>
2323

24-
#include "channel.h"
25-
#include "dev.h"
26-
#include "intr.h"
27-
#include "job.h"
24+
#include "../channel.h"
25+
#include "../dev.h"
26+
#include "../intr.h"
27+
#include "../job.h"
2828

2929
#define HOST1X_CHANNEL_SIZE 16384
3030
#define TRACE_MAX_LENGTH 128U

‎drivers/gpu/host1x/hw/debug_hw.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
*
1616
*/
1717

18-
#include "dev.h"
19-
#include "debug.h"
20-
#include "cdma.h"
21-
#include "channel.h"
18+
#include "../dev.h"
19+
#include "../debug.h"
20+
#include "../cdma.h"
21+
#include "../channel.h"
2222

2323
#define HOST1X_DEBUG_MAX_PAGE_OFFSET 102400
2424

‎drivers/gpu/host1x/hw/host1x01.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
*/
1818

1919
/* include hw specification */
20-
#include "hw/host1x01.h"
21-
#include "hw/host1x01_hardware.h"
20+
#include "host1x01.h"
21+
#include "host1x01_hardware.h"
2222

2323
/* include code */
24-
#include "hw/cdma_hw.c"
25-
#include "hw/channel_hw.c"
26-
#include "hw/debug_hw.c"
27-
#include "hw/intr_hw.c"
28-
#include "hw/syncpt_hw.c"
24+
#include "cdma_hw.c"
25+
#include "channel_hw.c"
26+
#include "debug_hw.c"
27+
#include "intr_hw.c"
28+
#include "syncpt_hw.c"
2929

30-
#include "dev.h"
30+
#include "../dev.h"
3131

3232
int host1x01_init(struct host1x *host)
3333
{

‎drivers/gpu/host1x/hw/intr_hw.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
#include <linux/io.h>
2323
#include <asm/mach/irq.h>
2424

25-
#include "intr.h"
26-
#include "dev.h"
25+
#include "../intr.h"
26+
#include "../dev.h"
2727

2828
/*
2929
* Sync point threshold interrupt service function

‎drivers/gpu/host1x/hw/syncpt_hw.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
#include <linux/io.h>
2020

21-
#include "dev.h"
22-
#include "syncpt.h"
21+
#include "../dev.h"
22+
#include "../syncpt.h"
2323

2424
/*
2525
* Write the current syncpoint value back to hw.

0 commit comments

Comments
 (0)