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.
Unified · Split
| @@ -2912,6 +2912,7 @@ static void __exit nvme_exit(void) · 2911 unmodified lines | |||
| 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>"); |