Skip to contentSkip to conversation

checkpatch.pl "uninitialized value"

DISCUSSION Schrober 3 participants 5 messages Jan 14, 2013

lore
Share & tools
lore

Schrober

author
#0 lore raw

Hi,

it seems the current version of checkpatch.pl in linux-next ist broken. I get a lot of

Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3383. Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3386. Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3383. Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3386. Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3383. Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3386.

Signature · 1 line
Franz Schrober
#1 lore raw

Hi!

On Mon, 2013-01-14 at 14:42 +0100, Schrober wrote:
[...]

Quoted 9 lines

it seems the current version of checkpatch.pl in linux-next ist broken. I get a lot of

Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3383. Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3386. Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3383. Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3386. Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3383. Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3386.

on which file?
If you would have added the command line to trivially reproduce that (or whatever you did to get it), people are more likely to look into it.

MfG,
Bernd

Signature · 2 lines
Bernd Petrovitsch                  Email : [email protected]
                     LUGA : http://www.luga.at
#2 lore raw
Quoted 8 lines · Bernd Petrovitsch

On Mon, 2013-01-14 at 14:42 +0100, Schrober wrote:
[...]

Quoted 4 lines

it seems the current version of checkpatch.pl in linux-next ist broken. I get a lot of

Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3383.

on which file?

Any file with a usleep_range or a memset

Quoted 2 lines

If you would have added the command line to trivially reproduce that (or whatever you did to get it), people are more likely to look into it.

Try this patch:
https://lkml.org/lkml/2013/1/10/444

author
#4 lore raw
In reply to Bernd Petrovitsch
Quoted 3 lines · On Monday 14 January 2013 14:45:06 Bernd Petrovitsch wrote:

on which file?
If you would have added the command line to trivially reproduce that (or whatever you did to get it), people are more likely to look into it.

All input I've tried. So I thought it is not relevant here. But of course, here is a simple example:

./scripts/checkpatch.pl -f lib/decompress_bunzip2.c

Signature · 1 line
Franz Schrober
author
#3 lore raw
In reply to Joe Perches
Quoted 11 lines · On Monday 14 January 2013 05:50:12 Joe Perches wrote:
Quoted 9 lines · Bernd Petrovitsch

On Mon, 2013-01-14 at 14:42 +0100, Schrober wrote:
[...]

Quoted 5 lines

it seems the current version of checkpatch.pl in linux-next ist broken. I get a lot of

Use of uninitialized value $ms_size in pattern match (m//) at ./scripts/checkpatch.pl line 3383.>

on which file?

Quoted 7 lines

Any file with a usleep_range or a memset

Quoted 2 lines

If you would have added the command line to trivially reproduce that (or whatever you did to get it), people are more likely to look into it.

Try this patch:
https://lkml.org/lkml/2013/1/10/444

Yes, it works. Thanks

Signature · 1 line
Franz Schrober