CONFIG_* switches should not be exposed in uapi headers, thus let's get rid of the USE_WCACHING macro here (which was also named way to generic) and integrate the logic directly in the only function that needs it.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -29,17 +29,6 @@ · 28 unmodified lines | |||
| 29 | */ | 29 | */ |
| 30 | #define PACKET_WAIT_TIME (HZ * 5 / 1000) | 30 | #define PACKET_WAIT_TIME (HZ * 5 / 1000) |
| 31 | 31 | ||
| 32 | /* | ||
| 33 | * use drive write caching -- we need deferred error handling to be | ||
| 34 | * able to successfully recover with this option (drive will return good | ||
| 35 | * status as soon as the cdb is validated). | ||
| 36 | */ | ||
| 37 | #if defined(CONFIG_CDROM_PKTCDVD_WCACHE) | ||
| 38 | #define USE_WCACHING 1 | ||
| 39 | #else | ||
| 40 | #define USE_WCACHING 0 | ||
| 41 | #endif | ||
| 42 | |||
| 43 | /* | 32 | /* |
| 44 | * No user-servicable parts beyond this point -> | 33 | * No user-servicable parts beyond this point -> |
| 45 | */ | 34 | */ |