ff9e32bb80
Prior to the v5.10-based StarlingX kernel, the "#ifdef CONFIG_SIGEXIT" guard in prctl.h would require the user-space to either define the CONFIG_SIGEXIT macro, or define the PR_DO_NOTIFY_TASK_STATE macro *and* the task_state_notify_info structure to avoid build failures. The service manager code had taken the latter approach. Now that the prctl.h header file has been fixed in the v5.10-based kernel to not guard these user-space APIs with "#ifdef CONFIG_SIGEXIT", the service manager is encountering the following compilation errors: sm_process_death.c:49:8: error: redefinition of \ 'struct task_state_notify_info' struct task_state_notify_info ^ In file included from /usr/include/sys/prctl.h:22:0, from sm_process_death.c:18: /usr/include/linux/prctl.h:76:8: error: previous definition of \ 'struct task_state_notify_info' struct task_state_notify_info { ^ This commit avoids these errors by detecting whether the PR_DO_NOTIFY_TASK_STATE macro has already been defined, which ought to preserve backwards compatibility with older StarlingX kernels. Story: 2008921 Change-Id: I0c28fe8b3d314931583462a3377f81ec0ca1f630 Signed-off-by: M. Vefa Bicakci <vefa.bicakci@windriver.com> |
||
---|---|---|
api-ref/source | ||
devstack | ||
doc | ||
releasenotes | ||
service-mgmt | ||
service-mgmt-api | ||
service-mgmt-client | ||
service-mgmt-tools | ||
stx-ocf-scripts | ||
.gitignore | ||
.gitreview | ||
.zuul.yaml | ||
CONTRIBUTORS.wrs | ||
LICENSE | ||
README.rst | ||
centos_build_layer.cfg | ||
centos_dev_wheels.inc | ||
centos_iso_image.inc | ||
centos_pkg_dirs | ||
centos_stable_wheels.inc | ||
github_sync.trigger | ||
pylint.rc | ||
test-requirements.txt | ||
tox.ini |
README.rst
ha
StarlingX Service Management