From: Willem Jan Withagen Date: Wed, 7 Jul 2021 10:51:12 +0000 (+0200) Subject: rgw: Use signaling compatible with POSIX X-Git-Tag: v17.1.0~1444^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42212%2Fhead;p=ceph.git rgw: Use signaling compatible with POSIX FreeBSD does not have signal_t. Linux specifies also to use `sigval` as POSIX compliant. tracker: https://tracker.ceph.com/issues/51610 fixes: https://github.com/ceph/ceph/pull/36266 Signed-off-by: Willem Jan Withagen --- diff --git a/src/rgw/rgw_d3n_cacherequest.h b/src/rgw/rgw_d3n_cacherequest.h index 1825d0cb0ff1..41e026bcd345 100644 --- a/src/rgw/rgw_d3n_cacherequest.h +++ b/src/rgw/rgw_d3n_cacherequest.h @@ -76,7 +76,7 @@ struct D3nL1CacheRequest { return 0; } - static void libaio_cb_aio_dispatch(sigval_t sigval) { + static void libaio_cb_aio_dispatch(sigval sigval) { lsubdout(g_ceph_context, rgw_datacache, 20) << "D3nDataCache: " << __func__ << "()" << dendl; auto p = std::unique_ptr{static_cast(sigval.sival_ptr)}; auto op = std::move(p->user_data); diff --git a/src/rgw/rgw_d3n_datacache.cc b/src/rgw/rgw_d3n_datacache.cc index 37012e5455c3..e2ad497dae97 100644 --- a/src/rgw/rgw_d3n_datacache.cc +++ b/src/rgw/rgw_d3n_datacache.cc @@ -144,7 +144,7 @@ int D3nDataCache::d3n_io_write(bufferlist& bl, unsigned int len, std::string oid return r; } -void d3n_libaio_write_cb(sigval_t sigval) +void d3n_libaio_write_cb(sigval sigval) { lsubdout(g_ceph_context, rgw_datacache, 30) << "D3nDataCache: " << __func__ << "()" << dendl; D3nCacheAioWriteRequest* c = static_cast(sigval.sival_ptr);