summaryrefslogtreecommitdiff
path: root/include/ras
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2023-10-16 06:47:46 -0700
committerJens Axboe <axboe@kernel.dk>2023-10-19 16:42:03 -0600
commitd2cac3ec823798861f8f39b4aa0ec960ffa997b0 (patch)
tree098ada23897a90ba2436af3f4c05c190e3ab6ba5 /include/ras
parentba6e0e5cb5b2c2e736e16b4aead816450a8718e6 (diff)
io_uring/cmd: return -EOPNOTSUPP if net is disabled
Protect io_uring_cmd_sock() to be called if CONFIG_NET is not set. If network is not enabled, but io_uring is, then we want to return -EOPNOTSUPP for any possible socket operation. This is helpful because io_uring_cmd_sock() can now call functions that only exits if CONFIG_NET is enabled without having #ifdef CONFIG_NET inside the function itself. Signed-off-by: Breno Leitao <leitao@debian.org> Link: https://lore.kernel.org/r/20231016134750.1381153-9-leitao@debian.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/ras')
0 files changed, 0 insertions, 0 deletions