* [PATCH] ACPI: EC: fix error "do not initialise statics to false"
@ 2021-11-03 5:51 wangzhitong
2021-11-03 18:18 ` Rafael J. Wysocki
0 siblings, 1 reply; 3+ messages in thread
From: wangzhitong @ 2021-11-03 5:51 UTC (permalink / raw)
To: rjw, lenb, linux-acpi, linux-kernel; +Cc: wangzhitong
this patch fixes below Errors reported by checkpatch
ERROR: do not initialise statics to false
+static bool ec_freeze_events __read_mostly = false;
ERROR: do not initialise statics to false
+static bool boot_ec_is_ecdt = false;
Signed-off-by: wangzhitong <wangzhitong@uniontech.com>
---
drivers/acpi/ec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index 04ce2b96c3da..1255649a4da9 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -133,7 +133,7 @@ static unsigned int ec_storm_threshold __read_mostly = 8;
module_param(ec_storm_threshold, uint, 0644);
MODULE_PARM_DESC(ec_storm_threshold, "Maxim false GPE numbers not considered as GPE storm");
-static bool ec_freeze_events __read_mostly = false;
+static bool ec_freeze_events __read_mostly;
module_param(ec_freeze_events, bool, 0644);
MODULE_PARM_DESC(ec_freeze_events, "Disabling event handling during suspend/resume");
@@ -177,7 +177,7 @@ struct acpi_ec *first_ec;
EXPORT_SYMBOL(first_ec);
static struct acpi_ec *boot_ec;
-static bool boot_ec_is_ecdt = false;
+static bool boot_ec_is_ecdt;
static struct workqueue_struct *ec_wq;
static struct workqueue_struct *ec_query_wq;
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ACPI: EC: fix error "do not initialise statics to false"
2021-11-03 5:51 [PATCH] ACPI: EC: fix error "do not initialise statics to false" wangzhitong
@ 2021-11-03 18:18 ` Rafael J. Wysocki
[not found] ` <tencent_5EE3079906D3D5211516C198@qq.com>
0 siblings, 1 reply; 3+ messages in thread
From: Rafael J. Wysocki @ 2021-11-03 18:18 UTC (permalink / raw)
To: wangzhitong
Cc: Rafael J. Wysocki, Len Brown, ACPI Devel Maling List,
Linux Kernel Mailing List
On Wed, Nov 3, 2021 at 6:52 AM wangzhitong <wangzhitong@uniontech.com> wrote:
>
> this patch fixes below Errors reported by checkpatch
> ERROR: do not initialise statics to false
> +static bool ec_freeze_events __read_mostly = false;
> ERROR: do not initialise statics to false
> +static bool boot_ec_is_ecdt = false;
>
> Signed-off-by: wangzhitong <wangzhitong@uniontech.com>
> ---
> drivers/acpi/ec.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
> index 04ce2b96c3da..1255649a4da9 100644
> --- a/drivers/acpi/ec.c
> +++ b/drivers/acpi/ec.c
> @@ -133,7 +133,7 @@ static unsigned int ec_storm_threshold __read_mostly = 8;
> module_param(ec_storm_threshold, uint, 0644);
> MODULE_PARM_DESC(ec_storm_threshold, "Maxim false GPE numbers not considered as GPE storm");
>
> -static bool ec_freeze_events __read_mostly = false;
> +static bool ec_freeze_events __read_mostly;
> module_param(ec_freeze_events, bool, 0644);
> MODULE_PARM_DESC(ec_freeze_events, "Disabling event handling during suspend/resume");
>
> @@ -177,7 +177,7 @@ struct acpi_ec *first_ec;
> EXPORT_SYMBOL(first_ec);
>
> static struct acpi_ec *boot_ec;
> -static bool boot_ec_is_ecdt = false;
> +static bool boot_ec_is_ecdt;
> static struct workqueue_struct *ec_wq;
> static struct workqueue_struct *ec_query_wq;
>
> --
Applied as 5.16-rc material with rewritten changelog and subject, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ACPI: EC: fix error "do not initialise statics to false"
[not found] ` <tencent_5EE3079906D3D5211516C198@qq.com>
@ 2021-11-04 11:29 ` Rafael J. Wysocki
0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2021-11-04 11:29 UTC (permalink / raw)
To: 王志桐
Cc: Rafael J. Wysocki, Rafael J. Wysocki, Len Brown,
ACPI Devel Maling List, Linux Kernel Mailing List
On Thu, Nov 4, 2021 at 3:33 AM 王志桐 <wangzhitong@uniontech.com> wrote:
>
> hi Rafael J
>
> Thank you for your reply, Forgive me for my limited level 。
> I do't understand your means:
> "Applied as 5.16-rc material with rewritten changelog and subject, thanks!"
> Please help me , Please help guide , How do I need to modify my patch.
You don't need to change it, I've changed it myself.
Basically, I've retained the code changes, but I've modified the patch
subject and description.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-04 11:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03 5:51 [PATCH] ACPI: EC: fix error "do not initialise statics to false" wangzhitong
2021-11-03 18:18 ` Rafael J. Wysocki
[not found] ` <tencent_5EE3079906D3D5211516C198@qq.com>
2021-11-04 11:29 ` Rafael J. Wysocki
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).