scsi: aha152x: Prepare for enabling lock context analysis

Annotate aha152x_error() with __noreturn. This suppresses a lock context
analysis compiler warning if lock context analysis is enabled.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/b7dc3add84f4224a90a095d9996b0744cb04c1cc.1790360262.git.bvanassche@acm.org
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
This commit is contained in:
Bart Van Assche 2026-09-25 11:25:46 -07:00 committed by Martin K. Petersen (Oracle)
parent 44bb77a1af
commit 825b26b342

View File

@ -636,7 +636,7 @@ static struct {
/* setup & interrupt */
static irqreturn_t intr(int irq, void *dev_id);
static void reset_ports(struct Scsi_Host *shpnt);
static void aha152x_error(struct Scsi_Host *shpnt, char *msg);
static void __noreturn aha152x_error(struct Scsi_Host *shpnt, char *msg);
static void done(struct Scsi_Host *shpnt, unsigned char status_byte,
unsigned char host_byte);
@ -2441,7 +2441,7 @@ static void is_complete(struct Scsi_Host *shpnt)
/*
* Dump the current driver status and panic
*/
static void aha152x_error(struct Scsi_Host *shpnt, char *msg)
static void __noreturn aha152x_error(struct Scsi_Host *shpnt, char *msg)
{
shost_printk(KERN_EMERG, shpnt, "%s\n", msg);
show_queues(shpnt);