Skip to content

Commit

Permalink
page.c: Disable gcc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Mar 28, 2024
1 parent d94de7f commit ab58f07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions page.c
Expand Up @@ -133,6 +133,9 @@ static struct mempage *mempage_lookup(u64 addr)
return NULL;
}

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"

static struct mempage *
mempage_insert_lookup(u64 addr, struct rb_node * node)
{
Expand All @@ -156,6 +159,8 @@ mempage_insert_lookup(u64 addr, struct rb_node * node)
return NULL;
}

#pragma GCC diagnostic pop

static struct mempage *mempage_insert(u64 addr, struct mempage *mp)
{
mp->addr = addr;
Expand Down

0 comments on commit ab58f07

Please sign in to comment.