linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: pfcp: fix typo in message_priority field name
@ 2025-06-10 16:06 RubenKelevra
  2025-06-10 18:42 ` Charalampos Mitrodimas
  2025-06-12 14:50 ` [PATCH net-next v2] " RubenKelevra
  0 siblings, 2 replies; 7+ messages in thread
From: RubenKelevra @ 2025-06-10 16:06 UTC (permalink / raw)
  To: netdev
  Cc: davem, kuba, edumazet, pabeni, horms, linux-kernel, stable,
	RubenKelevra

Fix 'message_priprity' typo to 'message_priority' in big endian
bitfield definition. This typo breaks compilation on big endian
architectures.

Fixes: 6dd514f48110 ("pfcp: always set pfcp metadata")
Cc: stable@vger.kernel.org # commit 6dd514f48110 ("pfcp: always set pfcp metadata")
Signed-off-by: RubenKelevra <rubenkelevra@gmail.com>
---
 include/net/pfcp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/pfcp.h b/include/net/pfcp.h
index af14f970b80e1..639553797d3e4 100644
--- a/include/net/pfcp.h
+++ b/include/net/pfcp.h
@@ -45,7 +45,7 @@ struct pfcphdr_session {
 		reserved:4;
 #elif defined(__BIG_ENDIAN_BITFIELD)
 	u8	reserved:4,
-		message_priprity:4;
+		message_priority:4;
 #else
 #error "Please fix <asm/byteorder>"
 #endif
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] net: pfcp: fix typo in message_priority field name
  2025-06-10 16:06 [PATCH] net: pfcp: fix typo in message_priority field name RubenKelevra
@ 2025-06-10 18:42 ` Charalampos Mitrodimas
  2025-06-11 21:51   ` Jakub Kicinski
  2025-06-12 14:50 ` [PATCH net-next v2] " RubenKelevra
  1 sibling, 1 reply; 7+ messages in thread
From: Charalampos Mitrodimas @ 2025-06-10 18:42 UTC (permalink / raw)
  To: RubenKelevra
  Cc: netdev, davem, kuba, edumazet, pabeni, horms, linux-kernel,
	stable

RubenKelevra <rubenkelevra@gmail.com> writes:

> Fix 'message_priprity' typo to 'message_priority' in big endian
> bitfield definition. This typo breaks compilation on big endian
> architectures.
>
> Fixes: 6dd514f48110 ("pfcp: always set pfcp metadata")
> Cc: stable@vger.kernel.org # commit 6dd514f48110 ("pfcp: always set pfcp metadata")
> Signed-off-by: RubenKelevra <rubenkelevra@gmail.com>
> ---
>  include/net/pfcp.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

I had the same issue today, happy there's a patch for this.

Reviewed-by: Charalampos Mitrodimas <charmitro@posteo.net>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] net: pfcp: fix typo in message_priority field name
  2025-06-10 18:42 ` Charalampos Mitrodimas
@ 2025-06-11 21:51   ` Jakub Kicinski
  2025-06-12  6:38     ` Ruben Kelevra
  0 siblings, 1 reply; 7+ messages in thread
From: Jakub Kicinski @ 2025-06-11 21:51 UTC (permalink / raw)
  To: Charalampos Mitrodimas
  Cc: RubenKelevra, netdev, davem, edumazet, pabeni, horms,
	linux-kernel, stable

On Tue, 10 Jun 2025 18:42:28 +0000 Charalampos Mitrodimas wrote:
> > Fix 'message_priprity' typo to 'message_priority' in big endian
> > bitfield definition. This typo breaks compilation on big endian
> > architectures.
> >
> > Fixes: 6dd514f48110 ("pfcp: always set pfcp metadata")
> > Cc: stable@vger.kernel.org # commit 6dd514f48110 ("pfcp: always set pfcp metadata")
> > Signed-off-by: RubenKelevra <rubenkelevra@gmail.com>
>
> I had the same issue today, happy there's a patch for this.

Could y'all share more? What compilation does this break?
The field is never used.

More info about how you found the problem would be useful.
And I believe this can go to net-next, without the CC stable
and without the Fixes tag. Unless my grep is lying to me:

