Skip to content

Conversation

@sidharth-458
Copy link

Add cast in stack allocation for task creation

Description

for negative portSTACK_GROWTH, add cast to stack allocation, just like it is in positive portSTACK_GROWTH

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Member

@AhmedIsmail02 AhmedIsmail02 left a comment

Choose a reason for hiding this comment

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

This typecast was previously removed here. However, since pvPortMallocStack() may be provided by the application when configSTACK_ALLOCATION_FROM_SEPARATE_HEAP is set to 1, its return type is not fixed across all configurations. Adding the explicit cast restores consistency with existing kernel code and makes the intended pointer type explicit.

@AhmedIsmail02
Copy link
Member

@sidharth-458 Could you please rebase your branch with the latest version of the main branch? This should fix the failing link-verifier job.

for negative portSTACK_GROWTH, add cast to stack allocation, just like it is in positive portSTACK_GROWTH
@sidharth-458 sidharth-458 force-pushed the add_cast_in_stack_allocation branch from 82187b5 to e430418 Compare December 20, 2025 07:10
@sonarqubecloud
Copy link

@sidharth-458
Copy link
Author

@AhmedIsmail02 I have rebased my branch, is it ok now?

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.

3 participants