lkml.org 
[lkml]   [2004]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[Patch]2.6.8 htmldocs target fails with id already defined. <asm/uaccess.h>
From
Date
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

--- include/asm-i386/uaccess.h~ 2004-08-16 14:58:44.000000000 +0200
+++ include/asm-i386/uaccess.h 2004-11-01 10:21:05.000000000 +0100
@@ -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) \

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.023 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site