diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-08-31 16:52:16 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-09-05 22:49:34 -0700 |
| commit | fdb8bc38b1e959006a0a5d98c84c8443c785e49d (patch) | |
| tree | 3f82029e91c9cf795a0f90d7506bf90f6c76d3e6 | |
| parent | 052194bf6259d6f3d1f27aaff5c838b6e50d98a3 (diff) | |
| download | meta-openembedded-fdb8bc38b1e959006a0a5d98c84c8443c785e49d.tar.gz | |
hddtemp: Add missing prototype for ata_get_powermode in sata.c
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/hddtemp/hddtemp/0001-sata.c-Declare-ata_get_powermode-prototype.patch | 33 | ||||
| -rw-r--r-- | meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb | 1 |
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 @@ | |||
| 1 | From c5ca31940d1d1889ef2cc6974c18ff24ab406748 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 31 Aug 2022 16:42:23 -0700 | ||
| 4 | Subject: [PATCH] sata.c: Declare ata_get_powermode prototype | ||
| 5 | |||
| 6 | Fixes build warnings/errors | ||
| 7 | |||
| 8 | sata.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 | |||
| 11 | Upstream-Status: Pending | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | src/sata.c | 3 ++- | ||
| 15 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/src/sata.c b/src/sata.c | ||
| 18 | index 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 | -- | ||
| 32 | 2.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 | " |
