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

kernel/vm: Make some functions static and remove dead code #550

Merged
merged 4 commits into from
May 24, 2024

Conversation

astalke
Copy link
Contributor

@astalke astalke commented May 15, 2024

Description

  • MISRA
  • Make _page_map and _page_initSizes static
  • Remove dead function _page_showSizes

Fixes: phoenix-rtos/phoenix-rtos-project#1071
Fixes: phoenix-rtos/phoenix-rtos-project#1072
Fixes: phoenix-rtos/phoenix-rtos-project#1073
Fixes: phoenix-rtos/phoenix-rtos-project#1080
Fixes: phoenix-rtos/phoenix-rtos-project#1082

JIRA: RTOS-836

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (refactoring, style fixes, git/CI config, submodule management, no code logic changes)

How Has This Been Tested?

  • Already covered by automatic testing.
  • New test added: (add PR link here).
  • Tested by hand on: ia32-generic-qemu

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing linter checks and tests passed.
  • My changes generate no new compilation warnings for any of the targets.

Special treatment

  • This PR needs additional PRs to work (list the PRs, preferably in merge-order).
  • I will merge this PR by myself when appropriate.

vm/page.c Outdated Show resolved Hide resolved
Copy link

github-actions bot commented May 15, 2024

Unit Test Results

7 460 tests  ±0   6 745 ✅ ±0   39m 7s ⏱️ +6s
  420 suites ±0     715 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit d82e54d. ± Comparison against base commit a3369fa.

♻️ This comment has been updated with latest results.

niewim19
niewim19 previously approved these changes May 20, 2024
Copy link
Contributor

@niewim19 niewim19 left a comment

Choose a reason for hiding this comment

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

vm/page.c Outdated Show resolved Hide resolved
vm/page.c Outdated Show resolved Hide resolved
vm/page.c Outdated Show resolved Hide resolved
agkaminski
agkaminski previously approved these changes May 21, 2024
Copy link
Member

@agkaminski agkaminski left a comment

Choose a reason for hiding this comment

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

LGTM

agkaminski
agkaminski previously approved these changes May 21, 2024
@niewim19
Copy link
Contributor

@damianloew is this PR`s CI able to be repaired by rerunning campaign? Or do we hold it as error case?

@damianloew
Copy link
Contributor

@damianloew is this PR`s CI able to be repaired by rerunning campaign? Or do we hold it as error case?

Re-run should help, I've already done it :)

niewim19
niewim19 previously approved these changes May 24, 2024
Copy link
Contributor

@niewim19 niewim19 left a comment

Choose a reason for hiding this comment

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

Thanks for implementing these chore changes!

vm/page.c Show resolved Hide resolved
test/vm.c Show resolved Hide resolved
- Remove unreachable function `vm_pageFreeAt`
- Merge `_page_free` and `vm_pageFree`

Fixes: phoenix-rtos/phoenix-rtos-project#1080
Fixes: phoenix-rtos/phoenix-rtos-project#1082

JIRA: RTOS-836
@Darchiv Darchiv merged commit 828df3f into master May 24, 2024
30 checks passed
@Darchiv Darchiv deleted the astalke/RTOS-836 branch May 24, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants