ipr: fix debug macro call in ipr_reset_restore_cfg_space()
Subsystems (2)
PATCH 1/1 ipr: fix debug macro call in ipr_reset_restore_cfg_space()
The key functions of the ipr driver call two macros defined in 'ipr.h', 'ENTER' and 'LEAVE', upon entering and leaving the functions, in order to print debug messages when the driver is loaded with the option 'debug=1'. Before returning, ipr_reset_restore_cfg_space() calls 'ENTER' where it should call 'LEAVE'. This patch calls the right macro before returning from the function.
--- drivers/scsi/ipr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/ipr.c +0 -0
@@ -6522,7 +6522,7 @@ static int ipr_reset_restore_cfg_space(struct
ipr_cmnd *ipr_cmd)
}
}- ENTER;
+ LEAVE;
return IPR_RC_JOB_CONTINUE;}
--
Signature · 2 lines
Kleber S. Souza IBM Linux Technology Center
Acked by: Brian King <[email protected]>
Quoted 31 lines · Kleber S. Souza
The key functions of the ipr driver call two macros defined in '
ipr.h', 'ENTER' and 'LEAVE', upon entering and leaving the functions, in order to print debug messages when the driver is loaded with the option 'debug=1'. Before returning,ipr_reset_restore_cfg_space()calls 'ENTER' where it should call 'LEAVE'. This patch calls the right macro before returning from the function.Signed-off-by Kleber S. Souza <[email protected]>--- drivers/scsi/ipr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/scsi/ipr.c +1
-2@@ -6522,7 +6522,7 @@ static int ipr_reset_restore_cfg_space(struct ipr_cmnd *ipr_cmd) } } -ENTER ; +LEAVE ;return IPR_RC_JOB_CONTINUE ; } --
Signature · 3 lines
Brian King Linux on Power Virtualization IBM Linux Technology Center