History

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.

Matthew Wilcox committed 12 years ago

Commit 21bd78b1 parent f2727f71 file · +1 −0Browse files

Unified · Split

drivers/block/nvme-core.c+1−0
@@ -2912,6 +2912,7 @@ static void __exit nvme_exit(void) · 2911 unmodified lines
29122912 unregister_blkdev(nvme_major, "nvme");
29132913 destroy_workqueue(nvme_workq);
29142914 BUG_ON(nvme_thread && !IS_ERR(nvme_thread));
2915+ _nvme_check_size();
29152916 }
29162917
29172918 MODULE_AUTHOR("Matthew Wilcox <willy@linux.intel.com>");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t