net-next$ git grep message_priority
include/net/pfcp.h:     u8      message_priority:4,
-- 
pw-bot: cr

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] net: pfcp: fix typo in message_priority field name
  2025-06-11 21:51   ` Jakub Kicinski
@ 2025-06-12  6:38     ` Ruben Kelevra
  2025-06-12 14:29       ` Jakub Kicinski
  0 siblings, 1 reply; 7+ messages in thread
From: Ruben Kelevra @ 2025-06-12  6:38 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: Charalampos Mitrodimas, netdev, davem, edumazet, pabeni, horms,
	linux-kernel, stable

Hi Jakub,

I hit it while building an out-of-tree module that reads hdr->message_priority.
Cross-compiling for a big-endian target failed for me, because of it.

That’s the only reason for the patch; net-next is fine, no need for stable.

Cheers,
Ruben

On Wed, Jun 11, 2025 at 11:51 PM Jakub Kicinski <kuba@kernel.org> wrote:
>
> On Tue, 10 Jun 2025 18:42:28 +0000 Charalampos Mitrodimas wrote:
> > > Fix 'message_priprity' typo to 'message_priority' in big endian
> > > bitfield definition. This typo breaks compilation on big endian
> > > architectures.
> > >
> > > Fixes: 6dd514f48110 ("pfcp: always set pfcp metadata")
> > > Cc: stable@vger.kernel.org # commit 6dd514f48110 ("pfcp: always set pfcp metadata")
> > > Signed-off-by: RubenKelevra <rubenkelevra@gmail.com>
> >
> > I had the same issue today, happy there's a patch for this.
>
> Could y'all share more? What compilation does this break?
> The field is never used.
>
> More info about how you found the problem would be useful.
> And I believe this can go to net-next, without the CC stable
> and without the Fixes tag. Unless my grep is lying to me:
>
> net-next$ git grep message_priority
> include/net/pfcp.h:     u8      message_priority:4,
> --
> pw-bot: cr

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] net: pfcp: fix typo in message_priority field name
  2025-06-12  6:38     ` Ruben Kelevra
@ 2025-06-12 14:29       ` Jakub Kicinski
  0 siblings, 0 replies; 7+ messages in thread
From: Jakub Kicinski @ 2025-06-12 14:29 UTC (permalink / raw)
  To: Ruben Kelevra
  Cc: Charalampos Mitrodimas, netdev, davem, edumazet, pabeni, horms,
	linux-kernel, stable

On Thu, 12 Jun 2025 08:38:20 +0200 Ruben Kelevra wrote:
> I hit it while building an out-of-tree module that reads hdr->message_priority.
> Cross-compiling for a big-endian target failed for me, because of it.
> 
> That’s the only reason for the patch; net-next is fine, no need for stable.

I see, please go ahead and repost with [PATCH net-next], no stable cc
and no fixes tag. Would also be good to mention in the commit message
that it does not currently cause kernel build issues, but is clearly
incorrect.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH net-next v2] net: pfcp: fix typo in message_priority field name
  2025-06-10 16:06 [PATCH] net: pfcp: fix typo in message_priority field name RubenKelevra
  2025-06-10 18:42 ` Charalampos Mitrodimas
@ 2025-06-12 14:50 ` RubenKelevra
  2025-06-14  1:20   ` patchwork-bot+netdevbpf
  1 sibling, 1 reply; 7+ messages in thread
From: RubenKelevra @ 2025-06-12 14:50 UTC (permalink / raw)
  To: netdev; +Cc: davem, kuba, edumazet, pabeni, horms, linux-kernel, RubenKelevra

The field is spelled “message_priprity” in the big-endian bit-field
definition.  Nothing in-tree currently references the member, so the
typo does not break kernel builds, but it is clearly incorrect and
confuses out-of-tree code.

Signed-off-by: RubenKelevra <rubenkelevra@gmail.com>
---
 include/net/pfcp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/pfcp.h b/include/net/pfcp.h
index af14f970b80e1..639553797d3e4 100644
--- a/include/net/pfcp.h
+++ b/include/net/pfcp.h
@@ -45,7 +45,7 @@ struct pfcphdr_session {
 		reserved:4;
 #elif defined(__BIG_ENDIAN_BITFIELD)
 	u8	reserved:4,
-		message_priprity:4;
+		message_priority:4;
 #else
 #error "Please fix <asm/byteorder>"
 #endif
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH net-next v2] net: pfcp: fix typo in message_priority field name
  2025-06-12 14:50 ` [PATCH net-next v2] " RubenKelevra
@ 2025-06-14  1:20   ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 7+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-06-14  1:20 UTC (permalink / raw)
  To: RubenKelevra; +Cc: netdev, davem, kuba, edumazet, pabeni, horms, linux-kernel

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 12 Jun 2025 16:50:12 +0200 you wrote:
> The field is spelled “message_priprity” in the big-endian bit-field
> definition.  Nothing in-tree currently references the member, so the
> typo does not break kernel builds, but it is clearly incorrect and
> confuses out-of-tree code.
> 
> Signed-off-by: RubenKelevra <rubenkelevra@gmail.com>
> 
> [...]

Here is the summary with links:
  - [net-next,v2] net: pfcp: fix typo in message_priority field name
    https://git.kernel.org/netdev/net-next/c/b776999bf25d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-06-14  1:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 16:06 [PATCH] net: pfcp: fix typo in message_priority field name RubenKelevra
2025-06-10 18:42 ` Charalampos Mitrodimas
2025-06-11 21:51   ` Jakub Kicinski
2025-06-12  6:38     ` Ruben Kelevra
2025-06-12 14:29       ` Jakub Kicinski
2025-06-12 14:50 ` [PATCH net-next v2] " RubenKelevra
2025-06-14  1:20   ` patchwork-bot+netdevbpf

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).