Skip to content

Mark functions generated by the module! macro as unsafe #629

Closed
@bjorn3

Description

@bjorn3

Most of them are unsafe despite not being marked as such. For example fn __init and fn __exit contain unsynchronized accesses to static mut __MOD. There are also several extern "C" functions which call __init and __exit. These need to be marked as unsafe too.

cc https://rust-for-linux.zulipchat.com/#narrow/stream/288089-General/topic/patch.20v3.20review/near/268298086

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomers• kbuildRelated to building the kernel, `make`, `Kbuild`, `Kconfig` options...

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions