From: Alexey Dobriyan Date: Sun, 8 Oct 2006 11:55:55 +0000 (+0400) Subject: [SCSI] scsi_lib.c: use BUILD_BUG_ON X-Git-Tag: v2.6.19-rc4~86^2~30 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=46c43db1eabcdc46ad9a3d711edff1d698ecd21f;p=linux-2.6-omap-h63xx.git [SCSI] scsi_lib.c: use BUILD_BUG_ON Signed-off-by: Alexey Dobriyan Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 743f67ed764..d2c02df12fd 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1084,7 +1084,7 @@ static void scsi_setup_blk_pc_cmnd(struct scsi_cmnd *cmd) { struct request *req = cmd->request; - BUG_ON(sizeof(req->cmd) > sizeof(cmd->cmnd)); + BUILD_BUG_ON(sizeof(req->cmd) > sizeof(cmd->cmnd)); memcpy(cmd->cmnd, req->cmd, sizeof(cmd->cmnd)); cmd->cmd_len = req->cmd_len; if (!req->data_len)