Skip to content

Commit d06ed0c

Browse files
committed
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: 2e46886 ("ALSA: emu10k1: Make uapi/emu10k1.h compilable again") Fixes: d63e63d ("ALSA: hdsp: Make uapi/hdsp.h compilable again") Fixes: 4fa406c ("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>
1 parent 7d8d3c3 commit d06ed0c

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎include/uapi/sound/emu10k1.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
#ifndef _UAPI__SOUND_EMU10K1_H
2424
#define _UAPI__SOUND_EMU10K1_H
2525

26+
#ifdef __linux__
27+
#include <linux/types.h>
28+
#endif
29+
2630
/*
2731
* ---- FX8010 ----
2832
*/

‎include/uapi/sound/hdsp.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2121
*/
2222

23+
#ifdef __linux__
24+
#include <linux/types.h>
25+
#endif
26+
2327
#define HDSP_MATRIX_MIXER_SIZE 2048
2428

2529
enum HDSP_IO_Type {

‎include/uapi/sound/hdspm.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2222
*/
2323

24+
#ifdef __linux__
25+
#include <linux/types.h>
26+
#endif
27+
2428
/* Maximum channels is 64 even on 56Mode you have 64playbacks to matrix */
2529
#define HDSPM_MAX_CHANNELS 64
2630

0 commit comments

Comments
 (0)