config/dracut/90zfs: handle cases where hostid(1) returns all zeros
[zfs.git] / include / sys / frame.h
blobcaae851421d8851fddbc71255665703f5d740e33
1 /*
2 * CDDL HEADER START
4 * This file and its contents are supplied under the terms of the
5 * Common Development and Distribution License ("CDDL"), version 1.0.
6 * You may only use this file in accordance with the terms of version
7 * 1.0 of the CDDL.
9 * A full copy of the text of the CDDL should have accompanied this
10 * source. A copy of the CDDL is also available via the Internet at
11 * http://www.illumos.org/license/CDDL.
13 * CDDL HEADER END
16 * Copyright (C) 2017 by Lawrence Livermore National Security, LLC.
19 #ifndef _SYS_FRAME_H
20 #define _SYS_FRAME_H
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 #if defined(__KERNEL__) && defined(HAVE_KERNEL_OBJTOOL) && \
27 defined(HAVE_STACK_FRAME_NON_STANDARD)
28 #if defined(HAVE_KERNEL_OBJTOOL_HEADER)
29 #include <linux/objtool.h>
30 #else
31 #include <linux/frame.h>
32 #endif
33 #else
34 #define STACK_FRAME_NON_STANDARD(func)
35 #endif
37 #ifdef __cplusplus
39 #endif
41 #endif /* _SYS_FRAME_H */