summaryrefslogtreecommitdiffstats
path: root/include/misc
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-10-14 13:20:48 -0600
committerJens Axboe <axboe@kernel.dk>2018-10-14 13:20:48 -0600
commit8f94004e2a51a3ea195cf3447eb5d5906f36d8b3 (patch)
treedfba0bd639cbedbd4c074155237a562d0efedd3f /include/misc
parent5e27891e88555fecd8262e110e1a29feca4b0166 (diff)
downloadlinux-8f94004e2a51a3ea195cf3447eb5d5906f36d8b3.tar.bz2
cdrom: don't attempt to fiddle with cdo->capability
We can't modify cdo->capability as it is defined as a const. Change the modification hack to just WARN_ON_ONCE() if we hit any of the invalid combinations. This fixes a regression for pcd, which doesn't work after the constify patch. Fixes: 853fe1bf7554 ("cdrom: Make device operations read-only") Tested-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/misc')
0 files changed, 0 insertions, 0 deletions