Skip to content

Commit dd1a80c

Browse files
committed
arc, metag, nios2, or1k, tile: fix build
Fix build regression introduced by commit 34683e3. * linux/32/syscallent.h: Add sys_ prefix to ARCH_mmap and mmap. * linux/arc/syscallent.h: Add sys_ prefix to ARCH_mmap and mmap_pgoff. * linux/nios2/syscallent.h: Likewise. * linux/or1k/syscallent.h: Likewise. * linux/tile/syscallent1.h: Add sys_ prefix to ARCH_mmap and sys_mmap_4koff. * pathtrace.c (pathtrace_match): Handle SEN_ARCH_mmap. * NEWS: Mention this build fix. Reported-by: Alexey Brodkin <[email protected]>
1 parent 24fb8ef commit dd1a80c

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Noteworthy changes in release ?.?? (????-??-??)
22
===============================================
33

4+
* Bug fixes
5+
* Fixed build on arc, metag, nios2, or1k, and tile architectures.
6+
47
Noteworthy changes in release 4.11 (2015-12-21)
58
===============================================
69

linux/32/syscallent.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef ARCH_mmap
2-
# define ARCH_mmap mmap
1+
#ifndef sys_ARCH_mmap
2+
# define sys_ARCH_mmap sys_mmap
33
#endif
44
[ 0] = { 2, 0, SEN(io_setup), "io_setup" },
55
[ 1] = { 1, 0, SEN(io_destroy), "io_destroy" },
@@ -276,5 +276,5 @@
276276
[283] = { 2, 0, SEN(membarrier), "membarrier", },
277277
[284] = { 3, TM, SEN(mlock2), "mlock2" },
278278

279-
#undef ARCH_mmap
279+
#undef sys_ARCH_mmap
280280
#undef ARCH_WANT_SYNC_FILE_RANGE2

linux/arc/syscallent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define ARCH_mmap mmap_pgoff
1+
#define sys_ARCH_mmap sys_mmap_pgoff
22
#include "32/syscallent.h"
33
[244] = { 3, 0, SEN(printargs), "arc_cacheflush"},
44
[245] = { 1, 0, SEN(printargs), "arc_settls" },

linux/nios2/syscallent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define ARCH_mmap mmap_pgoff
1+
#define sys_ARCH_mmap sys_mmap_pgoff
22
#include "32/syscallent.h"
33
[244] = {4, 0, SEN(cacheflush), "cacheflush"},
44
[245 ... 259] = { },

linux/or1k/syscallent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define ARCH_mmap mmap_pgoff
1+
#define sys_ARCH_mmap sys_mmap_pgoff
22
#include "32/syscallent.h"
33
[244] = { 3, NF, SEN(or1k_atomic), "or1k_atomic" },
44
[245 ... 259] = { },

linux/tile/syscallent1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define ARCH_mmap mmap_4koff
1+
#define sys_ARCH_mmap sys_mmap_4koff
22
#define ARCH_WANT_SYNC_FILE_RANGE2 1
33
#include "32/syscallent.h"
44
[244] = { 1, 0, SEN(printargs), "cmpxchg_badaddr" },

pathtrace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ pathtrace_match(struct tcb *tcp)
216216
case SEN_mmap:
217217
case SEN_mmap_4koff:
218218
case SEN_mmap_pgoff:
219+
case SEN_ARCH_mmap:
219220
/* x, x, x, x, fd */
220221
return fdmatch(tcp, tcp->u_arg[4]);
221222

0 commit comments

Comments
 (0)