Commit 49407766 authored by Sophie Blee-Goldman's avatar Sophie Blee-Goldman Committed by Pavel Emelyanov

Move function definition

Moves the definition of kerndat_init() to below the definition
of get_last_cap(). Needed for reading capabilities in a future patch.
Signed-off-by: 's avatarSophie Blee-Goldman <ableegoldman@google.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e90d0f12
...@@ -208,6 +208,18 @@ static int init_zero_page_pfn() ...@@ -208,6 +208,18 @@ static int init_zero_page_pfn()
return ret; return ret;
} }
int kern_last_cap;
int get_last_cap(void)
{
struct sysctl_req req[] = {
{ "kernel/cap_last_cap", &kern_last_cap, CTL_U32 },
{ },
};
return sysctl_op(req, CTL_READ);
}
int kerndat_init(void) int kerndat_init(void)
{ {
int ret; int ret;
...@@ -221,18 +233,6 @@ int kerndat_init(void) ...@@ -221,18 +233,6 @@ int kerndat_init(void)
return ret; return ret;
} }
int kern_last_cap;
int get_last_cap(void)
{
struct sysctl_req req[] = {
{ "kernel/cap_last_cap", &kern_last_cap, CTL_U32 },
{ },
};
return sysctl_op(req, CTL_READ);
}
int kerndat_init_rst(void) int kerndat_init_rst(void)
{ {
int ret; int ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment