Skip to contentSkip to conversation

ALSA: core: Fix build error due to missing PAGE_SIZE

PATCH New Takashi Iwai 1 participant 1 message Jun 10, 2021 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: core: Fix build error due to missing PAGE_SIZE

The recent refactoring of memalloc stuff removed the inclusion of asm/page.h for simplicity, but it turned out this caused a compile error due the lack of PAGE_SIZE definition on some architectures. Do a partial revert for recovering from that.

Fixes 37af81c5998f ("ALSA: core: Abstract memory alloc helpers")
---
 include/sound/memalloc.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/sound/memalloc.h +2 -1
index 1918c60f1f35..44d87775b352 100644
@@ -9,8 +9,9 @@
 #ifndef __SOUND_MEMALLOC_H
 #define __SOUND_MEMALLOC_H
 
+#include <asm/page.h>
+
 struct device;
-struct page;
 struct vm_area_struct;
 
 /*
Signature · 1 line
2.26.2