mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Fix stack noinline
Certain function must never be automatically inlined by gcc because they are stack heavy or called recursively. This patch flags all such functions I've found as 'noinline' to prevent gcc from making the optimization. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
@@ -75,6 +75,12 @@ extern "C" {
|
||||
#include <sys/sysevent/dev.h>
|
||||
#include <sys/sunddi.h>
|
||||
|
||||
/*
|
||||
* Stack
|
||||
*/
|
||||
|
||||
#define noinline __attribute__((noinline))
|
||||
|
||||
/*
|
||||
* Debugging
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user