[alsa-devel] [PATCH] include/uapi/sound/firewire.h: use "_UAPI" instead of "UAPI"
When installing, "scripts/headers_install.sh" will strip guard macro' "_UAPI" to prevent from appearing it to users. And also, all another files which need uapi prefix always use "_UAPI", not "UAPI".
So use "_UAPI" instead of "UAPI" on the guard macro, and also give a comment for "#endif".
Signed-off-by: Chen Gang gang.chen@asianux.com --- include/uapi/sound/firewire.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/uapi/sound/firewire.h b/include/uapi/sound/firewire.h index e86131c..59f5961 100644 --- a/include/uapi/sound/firewire.h +++ b/include/uapi/sound/firewire.h @@ -1,5 +1,5 @@ -#ifndef UAPI_SOUND_FIREWIRE_H_INCLUDED -#define UAPI_SOUND_FIREWIRE_H_INCLUDED +#ifndef _UAPI_SOUND_FIREWIRE_H_INCLUDED +#define _UAPI_SOUND_FIREWIRE_H_INCLUDED
#include <linux/ioctl.h>
@@ -48,4 +48,4 @@ struct snd_firewire_get_info { * Returns -EBUSY if the driver is already streaming. */
-#endif +#endif /* _UAPI_SOUND_FIREWIRE_H_INCLUDED */
Chen Gang wrote:
When installing, "scripts/headers_install.sh" will strip guard macro' "_UAPI" to prevent from appearing it to users. And also, all another files which need uapi prefix always use "_UAPI", not "UAPI".
So use "_UAPI" instead of "UAPI" on the guard macro, and also give a comment for "#endif".
Signed-off-by: Chen Gang gang.chen@asianux.com
Acked-by: Clemens Ladisch clemens@ladisch.de
include/uapi/sound/firewire.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/uapi/sound/firewire.h b/include/uapi/sound/firewire.h index e86131c..59f5961 100644 --- a/include/uapi/sound/firewire.h +++ b/include/uapi/sound/firewire.h @@ -1,5 +1,5 @@ -#ifndef UAPI_SOUND_FIREWIRE_H_INCLUDED -#define UAPI_SOUND_FIREWIRE_H_INCLUDED +#ifndef _UAPI_SOUND_FIREWIRE_H_INCLUDED +#define _UAPI_SOUND_FIREWIRE_H_INCLUDED
#include <linux/ioctl.h>
@@ -48,4 +48,4 @@ struct snd_firewire_get_info {
- Returns -EBUSY if the driver is already streaming.
*/
-#endif +#endif /* _UAPI_SOUND_FIREWIRE_H_INCLUDED */
On 11/07/2013 03:54 PM, Clemens Ladisch wrote:
Chen Gang wrote:
When installing, "scripts/headers_install.sh" will strip guard macro' "_UAPI" to prevent from appearing it to users. And also, all another files which need uapi prefix always use "_UAPI", not "UAPI".
So use "_UAPI" instead of "UAPI" on the guard macro, and also give a comment for "#endif".
Signed-off-by: Chen Gang gang.chen@asianux.com
Acked-by: Clemens Ladisch clemens@ladisch.de
Thank you very much !!
At Thu, 07 Nov 2013 11:14:29 +0800, Chen Gang wrote:
When installing, "scripts/headers_install.sh" will strip guard macro' "_UAPI" to prevent from appearing it to users. And also, all another files which need uapi prefix always use "_UAPI", not "UAPI".
So use "_UAPI" instead of "UAPI" on the guard macro, and also give a comment for "#endif".
Signed-off-by: Chen Gang gang.chen@asianux.com
Thanks, applied.
Takashi
include/uapi/sound/firewire.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/uapi/sound/firewire.h b/include/uapi/sound/firewire.h index e86131c..59f5961 100644 --- a/include/uapi/sound/firewire.h +++ b/include/uapi/sound/firewire.h @@ -1,5 +1,5 @@ -#ifndef UAPI_SOUND_FIREWIRE_H_INCLUDED -#define UAPI_SOUND_FIREWIRE_H_INCLUDED +#ifndef _UAPI_SOUND_FIREWIRE_H_INCLUDED +#define _UAPI_SOUND_FIREWIRE_H_INCLUDED
#include <linux/ioctl.h>
@@ -48,4 +48,4 @@ struct snd_firewire_get_info {
- Returns -EBUSY if the driver is already streaming.
*/
-#endif
+#endif /* _UAPI_SOUND_FIREWIRE_H_INCLUDED */
1.7.7.6
On 11/07/2013 05:29 PM, Takashi Iwai wrote:
At Thu, 07 Nov 2013 11:14:29 +0800, Chen Gang wrote:
When installing, "scripts/headers_install.sh" will strip guard macro' "_UAPI" to prevent from appearing it to users. And also, all another files which need uapi prefix always use "_UAPI", not "UAPI".
So use "_UAPI" instead of "UAPI" on the guard macro, and also give a comment for "#endif".
Signed-off-by: Chen Gang gang.chen@asianux.com
Thanks, applied.
Thank you very much !!
participants (3)
-
Chen Gang
-
Clemens Ladisch
-
Takashi Iwai