Skip to content
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

Merged
merged 1 commit into from
Oct 6, 2023
Merged

libpldm: Stabilizing pldm_close() #12

merged 1 commit into from
Oct 6, 2023

Conversation

riyadixitagra
Copy link
Contributor

@riyadixitagra riyadixitagra commented Oct 4, 2023

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

@jenkins-openbmc-ibm
Copy link

Can one of the admins verify this patch?

@riyadixitagra
Copy link
Contributor Author

please run jenkins CI test

@riyadixitagra riyadixitagra changed the title libpldm: Stablize pldm_close function libpldm: Stablize pldm_close() Oct 5, 2023
@geissonator
Copy link

add to approvelist

@sagisin
Copy link
Contributor

sagisin commented Oct 5, 2023

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

@riyadixitagra
Copy link
Contributor Author

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.

@riyadixitagra riyadixitagra changed the title libpldm: Stablize pldm_close() libpldm: Stabilizing pldm_close() Oct 6, 2023
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>
@rfrandse rfrandse merged commit c5700d3 into ibm-openbmc:1050 Oct 6, 2023
manojkiraneda pushed a commit to manojkiraneda/libpldm that referenced this pull request Jul 29, 2024
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>
ArchanaKakani pushed a commit to ArchanaKakani/libpldm that referenced this pull request Sep 6, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants