For files only using THIS_MODULE and/or EXPORT_SYMBOL, map them onto including export.h -- or if the file isn't even using those, then just delete the include. Fix up any implicit include dependencies that were being masked by module.h along the way.
Showing the changes to lib/gcd.c (1 of 63 files). Show all
Unified · Split
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | #include <linux/kernel.h> |
| 2 | 2 | #include <linux/gcd.h> |
| 3 | −#include <linux/module.h> | |
| 3 | +#include <linux/export.h> | |
| 4 | 4 | |
| 5 | 5 | /* Greatest common divisor */ |
| 6 | 6 | unsigned long gcd(unsigned long a, unsigned long b) |