Commit 6b41df96 authored by Antonio Pena Monferrer's avatar Antonio Pena Monferrer
Browse files

Fix strict-aliasing rules break in Portals netmod

Going from a macro to a function fixes the issue because of creating a
copy of the pointer.
Signed-off-by: Kenneth Raffenetti's avatarKen Raffenetti <>
parent 8d261127
......@@ -58,7 +58,9 @@ typedef struct {
} MPID_nem_ptl_req_area;
/* macro for ptl private in req */
#define REQ_PTL(req) ((MPID_nem_ptl_req_area *)((req)->ch.netmod_area.padding))
static inline MPID_nem_ptl_req_area * REQ_PTL(MPID_Request *req) {
return (MPID_nem_ptl_req_area *)req->ch.netmod_area.padding;
#define MPID_nem_ptl_init_req(req_) do { \
int i; \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment