Skip to content

Commit

Permalink
ext4: Fix an compilance error after merging from AOSP
Browse files Browse the repository at this point in the history
In the commit d21c229, `ext4_set_bits` were renamed to `mb_set_bits` for further
changes. However, while merging from AOSP upstream, I retained the `ext4_set_bits`
from upstream by mistake, which causes the error below:

fs/ext4/mballoc.c:1178:3: error: implicit declaration of function 'ext4_set_bits' [-Werror,-Wimplicit-function-declaration]
 1178 |                 ext4_set_bits(buddy, 0, count);
      |                 ^

Therefore, this commit brings back the previously replaced `mb_set_bits`.

Signed-off-by: crrashh1542 <kotsuki@crrashh.com>
  • Loading branch information
crrashh1542 committed Jul 1, 2024
1 parent f65d5c5 commit 364736f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ static void mb_regenerate_buddy(struct ext4_buddy *e4b)
void *buddy;

while ((buddy = mb_find_buddy(e4b, order++, &count)))
ext4_set_bits(buddy, 0, count);
mb_set_bits(buddy, 0, count);

e4b->bd_info->bb_fragments = 0;
memset(e4b->bd_info->bb_counters, 0,
Expand Down

0 comments on commit 364736f

Please sign in to comment.