* [PATCH -next] mm/page_reporting: change page_reporting_param_ops to static
@ 2022-11-01 7:00 Yang Yingliang
2022-11-02 15:48 ` Wei Liu
0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2022-11-01 7:00 UTC (permalink / raw)
To: linux-mm; +Cc: shradhagupta, mikelley, akpm, wei.liu, yangyingliang
page_reporting_param_ops is only used in page_reporting.c now,
change it to static.
Fixes: 443063e483e3 ("mm/page_reporting: Add checks for page_reporting_order param")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
mm/page_reporting.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/page_reporting.c b/mm/page_reporting.c
index 29d67c824fd2..6a8cb3b1ae1b 100644
--- a/mm/page_reporting.c
+++ b/mm/page_reporting.c
@@ -23,7 +23,7 @@ int page_order_update_notify(const char *val, const struct kernel_param *kp)
return param_set_uint_minmax(val, kp, 0, MAX_ORDER-1);
}
-const struct kernel_param_ops page_reporting_param_ops = {
+static const struct kernel_param_ops page_reporting_param_ops = {
.set = &page_order_update_notify,
/*
* For the get op, use param_get_int instead of param_get_uint.
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] mm/page_reporting: change page_reporting_param_ops to static
2022-11-01 7:00 [PATCH -next] mm/page_reporting: change page_reporting_param_ops to static Yang Yingliang
@ 2022-11-02 15:48 ` Wei Liu
0 siblings, 0 replies; 2+ messages in thread
From: Wei Liu @ 2022-11-02 15:48 UTC (permalink / raw)
To: Yang Yingliang; +Cc: linux-mm, shradhagupta, mikelley, akpm, wei.liu
On Tue, Nov 01, 2022 at 03:00:22PM +0800, Yang Yingliang wrote:
> page_reporting_param_ops is only used in page_reporting.c now,
> change it to static.
>
> Fixes: 443063e483e3 ("mm/page_reporting: Add checks for page_reporting_order param")
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
This is already fixed in hyperv-next. Thanks.
> ---
> mm/page_reporting.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/page_reporting.c b/mm/page_reporting.c
> index 29d67c824fd2..6a8cb3b1ae1b 100644
> --- a/mm/page_reporting.c
> +++ b/mm/page_reporting.c
> @@ -23,7 +23,7 @@ int page_order_update_notify(const char *val, const struct kernel_param *kp)
> return param_set_uint_minmax(val, kp, 0, MAX_ORDER-1);
> }
>
> -const struct kernel_param_ops page_reporting_param_ops = {
> +static const struct kernel_param_ops page_reporting_param_ops = {
> .set = &page_order_update_notify,
> /*
> * For the get op, use param_get_int instead of param_get_uint.
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-02 15:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-01 7:00 [PATCH -next] mm/page_reporting: change page_reporting_param_ops to static Yang Yingliang
2022-11-02 15:48 ` Wei Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.