Skip to content

Commit

Permalink
arch/um: partially revert the conversion to __section() macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Torvalds committed Oct 26, 2020
1 parent 41ba50b commit bf9a76a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/um/kernel/skas/clone.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* on some systems.
*/

void __section(".__syscall_stub")
void __attribute__ ((__section__ (".__syscall_stub")))
stub_clone_handler(void)
{
struct stub_data *data = (struct stub_data *) STUB_DATA;
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/um/stub_segv.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <sysdep/mcontext.h>
#include <sys/ucontext.h>

void __section(".__syscall_stub")
void __attribute__ ((__section__ (".__syscall_stub")))
stub_segv_handler(int sig, siginfo_t *info, void *p)
{
ucontext_t *uc = p;
Expand Down

0 comments on commit bf9a76a

Please sign in to comment.