From: Willy Wolff <willy.mh.wolff.ml@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] driver core: fix statics initilisation
Date: Fri, 12 Apr 2019 16:48:20 +0100 [thread overview]
Message-ID: <20190412154819.oiztq2uf4teuxewn@macpro-scc.lancs.ac.uk> (raw)
perl scripts/checkpatch.pl -f drivers/base/dd.c got red here:
ERROR: do not initialise statics to false
+static bool driver_deferred_probe_enable = false;
Signed-off-by: Willy Wolff <willy.mh.wolff.ml@gmail.com>
---
drivers/base/dd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index 1bc4557a0f49..38480a01d074 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -140,7 +140,7 @@ void driver_deferred_probe_del(struct device *dev)
mutex_unlock(&deferred_probe_mutex);
}
-static bool driver_deferred_probe_enable = false;
+static bool driver_deferred_probe_enable;
/**
* driver_deferred_probe_trigger() - Kick off re-probing deferred devices
*
--
2.11.0
next reply other threads:[~2019-04-12 15:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-12 15:48 Willy Wolff [this message]
2019-04-15 8:12 ` [PATCH 2/2] driver core: fix statics initilisation Rafael J. Wysocki
2019-04-15 15:29 ` Willy Wolff
2019-04-16 8:50 ` Rafael J. Wysocki
2019-04-16 11:34 ` Willy Wolff
2019-04-16 13:40 ` Greg Kroah-Hartman
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=20190412154819.oiztq2uf4teuxewn@macpro-scc.lancs.ac.uk \
--to=willy.mh.wolff.ml@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@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;
as well as URLs for NNTP newsgroup(s).