Remove references to kernel macros.
The macros __force, __bitwise, __user are related to a kernel tool called
sparse to find kernel bugs. These macros are always defined as nothing
in the current uapi kernel header files, so these don't need to be here.
Test: Builds without warningers/errors.
Change-Id: I2c8d357f00e2ad9ba6606ca6dbb1ffd8bcaf92f1
diff --git a/libaudio/AudioHotplugThread.cpp b/libaudio/AudioHotplugThread.cpp
index 1a575b7..0dee061 100644
--- a/libaudio/AudioHotplugThread.cpp
+++ b/libaudio/AudioHotplugThread.cpp
@@ -25,15 +25,7 @@
#include <sys/inotify.h>
#include <sys/ioctl.h>
-// Bionic's copy of asound.h contains references to these kernel macros.
-// They need to be removed in order to include the file from userland.
-#define __force
-#define __bitwise
-#define __user
#include <sound/asound.h>
-#undef __force
-#undef __bitwise
-#undef __user
#include <utils/misc.h>
#include <utils/String8.h>