Skip to contentSkip to conversation

2.6.8 htmldocs target fails with id already defined. <asm/uaccess.h>

PATCH New Enrique Perez-Terron 1 participant 1 message Nov 2, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6.8 htmldocs target fails with id already defined. <asm/uaccess.h>

The DocBook markup in source comments is misplaced in include/asm-i386/uaccess.h, with the description of macro strlen-user() just above the definition of direct_strncpy_from_user().

This leads the "make htmldocs" commands to generate the following error messages:

jade:/var/linux/Documentation/DocBook/kernel-api.sgml:6698:27:E: ID "API-DIRECT-STRNCPY-FROM-USER" already defined jade:/var/linux/Documentation/DocBook/kernel-api.sgml:6556:27: ID "API-DIRECT-STRNCPY-FROM-USER" first defined here

where the "first defined here" instance produces a documentation that gives the description of strlen_user() under the header of direct_strncpy_from_user(). The second instance is the correct one.

Regards,
Enrique Perez-Terron

asm-i386/uaccess.h renamed from asm-i386/uaccess.h~ +15 -15
@@ -549,21 +549,6 @@
 long strncpy_from_user(char *dst, const char __user *src, long count);
 long __strncpy_from_user(char *dst, const char __user *src, long count);
 
-/**
- * strlen_user: - Get the size of a string in user space.
- * @str: The string to measure.
- *
- * Context: User context only.  This function may sleep.
- *
- * Get the size of a NUL-terminated string in user space.
- *
- * Returns the size of the string INCLUDING the terminating NUL.
- * On exception, returns 0.
- *
- * If there is a limit on the length of a valid string, you may wish to
- * consider using strnlen_user() instead.
- */
-
 long direct_strncpy_from_user(char *dst, const char *src, long count);
 long __direct_strncpy_from_user(char *dst, const char *src, long count);
 #define direct_strlen_user(str) direct_strnlen_user(str, ~0UL >> 1)
@@ -604,6 +589,21 @@
 #define get_user(val,ptr) indirect_get_user(val,ptr)
 #define __put_user(val,ptr) __indirect_put_user(val,ptr)
 #define put_user(val,ptr) indirect_put_user(val,ptr)
+/**
+ * strlen_user: - Get the size of a string in user space.
+ * @str: The string to measure.
+ *
+ * Context: User context only.  This function may sleep.
+ *
+ * Get the size of a NUL-terminated string in user space.
+ *
+ * Returns the size of the string INCLUDING the terminating NUL.
+ * On exception, returns 0.
+ *
+ * If there is a limit on the length of a valid string, you may wish to
+ * consider using strnlen_user() instead.
+ */
+
 #define strlen_user(str) indirect_strlen_user(str)
 #define strnlen_user(src,count) indirect_strnlen_user(src,count)
 #define strncpy_from_user(dst,src,count) \