pktcdvd: Remove CONFIG_CDROM_PKTCDVD_WCACHE from uapi header
authorThomas Huth <thuth@redhat.com>
Fri, 10 Mar 2023 16:07:56 +0000 (17:07 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 10 Mar 2023 20:05:16 +0000 (21:05 +0100)
commitf5bdc61eb6089e10181b8f51b0a180bbd47a89fc
tree3e38e6f4df76270d57478b5d01bbf68126cf2d93
parentd3c7ec7588508bd59bbb0e468d3820f3d3cba690
pktcdvd: Remove CONFIG_CDROM_PKTCDVD_WCACHE from uapi header

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.

Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/block/pktcdvd.c
include/uapi/linux/pktcdvd.h