diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2014-05-09 22:42:26 -0400 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2014-05-09 22:42:39 -0400 |
commit | 21bd78bcf4208e84deab0d34f9d4e034d0580d0c (patch) | |
tree | 2d247b530c2994f35fe9e29fd692c9d356492031 /drivers/block/nvme-core.c | |
parent | f2727f7eb9132803d06309839a95de3dad82d237 (diff) |
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>
Diffstat (limited to 'drivers/block/nvme-core.c')
-rw-r--r-- | drivers/block/nvme-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index cd8a8bc711cc..b82155888845 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme-core.c | |||
@@ -2912,6 +2912,7 @@ static void __exit nvme_exit(void) | |||
2912 | unregister_blkdev(nvme_major, "nvme"); | 2912 | unregister_blkdev(nvme_major, "nvme"); |
2913 | destroy_workqueue(nvme_workq); | 2913 | destroy_workqueue(nvme_workq); |
2914 | BUG_ON(nvme_thread && !IS_ERR(nvme_thread)); | 2914 | BUG_ON(nvme_thread && !IS_ERR(nvme_thread)); |
2915 | _nvme_check_size(); | ||
2915 | } | 2916 | } |
2916 | 2917 | ||
2917 | MODULE_AUTHOR("Matthew Wilcox <willy@linux.intel.com>"); | 2918 | MODULE_AUTHOR("Matthew Wilcox <willy@linux.intel.com>"); |