mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
bottom_half.h needs _THIS_IP_ to be standalone, so split that and _RET_IP_ out from kernel.h into the new instruction_pointer.h. kernel.h directly needs them, so include it there and replace the include of kernel.h with this new file in bottom_half.h. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
9 lines
294 B
C
9 lines
294 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_INSTRUCTION_POINTER_H
|
|
#define _LINUX_INSTRUCTION_POINTER_H
|
|
|
|
#define _RET_IP_ (unsigned long)__builtin_return_address(0)
|
|
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
|
|
|
|
#endif /* _LINUX_INSTRUCTION_POINTER_H */
|