blob: 5703d3c241dd8b5cf3f6d49610c34d37b3e16924 [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 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