mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
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:
+1
-2
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user