* [PATCH] scsi: ufs: add missing declaration in ufshcd.h
@ 2016-08-28 8:01 Baoyou Xie
2016-09-02 10:58 ` Martin K. Petersen
0 siblings, 1 reply; 2+ messages in thread
From: Baoyou Xie @ 2016-08-28 8:01 UTC (permalink / raw)
To: vinholikatti, jejb, martin.petersen
Cc: linux-scsi, linux-kernel, arnd, baoyou.xie, xie.baoyou
We get 1 warning about global functions without a declaration
in the scsi ufshcd driver when building with W=1:
drivers/scsi/ufs/ufshcd.c:1991:5: warning: no previous prototype for 'ufshcd_query_descriptor_retry' [-Wmissing-prototypes]
in fact, this function is implemented in ufshcd.c and exported
but need to be declared in header file.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
---
drivers/scsi/ufs/ufshcd.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h
index 430bef1..2f696ea 100644
--- a/drivers/scsi/ufs/ufshcd.h
+++ b/drivers/scsi/ufs/ufshcd.h
@@ -713,6 +713,9 @@ int ufshcd_read_string_desc(struct ufs_hba *hba, int desc_index, u8 *buf,
/* Expose Query-Request API */
int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode,
enum flag_idn idn, bool *flag_res);
+int ufshcd_query_descriptor_retry(struct ufs_hba *hba,
+ enum query_opcode opcode, enum desc_idn idn, u8 index,
+ u8 selector, u8 *desc_buf, int *buf_len);
int ufshcd_hold(struct ufs_hba *hba, bool async);
void ufshcd_release(struct ufs_hba *hba);
u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba);
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] scsi: ufs: add missing declaration in ufshcd.h
2016-08-28 8:01 [PATCH] scsi: ufs: add missing declaration in ufshcd.h Baoyou Xie
@ 2016-09-02 10:58 ` Martin K. Petersen
0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2016-09-02 10:58 UTC (permalink / raw)
To: Baoyou Xie
Cc: vinholikatti, jejb, martin.petersen, linux-scsi, linux-kernel,
arnd, xie.baoyou
>>>>> "Baoyou" == Baoyou Xie <baoyou.xie@linaro.org> writes:
Baoyou> We get 1 warning about global functions without a declaration in
Baoyou> the scsi ufshcd driver when building with W=1:
Baoyou> drivers/scsi/ufs/ufshcd.c:1991:5: warning: no previous prototype
Baoyou> for 'ufshcd_query_descriptor_retry' [-Wmissing-prototypes]
Baoyou> in fact, this function is implemented in ufshcd.c and exported
Baoyou> but need to be declared in header file.
ufshcd_query_descriptor_retry doesn't appear to be used outside of
ufshcd.c.
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-02 10:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-28 8:01 [PATCH] scsi: ufs: add missing declaration in ufshcd.h Baoyou Xie
2016-09-02 10:58 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).