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: v3.12-rc1~32144^2~7^2~68^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46c43db1eabcdc46ad9a3d711edff1d698ecd21f;p=kernel%2Fkernel-generic.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 743f67e..d2c02df 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)