2002-07-23 19:04:05

by Sam Ravnborg

[permalink] [raw]
Subject: DocBook - kernel-doc error messages

While cleaning up the DocBook makefile I have seen the following errormessage
as produced by scripts/kernel-doc:

Use of uninitialized value in string ne at scripts/kernel-doc line 641, <IN> line 247.
Use of uninitialized value in string ne at scripts/kernel-doc line 661, <IN> line 247.
Use of uninitialized value in join or string at scripts/kernel-doc line 363, <IN> line 247.

Any brave perl guru that is able to hack kernel-doc to at least provide
a filename, to give a hint where to search?
Obviously a better approach would be to fix this error in kernel-doc.

The above output can be reproduced by the following command:

src/linux$ scripts/kernel-doc -docbook include/linux/skbuff.h > x

Sam


2002-07-24 08:12:16

by Thunder from the hill

[permalink] [raw]
Subject: Re: DocBook - kernel-doc error messages

Hi,

On Tue, 23 Jul 2002, Sam Ravnborg wrote:
> Use of uninitialized value in string ne at scripts/kernel-doc line 641, <IN> line 247.
> Use of uninitialized value in string ne at scripts/kernel-doc line 661, <IN> line 247.
> Use of uninitialized value in join or string at scripts/kernel-doc line 363, <IN> line 247.

This one fixes it for me:

--- linus-2.5/scripts/kernel-doc 2002-07-16 10:02:12.000000000 -0600
+++ thunder-2.5/scripts/kernel-doc 2002-07-24 02:13:54.000000000 -0600
@@ -638,6 +638,7 @@
print " <programlisting>\n";
print $args{'type'}." ".$args{'struct'}." {\n";
foreach $parameter (@{$args{'parameterlist'}}) {
+ defined($args{'parameterdescs'}{$parameter}) || next;
($args{'parameterdescs'}{$parameter} ne $undescribed) || next;
$type = $args{'parametertypes'}{$parameter};
if ($type =~ m/([^\(]*\(\*)\s*\)\s*\(([^\)]*)\)/) {
@@ -658,6 +659,7 @@

print " <variablelist>\n";
foreach $parameter (@{$args{'parameterlist'}}) {
+ defined($args{'parameterdescs'}{$parameter}) || next;
($args{'parameterdescs'}{$parameter} ne $undescribed) || next;
print " <varlistentry>";
print " <term>$parameter</term>\n";

Regards,
Thunder
--
(Use http://www.ebb.org/ungeek if you can't decode)
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GCS/E/G/S/AT d- s++:-- a? C++$ ULAVHI++++$ P++$ L++++(+++++)$ E W-$
N--- o? K? w-- O- M V$ PS+ PE- Y- PGP+ t+ 5+ X+ R- !tv b++ DI? !D G
e++++ h* r--- y-
------END GEEK CODE BLOCK------