Skip to contentSkip to conversation

package/cache-calibrator: fix build failure for implicit declaration

PATCH Applied Dario Binacchi 4 participants 4 messages Sep 3, 2024 – Sep 18, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/cache-calibrator: fix build failure for implicit declaration

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

---
 ...e-due-to-getpagesize-implicit-declar.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/cache-calibrator/0002-Fix-build-failure-due-to-getpagesize-implicit-declar.patch
package/cache-calibrator/0002-Fix-build-failure-due-to-getpagesize-implicit-declar.patch new file +33 -0
new file mode 100644
index 000000000000..fcad6694816e
@@ -0,0 +1,33 @@
+From 29c4e0038b212e953cc59ac8b31d4541db758a3d Mon Sep 17 00:00:00 2001
+From: Dario Binacchi <[email protected]>
+Date: Tue, 3 Sep 2024 17:43:44 +0200
+Subject: [PATCH] Fix build failure due to getpagesize implicit declaration
+
+The patch fixes the following build error:
+
+calibrator.c: In function 'runCache':
+calibrator.c:267:24: error: implicit declaration of function 'getpagesize' [-Wimplicit-function-declaration]
+
+Signed-off-by: Dario Binacchi <[email protected]>
+Upstream: sent to Stefan Manegold [email protected]
+---
+ calibrator.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/calibrator.c b/calibrator.c
+index e045dfdcb96b..fd2fadb26020 100644
+--- a/calibrator.c
++++ b/calibrator.c
+@@ -37,9 +37,7 @@
+  * THE POSSIBILITY OF SUCH DAMAGE.
+  */
+ 
+-/*
+ #include        <unistd.h>
+-*/
+ #include        <stdlib.h>
+ #include	<stdio.h>
+ #include	<math.h>
+-- 
+2.43.0
+
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Dario, All,

On 2024-09-03 17:56 +0200, Dario Binacchi spake thusly:

Quoted 4 lines

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

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 51 lines
---
 ...e-due-to-getpagesize-implicit-declar.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/cache-calibrator/0002-Fix-build-failure-due-to-getpagesize-implicit-declar.patch
package/cache-calibrator/0002-Fix-build-failure-due-to-getpagesize-implicit-declar.patch new file +33 -0
new file mode 100644
index 000000000000..fcad6694816e
@@ -0,0 +1,33 @@
+From 29c4e0038b212e953cc59ac8b31d4541db758a3d Mon Sep 17 00:00:00 2001
+From: Dario Binacchi <[email protected]>
+Date: Tue, 3 Sep 2024 17:43:44 +0200
+Subject: [PATCH] Fix build failure due to getpagesize implicit declaration
+
+The patch fixes the following build error:
+
+calibrator.c: In function 'runCache':
+calibrator.c:267:24: error: implicit declaration of function 'getpagesize' [-Wimplicit-function-declaration]
+
+Signed-off-by: Dario Binacchi <[email protected]>
+Upstream: sent to Stefan Manegold [email protected]
+---
+ calibrator.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/calibrator.c b/calibrator.c
+index e045dfdcb96b..fd2fadb26020 100644
+--- a/calibrator.c
++++ b/calibrator.c
+@@ -37,9 +37,7 @@
+  * THE POSSIBILITY OF SUCH DAMAGE.
+  */
+ 
+-/*
+ #include        <unistd.h>
+-*/
+ #include        <stdlib.h>
+ #include	<stdio.h>
+ #include	<math.h>
+-- 
+2.43.0
+
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Dario Binacchi
Quoted 8 lines · On Tue, 3 Sep 2024 17:56:21 +0200 Dario Binacchi…

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

---
 ...e-due-to-getpagesize-implicit-declar.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/cache-calibrator/0002-Fix-build-failure-due-to-getpagesize-implicit-declar.patch

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Dario Binacchi
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Dario" == Dario Binacchi <[email protected]> writes:

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

Committed to 2024.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot