All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: Petr Vorel <petr.vorel@gmail.com>, buildroot@buildroot.org
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
	"Yann E . MORIN" <yann.morin.1998@free.fr>
Subject: Re: [Buildroot] [PATCH 2/2] musl: backport netlink macro fix
Date: Sat, 14 May 2022 11:45:51 +0200	[thread overview]
Message-ID: <91d3a296-4c11-4f31-d44c-4860ead80498@mind.be> (raw)
In-Reply-To: <20220510163249.21272-3-petr.vorel@gmail.com>



On 10/05/2022 18:32, Petr Vorel wrote:
> 8cf87b30 ("fix incorrect parameter name in internal netlink.h RTA_OK macro")
> 
> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> ---
>   ...rameter-name-in-internal-netlink.h-R.patch | 33 +++++++++++++++++++
>   1 file changed, 33 insertions(+)
>   create mode 100644 dl/musl/0001-fix-incorrect-parameter-name-in-internal-netlink.h-R.patch
> 
> diff --git a/dl/musl/0001-fix-incorrect-parameter-name-in-internal-netlink.h-R.patch b/dl/musl/0001-fix-incorrect-parameter-name-in-internal-netlink.h-R.patch

  This should be in package/musl, not dl/musl. Also, subject should be 
package/musl: ...

  Applied both to master with that fixed.

  Regards,
  Arnout

> new file mode 100644
> index 0000000000..fa3057ff08
> --- /dev/null
> +++ b/dl/musl/0001-fix-incorrect-parameter-name-in-internal-netlink.h-R.patch
> @@ -0,0 +1,33 @@
> +From 8cf87b3027009c0acac591d9ae80262dc25daccf Mon Sep 17 00:00:00 2001
> +From: Ondrej Jirman <megous@megous.com>
> +Date: Wed, 21 Nov 2018 17:29:21 +0100
> +Subject: [PATCH] fix incorrect parameter name in internal netlink.h RTA_OK
> + macro
> +
> +the wrong name works only by accident.
> +
> +Signed-off-by: Ondrej Jirman <megous@megous.com>
> +Signed-off-by: Rich Felker <dalias@aerifal.cx>
> +Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> +
> +[ upstream status: 8cf87b3027009c0acac591d9ae80262dc25daccf ]
> +---
> + src/network/netlink.h | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/src/network/netlink.h b/src/network/netlink.h
> +index 38acb178..873fabe2 100644
> +--- a/src/network/netlink.h
> ++++ b/src/network/netlink.h
> +@@ -86,7 +86,7 @@ struct ifaddrmsg {
> + #define RTA_DATALEN(rta)	((rta)->rta_len-sizeof(struct rtattr))
> + #define RTA_DATAEND(rta)	((char*)(rta)+(rta)->rta_len)
> + #define RTA_NEXT(rta)		(struct rtattr*)((char*)(rta)+NETLINK_ALIGN((rta)->rta_len))
> +-#define RTA_OK(nlh,end)		((char*)(end)-(char*)(rta) >= sizeof(struct rtattr))
> ++#define RTA_OK(rta,end)		((char*)(end)-(char*)(rta) >= sizeof(struct rtattr))
> +
> + #define NLMSG_RTA(nlh,len)	((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len)))
> + #define NLMSG_RTAOK(rta,nlh)	RTA_OK(rta,NLMSG_DATAEND(nlh))
> +--
> +2.36.0
> +
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-05-14  9:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-10 16:32 [Buildroot] [PATCH 0/2] musl 1.2.3 Petr Vorel
2022-05-10 16:32 ` [Buildroot] [PATCH 1/2] package/musl: bump version to 1.2.3 Petr Vorel
2022-05-10 16:32 ` [Buildroot] [PATCH 2/2] musl: backport netlink macro fix Petr Vorel
2022-05-14  9:45   ` Arnout Vandecappelle [this message]
2022-05-14 18:35     ` Petr Vorel

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=91d3a296-4c11-4f31-d44c-4860ead80498@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@buildroot.org \
    --cc=petr.vorel@gmail.com \
    --cc=thomas.petazzoni@free-electrons.com \
    --cc=yann.morin.1998@free.fr \
    /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.