]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Enable BUILD_BUG_ON checks
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Sat, 10 May 2014 02:42:26 +0000 (22:42 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Sat, 10 May 2014 02:42:39 +0000 (22:42 -0400)
commitead222aac55e6cea2a68f0e1011afa4f6c365747
tree2d247b530c2994f35fe9e29fd692c9d356492031
parent7f04619a13ca70885e9a8d7b90a5748bc0f96768
NVMe: Enable BUILD_BUG_ON checks

Since _nvme_check_size() wasn't being called from anywhere, the compiler
was optimising it away ... along with all the link-time build failures
that would result if any of the structures were the wrong size.  Call it
from nvme_exit() for no particular reason.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c