* [PATCH] libata: do not initialise statics to 0 ERROR fix.
@ 2017-06-17 7:03 Minwoo Im
2017-06-19 17:38 ` Tejun Heo
0 siblings, 1 reply; 4+ messages in thread
From: Minwoo Im @ 2017-06-17 7:03 UTC (permalink / raw)
To: Tejun Heo; +Cc: linux-ide, Minwoo Im
ERROR: do not initialise statics to 0 in four lines in libata-core.c.
Signed-off-by: Minwoo Im <dn3108@gmail.com>
---
drivers/ata/libata-core.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 2191d23..8ed5bf3 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -135,7 +135,7 @@ struct ata_force_ent {
module_param(atapi_enabled, int, 0444);
MODULE_PARM_DESC(atapi_enabled, "Enable discovery of ATAPI devices (0=off, 1=on [default])");
-static int atapi_dmadir = 0;
+static int atapi_dmadir;
module_param(atapi_dmadir, int, 0444);
MODULE_PARM_DESC(atapi_dmadir, "Enable ATAPI DMADIR bridge support (0=off [default], 1=on)");
@@ -143,7 +143,7 @@ struct ata_force_ent {
module_param(atapi_passthru16, int, 0444);
MODULE_PARM_DESC(atapi_passthru16, "Enable ATA_16 passthru for ATAPI devices (0=off, 1=on [default])");
-int libata_fua = 0;
+int libata_fua;
module_param_named(fua, libata_fua, int, 0444);
MODULE_PARM_DESC(fua, "FUA support (0=off [default], 1=on)");
@@ -159,11 +159,11 @@ struct ata_force_ent {
module_param(ata_probe_timeout, int, 0444);
MODULE_PARM_DESC(ata_probe_timeout, "Set ATA probing timeout (seconds)");
-int libata_noacpi = 0;
+int libata_noacpi;
module_param_named(noacpi, libata_noacpi, int, 0444);
MODULE_PARM_DESC(noacpi, "Disable the use of ACPI in probe/suspend/resume (0=off [default], 1=on)");
-int libata_allow_tpm = 0;
+int libata_allow_tpm;
module_param_named(allow_tpm, libata_allow_tpm, int, 0444);
MODULE_PARM_DESC(allow_tpm, "Permit the use of TPM commands (0=off [default], 1=on)");
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] libata: do not initialise statics to 0 ERROR fix.
2017-06-17 7:03 [PATCH] libata: do not initialise statics to 0 ERROR fix Minwoo Im
@ 2017-06-19 17:38 ` Tejun Heo
2017-06-20 0:59 ` Minwoo Im
2017-06-20 1:03 ` Minwoo Im
0 siblings, 2 replies; 4+ messages in thread
From: Tejun Heo @ 2017-06-19 17:38 UTC (permalink / raw)
To: Minwoo Im; +Cc: linux-ide
Hello,
On Sat, Jun 17, 2017 at 04:03:04PM +0900, Minwoo Im wrote:
> ERROR: do not initialise statics to 0 in four lines in libata-core.c.
> Signed-off-by: Minwoo Im <dn3108@gmail.com>
I don't think there's much value in sweeping the code base with
checkpatch. We can fix them when changing code around them or there's
a meaningful gain from it (e.g. doc updates which improve doc
processing) but otherwise I think it's churns for churns' sake.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libata: do not initialise statics to 0 ERROR fix.
2017-06-19 17:38 ` Tejun Heo
@ 2017-06-20 0:59 ` Minwoo Im
2017-06-20 1:03 ` Minwoo Im
1 sibling, 0 replies; 4+ messages in thread
From: Minwoo Im @ 2017-06-20 0:59 UTC (permalink / raw)
To: dn3108; +Cc: linux-ide
On 6/20/17, Tejun Heo <tj@kernel.org> wrote:
> Hello,
>
> On Sat, Jun 17, 2017 at 04:03:04PM +0900, Minwoo Im wrote:
>> ERROR: do not initialise statics to 0 in four lines in libata-core.c.
>> Signed-off-by: Minwoo Im <dn3108@gmail.com>
>
> I don't think there's much value in sweeping the code base with
> checkpatch. We can fix them when changing code around them or there's
> a meaningful gain from it (e.g. doc updates which improve doc
> processing) but otherwise I think it's churns for churns' sake.
>
> Thanks.
>
> --
> tejun
good
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libata: do not initialise statics to 0 ERROR fix.
2017-06-19 17:38 ` Tejun Heo
2017-06-20 0:59 ` Minwoo Im
@ 2017-06-20 1:03 ` Minwoo Im
1 sibling, 0 replies; 4+ messages in thread
From: Minwoo Im @ 2017-06-20 1:03 UTC (permalink / raw)
To: Tejun Heo; +Cc: linux-ide
On 6/20/17, Tejun Heo <tj@kernel.org> wrote:
> Hello,
>
> On Sat, Jun 17, 2017 at 04:03:04PM +0900, Minwoo Im wrote:
>> ERROR: do not initialise statics to 0 in four lines in libata-core.c.
>> Signed-off-by: Minwoo Im <dn3108@gmail.com>
>
> I don't think there's much value in sweeping the code base with
> checkpatch. We can fix them when changing code around them or there's
> a meaningful gain from it (e.g. doc updates which improve doc
> processing) but otherwise I think it's churns for churns' sake.
>
> Thanks.
>
> --
> tejun
>
(resending in plain text to mail loop)
Hi Tejun,
I completely agree with your thought.
Thanks for giving your opinion.
Minwoo.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-06-20 1:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-17 7:03 [PATCH] libata: do not initialise statics to 0 ERROR fix Minwoo Im
2017-06-19 17:38 ` Tejun Heo
2017-06-20 0:59 ` Minwoo Im
2017-06-20 1:03 ` Minwoo Im
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).