Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/kmemd: needs headers >= 5.14
@ 2022-10-30 12:53 Fabrice Fontaine
  2022-10-30 14:03 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-10-30 12:53 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine, Tobias Waldekranz

kmemd unconditionally uses BPF_PSEUDO_MAP_IDX_VALUE which is only
available since kernel 5.14 and
https://github.com/torvalds/linux/commit/387544bfa291a22383d60b40f887360e2b931ec6
resulting in the following build failure since the addition of the
package in commit b3f915c6561bcb2f7952faca3bedf1766f299538:

kmem.c:36:17: error: 'BPF_PSEUDO_MAP_IDX_VALUE' undeclared here (not in a function); did you mean 'BPF_PSEUDO_MAP_VALUE'?
   36 |                 BPF_PSEUDO_MAP_IDX_VALUE, 0, _idx       \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/dcd7e6321d64746b8b867fa3f32095d1180a40fc

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/kmemd/Config.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/kmemd/Config.in b/package/kmemd/Config.in
index 902e636947..cd92757508 100644
--- a/package/kmemd/Config.in
+++ b/package/kmemd/Config.in
@@ -4,7 +4,7 @@ config BR2_PACKAGE_KMEMD
 	depends on BR2_USE_WCHAR # libbpf
 	depends on !BR2_STATIC_LIBS # libbpf
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libbpf
-	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13 # libbpf
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_14
 	depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # libbpf
 	select BR2_PACKAGE_LIBBPF
 	help
@@ -12,7 +12,7 @@ config BR2_PACKAGE_KMEMD
 
 	  https://github.com/wkz/kmemd
 
-comment "kmemd needs a uClibc or glibc toolchain w/ wchar, dynamic library, threads, headers >= 4.13"
+comment "kmemd needs a uClibc or glibc toolchain w/ wchar, dynamic library, threads, headers >= 5.14"
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 	depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \
 		|| !BR2_TOOLCHAIN_HAS_THREADS \
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/kmemd: needs headers >= 5.14
  2022-10-30 12:53 [Buildroot] [PATCH 1/1] package/kmemd: needs headers >= 5.14 Fabrice Fontaine
@ 2022-10-30 14:03 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-10-30 14:03 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Tobias Waldekranz, buildroot

On Sun, 30 Oct 2022 13:53:58 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> kmemd unconditionally uses BPF_PSEUDO_MAP_IDX_VALUE which is only
> available since kernel 5.14 and
> https://github.com/torvalds/linux/commit/387544bfa291a22383d60b40f887360e2b931ec6
> resulting in the following build failure since the addition of the
> package in commit b3f915c6561bcb2f7952faca3bedf1766f299538:
> 
> kmem.c:36:17: error: 'BPF_PSEUDO_MAP_IDX_VALUE' undeclared here (not in a function); did you mean 'BPF_PSEUDO_MAP_VALUE'?
>    36 |                 BPF_PSEUDO_MAP_IDX_VALUE, 0, _idx       \
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~~
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/dcd7e6321d64746b8b867fa3f32095d1180a40fc
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/kmemd/Config.in | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-10-30 14:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-30 12:53 [Buildroot] [PATCH 1/1] package/kmemd: needs headers >= 5.14 Fabrice Fontaine
2022-10-30 14:03 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox