qla2x00t: Declare local functions 'static'

Additionally, remove the 'inline' keyword from these two functions
because today's compilers are better than humans at deciding which
functions should be inlined and which ones not. This patch avoids
that building the qla2x00t driver on RHEL 7.4 triggers two compiler
warnings.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7336 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2018-01-11 17:00:21 +00:00
parent 32ab3b1e1f
commit 2594bc1fad
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -519,8 +519,7 @@ done:
return rval;
}
inline uint16_t
qla24xx_calc_ct_iocbs(uint16_t dsds)
static uint16_t qla24xx_calc_ct_iocbs(uint16_t dsds)
{
uint16_t iocbs;
+1 -2
View File
@@ -772,8 +772,7 @@ qla24xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt,
*
* Returns the number of dsd list needed to store @dsds.
*/
inline uint16_t
qla24xx_calc_dsd_lists(uint16_t dsds)
static uint16_t qla24xx_calc_dsd_lists(uint16_t dsds)
{
uint16_t dsd_lists = 0;