Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:15.2
libiscsi
libiscsi-rdma.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libiscsi-rdma.patch of Package libiscsi
From f1feb218e2823d236569f0ca3cfad07334f2a304 Mon Sep 17 00:00:00 2001 From: Cole Robinson <crobinso@redhat.com> Date: Mon, 30 Apr 2018 18:11:05 -0400 Subject: [PATCH] iser: Use local container_of definition The code was implicitly dependent on container_of from inifiniband/verbs.h, however that's been removed in rdma-core latest release: https://github.com/linux-rdma/rdma-core/commit/ce0274acffc78ed2861a56bdc34cdd3d60c20e1f Define container_of locally if it's not already defined --- lib/iser.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) Index: libiscsi-1.18.0/lib/iser.c =================================================================== --- libiscsi-1.18.0.orig/lib/iser.c +++ libiscsi-1.18.0/lib/iser.c @@ -32,6 +32,20 @@ #include <semaphore.h> #include <poll.h> + +#ifndef container_of +/** + * container_of - cast a member of a structure out to the containing structure + * @ptr: the pointer to the member. + * @type: the type of the container struct this is embedded in. + * @member: the name of the member within the struct. + * + */ +#define container_of(ptr, type, member) \ + ((type *) ((uint8_t *)(ptr) - offsetof(type, member))) +#endif + + #ifdef __linux static int cq_handle(struct iser_conn *iser_conn);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor