ALSA: uapi: Add linux/types.h include back (but carefully)
PATCH 1/1 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 <[email protected]>
Signed-off-by Takashi Iwai <[email protected]>
--- include/uapi/sound/emu10k1.h | 4 ++++ include/uapi/sound/hdsp.h | 4 ++++ include/uapi/sound/hdspm.h | 4 ++++ 3 files changed, 12 insertions(+)
include/uapi/sound/emu10k1.h +4 -0
@@ -23,6 +23,10 @@#ifndef _UAPI__SOUND_EMU10K1_H#define _UAPI__SOUND_EMU10K1_H +#ifdef __linux__ +#include <linux/types.h> +#endif +/* * ---- FX8010 ---- */
include/uapi/sound/hdsp.h +4 -0
@@ -20,6 +20,10 @@* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef __linux__ +#include <linux/types.h> +#endif +#define HDSP_MATRIX_MIXER_SIZE 2048enum HDSP_IO_Type {
include/uapi/sound/hdspm.h +4 -0
@@ -21,6 +21,10 @@* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef __linux__ +#include <linux/types.h> +#endif +/* Maximum channels is 64 even on 56Mode you have 64playbacks to matrix */ #define HDSPM_MAX_CHANNELS 64
Signature · 6 lines
2.16.4 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel