Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Issue 1071653002: Remove #include <asm/unistd.h> from linux_syscall_ranges.h and syscall.cc. (Closed)

Created:
5 years, 8 months ago by hidehiko
Modified:
5 years, 8 months ago
Reviewers:
mdempsky
CC:
chromium-reviews, rickyz+watch_chromium.org, jln+watch_chromium.org, jln (very slow on Chromium), Mark Seaborn, hamaji, mazda
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove #include <asm/unistd.h> from linux_syscall_ranges.h and syscall.cc. The header is included for __NR_SYSCALL_BASE and __ARM_NR_BASE. Some toolchain (in particular, PNaCl toolchain) does not provide asm/unistd.h (so that neither __NR_SYSCALL_BASE nor __ARM_NR_BASE is provided). This CL removes the dependency to asm/unistd.h from linux_syscall_ranges.h, instead define the values if necessary. Also, this CL removes the include from syscall.cc, too, which is unused. TEST=Ran bots. BUG=358465 Committed: https://crrev.com/c2352bce792e735fc6be6f2d62c03652a3111e16 Cr-Commit-Position: refs/heads/master@{#324371}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M sandbox/linux/bpf_dsl/linux_syscall_ranges.h View 1 2 chunks +7 lines, -5 lines 0 comments Download
M sandbox/linux/seccomp-bpf/syscall.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 10 (4 generated)
hidehiko
PTAL.
5 years, 8 months ago (2015-04-08 17:26:10 UTC) #2
mdempsky
lgtm https://codereview.chromium.org/1071653002/diff/1/sandbox/linux/bpf_dsl/linux_syscall_ranges.h File sandbox/linux/bpf_dsl/linux_syscall_ranges.h (right): https://codereview.chromium.org/1071653002/diff/1/sandbox/linux/bpf_dsl/linux_syscall_ranges.h#newcode28 sandbox/linux/bpf_dsl/linux_syscall_ranges.h:28: #define __NR_SYSCALL_BASE 0 Unless you think there's any ...
5 years, 8 months ago (2015-04-08 18:23:51 UTC) #3
hidehiko
Thank you for review. Submitting. https://codereview.chromium.org/1071653002/diff/1/sandbox/linux/bpf_dsl/linux_syscall_ranges.h File sandbox/linux/bpf_dsl/linux_syscall_ranges.h (right): https://codereview.chromium.org/1071653002/diff/1/sandbox/linux/bpf_dsl/linux_syscall_ranges.h#newcode28 sandbox/linux/bpf_dsl/linux_syscall_ranges.h:28: #define __NR_SYSCALL_BASE 0 On ...
5 years, 8 months ago (2015-04-09 02:34:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071653002/40001
5 years, 8 months ago (2015-04-09 02:35:42 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 8 months ago (2015-04-09 04:28:45 UTC) #9
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 04:29:43 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c2352bce792e735fc6be6f2d62c03652a3111e16
Cr-Commit-Position: refs/heads/master@{#324371}

Powered by Google App Engine
This is Rietveld 408576698