forked from Ivasoft/openwrt
kernel: remove obsolete kernel version switches
This removes unneeded kernel version switches from the targets after kernel 5.10 has been dropped. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
This commit is contained in:
committed by
Christian Lamparter
parent
5e91b4507c
commit
7365e6b00a
@@ -73,11 +73,7 @@
|
||||
|
||||
int parse_fit_partitions(struct parsed_partitions *state, u64 fit_start_sector, u64 sectors, int *slot, int add_remain)
|
||||
{
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
|
||||
struct block_device *bdev = state->disk->part0;
|
||||
#else
|
||||
struct block_device *bdev = state->bdev;
|
||||
#endif
|
||||
struct address_space *mapping = bdev->bd_inode->i_mapping;
|
||||
struct page *page;
|
||||
void *fit, *init_fit;
|
||||
|
||||
Reference in New Issue
Block a user