mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-14 06:16:17 +03:00
Fix a declaration position of the nth_page.
Compilation time bug introduced by 87df5e4 commit.
Fix for the compilation error(Linux kernel 6.18.0):
"zfs/module/os/linux/zfs/abd_os.c:920:32: error: implicit declaration
of function ‘nth_page’; did you mean ‘pte_page’?
[-Werror=implicit-function-declaration]".
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Signed-off-by: agiUnderground <alex.dev.cv@gmail.com>
Closes #18034
This commit is contained in:
parent
a62c62120e
commit
104da9657a
@ -888,6 +888,14 @@ abd_iter_advance(struct abd_iter *aiter, size_t amount)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef nth_page
|
||||||
|
/*
|
||||||
|
* Since 6.18 nth_page() no longer exists, and is no longer required to iterate
|
||||||
|
* within a single SG entry, so we replace it with a simple addition.
|
||||||
|
*/
|
||||||
|
#define nth_page(p, n) ((p)+(n))
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Map the current chunk into aiter. This can be safely called when the aiter
|
* Map the current chunk into aiter. This can be safely called when the aiter
|
||||||
* has already exhausted, in which case this does nothing.
|
* has already exhausted, in which case this does nothing.
|
||||||
@ -1123,14 +1131,6 @@ abd_return_buf_copy(abd_t *abd, void *buf, size_t n)
|
|||||||
#define ABD_ITER_PAGE_SIZE(page) (PAGESIZE)
|
#define ABD_ITER_PAGE_SIZE(page) (PAGESIZE)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef nth_page
|
|
||||||
/*
|
|
||||||
* Since 6.18 nth_page() no longer exists, and is no longer required to iterate
|
|
||||||
* within a single SG entry, so we replace it with a simple addition.
|
|
||||||
*/
|
|
||||||
#define nth_page(p, n) ((p)+(n))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void
|
void
|
||||||
abd_iter_page(struct abd_iter *aiter)
|
abd_iter_page(struct abd_iter *aiter)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user