summaryrefslogtreecommitdiffstats
path: root/include/uapi/sound/emu10k1.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-12-30 22:27:42 +0100
committerTakashi Iwai <tiwai@suse.de>2019-12-30 22:28:59 +0100
commitd06ed0c20960f124642ce77cd80056a35ffebe55 (patch)
treee3712e31dafb87598ea2a926c5d7de0f5d00dab1 /include/uapi/sound/emu10k1.h
parent7d8d3c377cc9731c3924f807c7769177ca3f0865 (diff)
ALSA: uapi: Add linux/types.h include back (but carefully)
A few uapi/sound/*.h headers have been corrected for recovering from the compile errors with the existing user-space code (alsa-lib) by the recent commits. OTOH, these introduced another regression, as now linux/types.h inclusion became mandatory for the uapi header checks. As a compromise, this patch re-adds linux/types.h inclusions again, but conditionally not to break other non-standard user-space stuff again. Fixes: 2e4688676392 ("ALSA: emu10k1: Make uapi/emu10k1.h compilable again") Fixes: d63e63d42107 ("ALSA: hdsp: Make uapi/hdsp.h compilable again") Fixes: 4fa406caf950 ("ALSA: hdspm: Drop linux/types.h inclusion in uapi header") Reported-by: kbuild test robot <lkp@intel.com> Link: https://lore.kernel.org/r/20191230212742.28925-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/uapi/sound/emu10k1.h')
-rw-r--r--include/uapi/sound/emu10k1.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/sound/emu10k1.h b/include/uapi/sound/emu10k1.h
index 6bcd76f64c1c..88609cc0524c 100644
--- a/include/uapi/sound/emu10k1.h
+++ b/include/uapi/sound/emu10k1.h
@@ -23,6 +23,10 @@
#ifndef _UAPI__SOUND_EMU10K1_H
#define _UAPI__SOUND_EMU10K1_H
+#ifdef __linux__
+#include <linux/types.h>
+#endif
+
/*
* ---- FX8010 ----
*/