-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libpldm: Stabilizing pldm_close() #12
Conversation
Can one of the admins verify this patch? |
please run jenkins CI test |
add to approvelist |
can you add a comment that this is a old/deprecated API in the header file libpldm/include/libpldm/requester/pldm.h like its done https://github.com/openbmc/libpldm/blob/1d0e2d4b23ad6880e6122c478fcc77b02681655e/include/libpldm/requester/pldm.h#L31 |
Similar comment is already there. |
Changing ABI visibility from TESTING to STABLE for a requester API pldm_close() which uses pldm_transport_mctp_demux_destroy(), a transport API whose visibility is also changed likewise. Use of pldm_close is demonstrated here- https://gerrit.openbmc.org/c/openbmc/openpower-occ-control/+/66800 Tested: Error injection did not result in any pldm_send() failure Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
To ensure memmem() is visible _GNU_SOURCE needs to be defined early, at least before any system headers are included. Define it in the build flags as clang-tidy will re-order includes based on vibes rather than dependencies. Finally, clean up the remaining compiler warnings by dropping the unnecessary casts. Note that _GNU_SOURCE implies _DEFAULT_SOURCE, so we drop the latter: > Since glibc 2.19, defining _GNU_SOURCE also has the effect of > implicitly defining _DEFAULT_SOURCE. Before glibc 2.20, defining > _GNU_SOURCE also had the effect of implicitly defining _BSD_SOURCE > and _SVID_SOURCE. https://www.man7.org/linux/man-pages/man7/feature_test_macros.7.html Fixes: ibm-openbmc#12 Fixes: 1523778 ("msgbuf: Add pldm_msgbuf_span_string_utf16()") Change-Id: I9206f7616740790a89366762cce11d3045471b97 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
To ensure memmem() is visible _GNU_SOURCE needs to be defined early, at least before any system headers are included. Define it in the build flags as clang-tidy will re-order includes based on vibes rather than dependencies. Finally, clean up the remaining compiler warnings by dropping the unnecessary casts. Note that _GNU_SOURCE implies _DEFAULT_SOURCE, so we drop the latter: > Since glibc 2.19, defining _GNU_SOURCE also has the effect of > implicitly defining _DEFAULT_SOURCE. Before glibc 2.20, defining > _GNU_SOURCE also had the effect of implicitly defining _BSD_SOURCE > and _SVID_SOURCE. https://www.man7.org/linux/man-pages/man7/feature_test_macros.7.html Fixes: ibm-openbmc#12 Fixes: 1523778 ("msgbuf: Add pldm_msgbuf_span_string_utf16()") Change-Id: I9206f7616740790a89366762cce11d3045471b97 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Changing ABI visibility from TESTING to
STABLE for a requester API pldm_close()
which uses pldm_transport_mctp_demux_destroy(),
a transport API whose visibility is also
changed likewise.
Use of pldm_close is demonstrated here-
https://gerrit.openbmc.org/c/openbmc/openpower-occ-control/+/66800
Tested: Error injection did not result in any
pldm_send() failure