Skip to content

lwip_tcp: fix build with DEVELHELP=0#16740

Merged
fjmolinas merged 1 commit intoRIOT-OS:masterfrom
benpicco:lwip_tcp-DEVELHELP
Aug 16, 2021
Merged

lwip_tcp: fix build with DEVELHELP=0#16740
fjmolinas merged 1 commit intoRIOT-OS:masterfrom
benpicco:lwip_tcp-DEVELHELP

Conversation

@benpicco
Copy link
Contributor

Contribution description

If DEVELHELP is not set LOCK_TCPIP_CORE()/UNLOCK_TCPIP_CORE() are not defined, leading to a build failure.

Defining them to no-op leads to a run-time segmentation fault, so better always use those functions.

Testing procedure

Compile the TCP echo examples from #16739 with LWIP=1 DEVELHELP=0

Issues/PRs references

If DEVELHELP is not set `LOCK_TCPIP_CORE()`/`UNLOCK_TCPIP_CORE()`
are not defined, leading to a build failure.

Defining them to no-op leads to a run-time segmentation fault, so
better always use those functions.
@benpicco benpicco requested a review from miri64 as a code owner August 15, 2021 10:53
@benpicco benpicco added the Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) label Aug 15, 2021
@github-actions github-actions bot added Area: network Area: Networking Area: pkg Area: External package ports labels Aug 15, 2021
@benpicco benpicco added Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Aug 15, 2021
@benpicco benpicco requested review from fjmolinas and jia200x August 15, 2021 10:54
@yarrick
Copy link
Contributor

yarrick commented Aug 15, 2021

Oops, sorry. This looks reasonable.

Copy link
Contributor

@fjmolinas fjmolinas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, got the described build results without the patch.

@fjmolinas fjmolinas merged commit c1d28d6 into RIOT-OS:master Aug 16, 2021
@benpicco benpicco deleted the lwip_tcp-DEVELHELP branch August 16, 2021 07:15
@benpicco benpicco added this to the Release 2021.10 milestone Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants