All of lore.kernel.org
 help / color / mirror / Atom feed
From: willemb@google.com
To: Alejandro Colomar <alx@kernel.org>, Joe Damato <joe@dama.to>,
	"David S. Miller" <davem@davemloft.net>,
	 Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	 netdev@vger.kernel.org, Simon Horman <horms@kernel.org>
Subject: Re: [PATCH] net: Add missing const
Date: Tue, 01 Dec 2026 22:41:00 -0500	[thread overview]
Message-ID: <willemb.349391104e1ce@google.com> (raw)
In-Reply-To: <awdGuVcwtVwUc7ge@devuan>

Alejandro Colomar wrote:
> Hi Joe,

> > Date: 2026-11-25 10:38:26-0800
> > From: Joe Damato <joe@dama.to>
> >
> > On Wed, Nov 25, 2026 at 07:19:51PM +0100, Alejandro Colomar wrote:
> > > These pointers are derived from other const pointers.
> > >
> > > Signed-off-by: Alejandro Colomar <alx@kernel.org>
> > > ---
> > >
> > > Hi,
> > >
> > > This was found when changing some <linux/string.h> APIs to preserve  
> the
> > > const qualifier in the return type.
> > >
> > >
> > > Have a lovely night!
> > > Alex
> > >
> > >  net/smc/smc_pnet.c | 4 ++--
> > >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > patch seems right but i think the subject line and commit message could  
> be
> > improved tbh

> I kept it simple, because it's an obvious improvement, and adding more
> text felt like bloating it too much, but if you propose any improvement,
> I could incorporate it into the patch.

At least the subsystem prefix, net/smc, and use get_maintainers.pl
to Cc: the SMC maintainers.

Right now skip_spaces returns non-const, so I did not see the point.
But I guess you have a series that will make it const-preserving
using _Generic. All that would be a helpful commit message.

pw-bot: cr

> >
> > Reviewed-by: Joe Damato <joe@dama.to>

> Thanks!


> Have a lovely night!
> Alex

> --
> <https://www.alejandro-colomar.es>



  reply	other threads:[~2026-12-02  3:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 18:19 [PATCH] net: Add missing const Alejandro Colomar
2026-11-25 18:38 ` Joe Damato
2026-11-25 20:37   ` Alejandro Colomar
2026-12-02  3:41     ` willemb [this message]
2026-12-02  3:41     ` willemb

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=willemb.349391104e1ce@google.com \
    --to=willemb@google.com \
    --cc=alx@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=joe@dama.to \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /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 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.