Skip to content

Commit eb36e4f

Browse files
ywafsynaptics-lspintzyk
authored andcommitted
fix asahi linux (apple silicone) compile error
1 parent 3dafd62 commit eb36e4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

module/evdi_painter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static void collapse_dirty_rects(struct drm_clip_rect *rects, int *count)
173173
*count = 1;
174174
}
175175

176-
#if KERNEL_VERSION(5, 18, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9)
176+
#if (KERNEL_VERSION(5, 18, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9)) && defined(CONFIG_X86)
177177
static int copy_primary_pixels_on_xe(struct evdi_framebuffer *efb,
178178
char __user *buffer,
179179
int buf_byte_stride,
@@ -218,7 +218,7 @@ static int copy_primary_pixels(struct evdi_framebuffer *efb,
218218

219219
EVDI_CHECKPT();
220220

221-
#if KERNEL_VERSION(5, 18, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9)
221+
#if (KERNEL_VERSION(5, 18, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9)) && defined(CONFIG_X86)
222222
if (efb->is_from_xe)
223223
return copy_primary_pixels_on_xe(efb, buffer, buf_byte_stride, max_x, max_y);
224224
#endif

0 commit comments

Comments
 (0)