mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
um: Add compile time assert that stub fits on a page
The code assumes that the stub code can fit into a single page. This is unlikely to ever change, but add a link time assert instead so that there will be no hard to debug error. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Link: https://patch.msgid.link/20240919124511.282088-6-benjamin@sipsolutions.net Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
fdb2ecd35d
commit
77eb31b600
|
|
@ -178,3 +178,6 @@ SECTIONS
|
|||
|
||||
DISCARDS
|
||||
}
|
||||
|
||||
ASSERT(__syscall_stub_end - __syscall_stub_start <= PAGE_SIZE,
|
||||
"STUB code must not be larger than one page");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user