Skip to content

Remove unused Linux struct metal_state members#361

Open
glneo wants to merge 3 commits into
OpenAMP:mainfrom
glneo:lib-system-linux
Open

Remove unused Linux struct metal_state members#361
glneo wants to merge 3 commits into
OpenAMP:mainfrom
glneo:lib-system-linux

Conversation

@glneo
Copy link
Copy Markdown
Contributor

@glneo glneo commented Apr 20, 2026

No description provided.

glneo added 3 commits April 20, 2026 12:12
Nothing in libmetal uses RNG. It is unexpected for an application calling
metal_init() to have its RNG seed reset. An application for instance may
want a static seed for testing. If an application wants a new random seed
then it can set it itself. Setting global program state like this is not
something that should be done unconditionally by libmetal.

Signed-off-by: Andrew Davis <afd@ti.com>
This path was used to hold either /tmp or hugetlbfs_path, but it wasn't
used in either case. It was also incorrectly labeled as holding sysfs
path.. Drop this unused structure member.

Signed-off-by: Andrew Davis <afd@ti.com>
Access to pagemap is restricted to only root or CAP_SYS_ADMIN making this
open fail when applications are not run as root. The pagemap is only used
when trying to do shmem and not all libmetal users need this. Only try
to open pagemap when needed to remove warnings for non-shmem using apps.

Signed-off-by: Andrew Davis <afd@ti.com>
@arnopo
Copy link
Copy Markdown
Contributor

arnopo commented Apr 27, 2026

I plan to review this and #362 after the release

@arnopo arnopo requested review from arnopo, edmooring and tnmysh April 27, 2026 11:50
Copy link
Copy Markdown
Contributor

@arnopo arnopo left a comment

Choose a reason for hiding this comment

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

LGTM, I run few tests in Libmetal and system reference , no regression found

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.

2 participants