public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: linux-kernel@vger.kernel.org
Cc: Andy Whitcroft <apw@canonical.com>, Joe Perches <joe@perches.com>
Subject: checkpatch.pl error: Use of uninitialized value $max (line 3407,3410)
Date: Thu, 10 Jan 2013 11:18:07 -0800	[thread overview]
Message-ID: <20130110191807.GA15621@roeck-us.net> (raw)

Hi all,

I get the following error when running checkpatch.pl:

scripts/checkpatch.pl -f drivers/hwmon/da9055-hwmon.c
Use of uninitialized value $max in string eq at scripts/checkpatch.pl line 3407.
Use of uninitialized value $max in pattern match (m//) at scripts/checkpatch.pl line 3410.
total: 0 errors, 0 warnings, 336 lines checked

drivers/hwmon/da9055-hwmon.c has no obvious style problems and is ready for
submission.

The checkpatch code creating the error was introduced with commit 4a273195
(checkpatch: check usleep_range() arguments).

Is this a but in checkpatch, or is something wrong in my environment ?

Thanks,
Guenter

             reply	other threads:[~2013-01-10 19:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-10 19:18 Guenter Roeck [this message]
2013-01-10 19:45 ` checkpatch.pl error: Use of uninitialized value $max (line 3407,3410) Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130110191807.GA15621@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=apw@canonical.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox