ipr_device_lock(), ipr_device_unlock() and get_scsi_dev_data() all get
used outside of iprlib.c but they were missing a prototype in the
library header file. This patch adds it to silently the following
warnings:
../iprconfig.c: In function ‘wait_for_formatted_af_dasd’:
../iprconfig.c:240:14: warning: implicit declaration of function
‘get_scsi_dev_data’ [-Wimplicit-function-declaration]
num_devs = get_scsi_dev_data(&scsi_devs);
^~~~~~~~~~~~~~~~~
../iprconfig.c: In function ‘verify_device’:
../iprconfig.c:1711:6: warning: implicit declaration of function
‘ipr_device_lock’ [-Wimplicit-function-declaration]
if (ipr_device_lock(dev))
^~~~~~~~~~~~~~~
../iprconfig.c:1741:2: warning: implicit declaration of function
‘ipr_device_unlock’ [-Wimplicit-function-declaration]
ipr_device_unlock(dev);
^~~~~~~~~~~~~~~~~
Signed-off-by: Gabriel Krisman Bertazi <[email protected]>
---
iprlib.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/iprlib.h b/iprlib.h
index 0864474aa7cf..b4995b3aa469 100644
--- a/iprlib.h
+++ b/iprlib.h
@@ -2955,6 +2955,10 @@ void ipr_count_devices_in_vset(struct ipr_dev *, int
*num_devs, int *ssd_num_dev
int ipr_known_zeroed_is_saved(struct ipr_dev *);
int get_sg_name(struct scsi_dev_data *);
int ipr_sg_inquiry(struct scsi_dev_data *, u8, void *, u8);
+int get_scsi_dev_data(struct scsi_dev_data **scsi_dev_ref);
+
+int ipr_device_lock(struct ipr_dev *dev);
+void ipr_device_unlock(struct ipr_dev *dev);
static inline u32 ipr_get_dev_res_handle(struct ipr_ioa *ioa, struct
ipr_dev_record *dev_rcd)
{
--
2.7.4
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Iprdd-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iprdd-devel