summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/hddtemp/hddtemp/0001-sata.c-Declare-ata_get_powermode-prototype.patch33
-rw-r--r--meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb1
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/hddtemp/hddtemp/0001-sata.c-Declare-ata_get_powermode-prototype.patch b/meta-oe/recipes-support/hddtemp/hddtemp/0001-sata.c-Declare-ata_get_powermode-prototype.patch
new file mode 100644
index 0000000000..5703d3c241
--- /dev/null
+++ b/meta-oe/recipes-support/hddtemp/hddtemp/0001-sata.c-Declare-ata_get_powermode-prototype.patch
@@ -0,0 +1,33 @@
1From c5ca31940d1d1889ef2cc6974c18ff24ab406748 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 31 Aug 2022 16:42:23 -0700
4Subject: [PATCH] sata.c: Declare ata_get_powermode prototype
5
6Fixes build warnings/errors
7
8sata.c:127:10: error: call to undeclared function 'ata_get_powermode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
9| switch(ata_get_powermode(dsk->fd))
10
11Upstream-Status: Pending
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 src/sata.c | 3 ++-
15 1 file changed, 2 insertions(+), 1 deletion(-)
16
17diff --git a/src/sata.c b/src/sata.c
18index d67621f..4172245 100644
19--- a/src/sata.c
20+++ b/src/sata.c
21@@ -52,7 +52,8 @@
22 (((u16)(__x) & (u16)0xff00U) >> 8) )); \
23 })
24
25-
26+extern enum e_powermode ata_get_powermode(int device);
27+
28 static int sata_probe(int device) {
29 int bus_num;
30 unsigned char cmd[4] = { WIN_IDENTIFY, 0, 0, 1 };
31--
322.37.3
33
diff --git a/meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb b/meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb
index b4be39feb5..e9d30977fe 100644
--- a/meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb
+++ b/meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb
@@ -10,6 +10,7 @@ SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/hddtemp/hddtemp-0.3-beta15.tar.bz2 \
10 file://hddtemp-0.3-beta15-autodetect-717479.patch \ 10 file://hddtemp-0.3-beta15-autodetect-717479.patch \
11 file://0001-backtrace-Replace-struct-ucontext-with-ucontext_t.patch \ 11 file://0001-backtrace-Replace-struct-ucontext-with-ucontext_t.patch \
12 file://0001-configure.ac-Rename-to-configure.ac-and-use-external.patch \ 12 file://0001-configure.ac-Rename-to-configure.ac-and-use-external.patch \
13 file://0001-sata.c-Declare-ata_get_powermode-prototype.patch \
13 file://hddtemp.db \ 14 file://hddtemp.db \
14 file://init \ 15 file://init \
15" 16"