* Re: [PATCH 06/14] sysctl: Add size to register_sysctl
[not found] ` <ZMFexmOcfyORkRRs@bombadil.infradead.org>
@ 2023-07-27 12:22 ` Joel Granados
2023-07-27 15:42 ` Luis Chamberlain
0 siblings, 1 reply; 3+ messages in thread
From: Joel Granados @ 2023-07-27 12:22 UTC (permalink / raw)
To: Luis Chamberlain
Cc: Greg Kroah-Hartman, Catalin Marinas, Will Deacon, Heiko Carstens,
Vasily Gorbik, Alexander Gordeev, Kees Cook, Iurii Zaikin,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, willy,
josh, Christian Borntraeger, Sven Schnelle, linux-arm-kernel,
linux-kernel, linux-s390, linux-fsdevel, netdev
[-- Attachment #1.1: Type: text/plain, Size: 2057 bytes --]
On Wed, Jul 26, 2023 at 10:58:30AM -0700, Luis Chamberlain wrote:
> On Wed, Jul 26, 2023 at 04:06:26PM +0200, Joel Granados wrote:
> > In order to remove the end element from the ctl_table struct arrays, we
> > replace the register_syctl function with a macro that will add the
> > ARRAY_SIZE to the new register_sysctl_sz function. In this way the
> > callers that are already using an array of ctl_table structs do not have
> > to change. We *do* change the callers that pass the ctl_table array as a
> > pointer.
>
> Thanks for doing this and this series!
>
> > Signed-off-by: Joel Granados <j.granados@samsung.com>
> > ---
> > diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
> > index 0495c858989f..b1168ae281c9 100644
> > --- a/include/linux/sysctl.h
> > +++ b/include/linux/sysctl.h
> > @@ -215,6 +215,9 @@ struct ctl_path {
> > const char *procname;
> > };
> >
> > +#define register_sysctl(path, table) \
> > + register_sysctl_sz(path, table, ARRAY_SIZE(table))
> > +
> > #ifdef CONFIG_SYSCTL
>
> Wasn't it Greg who had suggested this? Maybe add Suggested-by with him
> on it.
Yes. I mentioned him in the cover letter and did not add the tag because
I had not asked for permission to use it. I'll drop him a mail and
include the suggested-by if he agrees.
>
> Also, your cover letter and first few patches are not CC'd to the netdev
> list or others. What you want to do is collect all the email addresses
> for this small patch series and add them to who you email for your
> entire series, otherwise at times they won't be able to properly review
> or understand the exact context of the changes. You want folks to do less
> work to review, not more.
Here I wanted to avoid very big e-mail headers as I have received
rejections from lists in the past. But I for this set, the number of
e-mails is ok to just include everyone.
I'll do that for V2.
thx for your feedback
best
>
> So please resend and add others to the other patches.
>
> Luis
--
Joel Granados
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 06/14] sysctl: Add size to register_sysctl
2023-07-27 12:22 ` [PATCH 06/14] sysctl: Add size to register_sysctl Joel Granados
@ 2023-07-27 15:42 ` Luis Chamberlain
2023-07-28 7:41 ` Joel Granados
0 siblings, 1 reply; 3+ messages in thread
From: Luis Chamberlain @ 2023-07-27 15:42 UTC (permalink / raw)
To: Joel Granados
Cc: Greg Kroah-Hartman, Catalin Marinas, Will Deacon, Heiko Carstens,
Vasily Gorbik, Alexander Gordeev, Kees Cook, Iurii Zaikin,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, willy,
josh, Christian Borntraeger, Sven Schnelle, linux-arm-kernel,
linux-kernel, linux-s390, linux-fsdevel, netdev
On Thu, Jul 27, 2023 at 02:22:00PM +0200, Joel Granados wrote:
> On Wed, Jul 26, 2023 at 10:58:30AM -0700, Luis Chamberlain wrote:
> > On Wed, Jul 26, 2023 at 04:06:26PM +0200, Joel Granados wrote:
> > > In order to remove the end element from the ctl_table struct arrays, we
> > > replace the register_syctl function with a macro that will add the
> > > ARRAY_SIZE to the new register_sysctl_sz function. In this way the
> > > callers that are already using an array of ctl_table structs do not have
> > > to change. We *do* change the callers that pass the ctl_table array as a
> > > pointer.
> >
> > Thanks for doing this and this series!
> >
> > > Signed-off-by: Joel Granados <j.granados@samsung.com>
> > > ---
> > > diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
> > > index 0495c858989f..b1168ae281c9 100644
> > > --- a/include/linux/sysctl.h
> > > +++ b/include/linux/sysctl.h
> > > @@ -215,6 +215,9 @@ struct ctl_path {
> > > const char *procname;
> > > };
> > >
> > > +#define register_sysctl(path, table) \
> > > + register_sysctl_sz(path, table, ARRAY_SIZE(table))
> > > +
> > > #ifdef CONFIG_SYSCTL
> >
> > Wasn't it Greg who had suggested this? Maybe add Suggested-by with him
> > on it.
> Yes. I mentioned him in the cover letter and did not add the tag because
> I had not asked for permission to use it. I'll drop him a mail and
> include the suggested-by if he agrees.
FWIW, I never ask, if they ask for it, clearly they suggested it.
> > Also, your cover letter and first few patches are not CC'd to the netdev
> > list or others. What you want to do is collect all the email addresses
> > for this small patch series and add them to who you email for your
> > entire series, otherwise at times they won't be able to properly review
> > or understand the exact context of the changes. You want folks to do less
> > work to review, not more.
> Here I wanted to avoid very big e-mail headers as I have received
> rejections from lists in the past. But I for this set, the number of
> e-mails is ok to just include everyone.
I hear that from time to time, if you have issues with adding folks on
the To address it may be an SMTP server issue, ie, corp email SMTP
server issues. To fix that I avoid corp email SMTP servers.
Luis
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 06/14] sysctl: Add size to register_sysctl
2023-07-27 15:42 ` Luis Chamberlain
@ 2023-07-28 7:41 ` Joel Granados
0 siblings, 0 replies; 3+ messages in thread
From: Joel Granados @ 2023-07-28 7:41 UTC (permalink / raw)
To: Luis Chamberlain
Cc: Greg Kroah-Hartman, Catalin Marinas, Will Deacon, Heiko Carstens,
Vasily Gorbik, Alexander Gordeev, Kees Cook, Iurii Zaikin,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni, willy,
josh, Christian Borntraeger, Sven Schnelle, linux-arm-kernel,
linux-kernel, linux-s390, linux-fsdevel, netdev
[-- Attachment #1.1: Type: text/plain, Size: 2886 bytes --]
On Thu, Jul 27, 2023 at 08:42:02AM -0700, Luis Chamberlain wrote:
> On Thu, Jul 27, 2023 at 02:22:00PM +0200, Joel Granados wrote:
> > On Wed, Jul 26, 2023 at 10:58:30AM -0700, Luis Chamberlain wrote:
> > > On Wed, Jul 26, 2023 at 04:06:26PM +0200, Joel Granados wrote:
> > > > In order to remove the end element from the ctl_table struct arrays, we
> > > > replace the register_syctl function with a macro that will add the
> > > > ARRAY_SIZE to the new register_sysctl_sz function. In this way the
> > > > callers that are already using an array of ctl_table structs do not have
> > > > to change. We *do* change the callers that pass the ctl_table array as a
> > > > pointer.
> > >
> > > Thanks for doing this and this series!
> > >
> > > > Signed-off-by: Joel Granados <j.granados@samsung.com>
> > > > ---
> > > > diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
> > > > index 0495c858989f..b1168ae281c9 100644
> > > > --- a/include/linux/sysctl.h
> > > > +++ b/include/linux/sysctl.h
> > > > @@ -215,6 +215,9 @@ struct ctl_path {
> > > > const char *procname;
> > > > };
> > > >
> > > > +#define register_sysctl(path, table) \
> > > > + register_sysctl_sz(path, table, ARRAY_SIZE(table))
> > > > +
> > > > #ifdef CONFIG_SYSCTL
> > >
> > > Wasn't it Greg who had suggested this? Maybe add Suggested-by with him
> > > on it.
> > Yes. I mentioned him in the cover letter and did not add the tag because
> > I had not asked for permission to use it. I'll drop him a mail and
> > include the suggested-by if he agrees.
>
> FWIW, I never ask, if they ask for it, clearly they suggested it.
I was following Documentation/process/submitting-patches.rst:
"... Please note that this tag should not be added without the
reporter's permission... ".
In any case, Greg has already said yes :)
>
> > > Also, your cover letter and first few patches are not CC'd to the netdev
> > > list or others. What you want to do is collect all the email addresses
> > > for this small patch series and add them to who you email for your
> > > entire series, otherwise at times they won't be able to properly review
> > > or understand the exact context of the changes. You want folks to do less
> > > work to review, not more.
> > Here I wanted to avoid very big e-mail headers as I have received
> > rejections from lists in the past. But I for this set, the number of
> > e-mails is ok to just include everyone.
>
> I hear that from time to time, if you have issues with adding folks on
> the To address it may be an SMTP server issue, ie, corp email SMTP
> server issues. To fix that I avoid corp email SMTP servers.
My experience was more from the lists rejecting the e-mail because the
header was too big. With that said, I'll look into SMTP alternatives to
reduce possible errors
>
> Luis
--
Joel Granados
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-28 7:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230726140635.2059334-1-j.granados@samsung.com>
[not found] ` <CGME20230726140659eucas1p2c3cd9f57dd13c71ddeb78d2480587e72@eucas1p2.samsung.com>
[not found] ` <20230726140635.2059334-7-j.granados@samsung.com>
[not found] ` <ZMFexmOcfyORkRRs@bombadil.infradead.org>
2023-07-27 12:22 ` [PATCH 06/14] sysctl: Add size to register_sysctl Joel Granados
2023-07-27 15:42 ` Luis Chamberlain
2023-07-28 7:41 ` Joel Granados
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox