Skip to content

Commit bf9a76a

Browse files
committed
arch/um: partially revert the conversion to __section() macro
A couple of um files ended up not including the header file that defines the __section() macro, and the simplest fix is to just revert the change for those files. Fixes: 33def84 treewide: Convert macro and uses of __section(foo) to __section("foo") Reported-and-tested-by: Guenter Roeck <linux@roeck-us.net> Cc: Joe Perches <joe@perches.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 41ba50b commit bf9a76a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

arch/um/kernel/skas/clone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* on some systems.
2222
*/
2323

24-
void __section(".__syscall_stub")
24+
void __attribute__ ((__section__ (".__syscall_stub")))
2525
stub_clone_handler(void)
2626
{
2727
struct stub_data *data = (struct stub_data *) STUB_DATA;

arch/x86/um/stub_segv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <sysdep/mcontext.h>
99
#include <sys/ucontext.h>
1010

11-
void __section(".__syscall_stub")
11+
void __attribute__ ((__section__ (".__syscall_stub")))
1212
stub_segv_handler(int sig, siginfo_t *info, void *p)
1313
{
1414
ucontext_t *uc = p;

0 commit comments

Comments
 (0)