Changeset 61eb2ce2 in mainline for kernel/genarch/src/mm/page_ht.c


Ignore:
Timestamp:
2023-02-05T22:03:19Z (15 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b596d0d
Parents:
07700ed
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-05 22:01:46)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-05 22:03:19)
Message:

Make hash table operations immutable, because global mutable state is evil

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/mm/page_ht.c

    r07700ed r61eb2ce2  
    8282
    8383/** Hash table operations for page hash table. */
    84 hash_table_ops_t ht_ops = {
     84const hash_table_ops_t ht_ops = {
    8585        .hash = ht_hash,
    8686        .key_hash = ht_key_hash,
     
    9090
    9191/** Page mapping operations for page hash table architectures. */
    92 page_mapping_operations_t ht_mapping_operations = {
     92const page_mapping_operations_t ht_mapping_operations = {
    9393        .mapping_insert = ht_mapping_insert,
    9494        .mapping_remove = ht_mapping_remove,
Note: See TracChangeset for help on using the changeset viewer.