Skip to content

Commit 45b500c

Browse files
committed
dcp: Allow unused trampolines
Signed-off-by: Hector Martin <[email protected]>
1 parent 5267569 commit 45b500c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/gpu/drm/apple/iomfb_internal.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ typedef void (*dcp_callback_t)(struct apple_dcp *, void *, void *);
5757
*/
5858

5959
#define TRAMPOLINE_VOID(func, handler) \
60-
static bool func(struct apple_dcp *dcp, int tag, void *out, void *in) \
60+
static bool __maybe_unused func(struct apple_dcp *dcp, int tag, void *out, void *in) \
6161
{ \
6262
trace_iomfb_callback(dcp, tag, #handler); \
6363
handler(dcp); \
@@ -67,7 +67,7 @@ typedef void (*dcp_callback_t)(struct apple_dcp *, void *, void *);
6767
#define TRAMPOLINE_IN(func, handler, T_in) \
6868
typedef void (*callback_##handler)(struct apple_dcp *, T_in *); \
6969
\
70-
static bool func(struct apple_dcp *dcp, int tag, void *out, void *in) \
70+
static bool __maybe_unused func(struct apple_dcp *dcp, int tag, void *out, void *in) \
7171
{ \
7272
callback_##handler cb = handler; \
7373
\
@@ -79,7 +79,7 @@ typedef void (*dcp_callback_t)(struct apple_dcp *, void *, void *);
7979
#define TRAMPOLINE_INOUT(func, handler, T_in, T_out) \
8080
typedef T_out (*callback_##handler)(struct apple_dcp *, T_in *); \
8181
\
82-
static bool func(struct apple_dcp *dcp, int tag, void *out, void *in) \
82+
static bool __maybe_unused func(struct apple_dcp *dcp, int tag, void *out, void *in) \
8383
{ \
8484
T_out *typed_out = out; \
8585
callback_##handler cb = handler; \
@@ -90,7 +90,7 @@ typedef void (*dcp_callback_t)(struct apple_dcp *, void *, void *);
9090
}
9191

9292
#define TRAMPOLINE_OUT(func, handler, T_out) \
93-
static bool func(struct apple_dcp *dcp, int tag, void *out, void *in) \
93+
static bool __maybe_unused func(struct apple_dcp *dcp, int tag, void *out, void *in) \
9494
{ \
9595
T_out *typed_out = out; \
9696
\

0 commit comments

Comments
 (0)