From patchwork Fri Feb 19 13:42:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 62341 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1176345lbl; Fri, 19 Feb 2016 05:45:37 -0800 (PST) X-Received: by 10.140.254.9 with SMTP id z9mr16425860qhc.5.1455889537006; Fri, 19 Feb 2016 05:45:37 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id u108si3478661qge.50.2016.02.19.05.45.36 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 19 Feb 2016 05:45:36 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dkim=fail header.i=@linaro.org Received: from localhost ([::1]:52418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWlNI-0004xo-IJ for patch@linaro.org; Fri, 19 Feb 2016 08:45:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWlKV-0000Fb-PI for qemu-devel@nongnu.org; Fri, 19 Feb 2016 08:42:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWlKU-0004bl-Mo for qemu-devel@nongnu.org; Fri, 19 Feb 2016 08:42:43 -0500 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]:33736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWlKU-0004bI-9Q for qemu-devel@nongnu.org; Fri, 19 Feb 2016 08:42:42 -0500 Received: by mail-lf0-x229.google.com with SMTP id m1so54525225lfg.0 for ; Fri, 19 Feb 2016 05:42:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=3z8/pxi68EjfBvpFZe52W2kSh7RI1cQ/MZan+k4zH/Q=; b=i/jxNtsjSXplKE19SVg5zL3WHBGelqc4S8G3FBBBYLDjHTYsGDGYI1wFwn/erng6SU 43Ir22Ry4ymwwqM6vFHmprCsHnD2TWqJbOXokA5qED6w6QdF6I34cwx/e57Xvi6sHxcn k3DL27nmoVkzJp31J0Fe92Mpdjl3Zh34qhO8A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3z8/pxi68EjfBvpFZe52W2kSh7RI1cQ/MZan+k4zH/Q=; b=D39IbdEw/O4dnz7VzfXal3DzpAkhiRqaoz0Bv/GfI49tooX0satZCLQhtmsQ4HTFUR F3Wp4R5kcw4SR4Z70nKEwwZIpi6oHL0htYOj9rwcHz3YZmqCo/NyqV16pLooW/F5q3mZ D9oa3wncQWjv6s4fWI3HWjkOMNwKjAxX9Xlh6IWstZjdwg8bgWeTM0Sed3OsF+/ghOMg j88Lfata3PBWo/Sq/9cW753A/LCP4B7rKwkbHpy/Ofo4+GycBN8Y3xGjCRvCW4xp8xWP OIM1EAOcsDdwd7tkrSPwiz3vjNpCpPKngdjJv+gH81aTZ9gMahJxXW0dYPe/BJX8zxr/ BQUA== X-Gm-Message-State: AG10YOQZ6jN5BM5CHbp3V7B0usEoUQoLJrJoZNKy3xGMspmTRqcxlSPwkOwPuBTUb4xPOYty X-Received: by 10.25.26.83 with SMTP id a80mr5476595lfa.36.1455889361459; Fri, 19 Feb 2016 05:42:41 -0800 (PST) Received: from localhost.localdomain (91-157-175-207.elisa-laajakaista.fi. [91.157.175.207]) by smtp.gmail.com with ESMTPSA id o184sm1557417lfb.15.2016.02.19.05.42.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Feb 2016 05:42:40 -0800 (PST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Fri, 19 Feb 2016 15:42:24 +0200 Message-Id: <1455889354-6004-3-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 2.7.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::229 Cc: Riku Voipio Subject: [Qemu-devel] [PATCH 3/3] linux-user: correct timerfd_create syscall numbers X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Riku Voipio x86, m68k, ppc, sh4 and sparc failed to enable timerfd, because they didn't have timerfd_create system call defined. Instead Qemu defined timerfd syscall. Checking with kernel sources, it appears kernel developers reused timerfd syscall number with timerfd_create, presumably since no userspace called the old syscall number. Reportd-by: Laurent Vivier Signed-off-by: Riku Voipio --- linux-user/i386/syscall_nr.h | 2 +- linux-user/m68k/syscall_nr.h | 2 +- linux-user/ppc/syscall_nr.h | 2 +- linux-user/sh4/syscall_nr.h | 2 +- linux-user/sparc/syscall_nr.h | 2 +- linux-user/x86_64/syscall_nr.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) -- 2.7.0 diff --git a/linux-user/i386/syscall_nr.h b/linux-user/i386/syscall_nr.h index fa3f0b4..bc1bc23 100644 --- a/linux-user/i386/syscall_nr.h +++ b/linux-user/i386/syscall_nr.h @@ -324,7 +324,7 @@ #define TARGET_NR_epoll_pwait 319 #define TARGET_NR_utimensat 320 #define TARGET_NR_signalfd 321 -#define TARGET_NR_timerfd 322 +#define TARGET_NR_timerfd_create 322 #define TARGET_NR_eventfd 323 #define TARGET_NR_fallocate 324 #define TARGET_NR_timerfd_settime 325 diff --git a/linux-user/m68k/syscall_nr.h b/linux-user/m68k/syscall_nr.h index a2daba0..4b50fb2 100644 --- a/linux-user/m68k/syscall_nr.h +++ b/linux-user/m68k/syscall_nr.h @@ -317,7 +317,7 @@ #define TARGET_NR_epoll_pwait 315 #define TARGET_NR_utimensat 316 #define TARGET_NR_signalfd 317 -#define TARGET_NR_timerfd 318 +#define TARGET_NR_timerfd_create 318 #define TARGET_NR_eventfd 319 #define TARGET_NR_fallocate 320 #define TARGET_NR_timerfd_settime 321 diff --git a/linux-user/ppc/syscall_nr.h b/linux-user/ppc/syscall_nr.h index 0a5fd54..46ed8a6 100644 --- a/linux-user/ppc/syscall_nr.h +++ b/linux-user/ppc/syscall_nr.h @@ -319,7 +319,7 @@ #define TARGET_NR_epoll_pwait 303 #define TARGET_NR_utimensat 304 #define TARGET_NR_signalfd 305 -#define TARGET_NR_timerfd 306 +#define TARGET_NR_timerfd_create 306 #define TARGET_NR_eventfd 307 #define TARGET_NR_sync_file_range2 308 #define TARGET_NR_fallocate 309 diff --git a/linux-user/sh4/syscall_nr.h b/linux-user/sh4/syscall_nr.h index bdf8742..5009984 100644 --- a/linux-user/sh4/syscall_nr.h +++ b/linux-user/sh4/syscall_nr.h @@ -323,7 +323,7 @@ #define TARGET_NR_epoll_pwait 319 #define TARGET_NR_utimensat 320 #define TARGET_NR_signalfd 321 -#define TARGET_NR_timerfd 322 +#define TARGET_NR_timerfd_create 322 #define TARGET_NR_eventfd 323 #define TARGET_NR_fallocate 324 #define TARGET_NR_timerfd_settime 325 diff --git a/linux-user/sparc/syscall_nr.h b/linux-user/sparc/syscall_nr.h index 5b582a5..732b105 100644 --- a/linux-user/sparc/syscall_nr.h +++ b/linux-user/sparc/syscall_nr.h @@ -278,7 +278,7 @@ #define TARGET_NR_epoll_pwait 309 #define TARGET_NR_utimensat 310 #define TARGET_NR_signalfd 311 -#define TARGET_NR_timerfd 312 +#define TARGET_NR_timerfd_create 312 #define TARGET_NR_eventfd 313 #define TARGET_NR_fallocate 314 #define TARGET_NR_timerfd_settime 315 diff --git a/linux-user/x86_64/syscall_nr.h b/linux-user/x86_64/syscall_nr.h index f00fa2b..16397b3 100644 --- a/linux-user/x86_64/syscall_nr.h +++ b/linux-user/x86_64/syscall_nr.h @@ -281,7 +281,7 @@ #define TARGET_NR_utimensat 280 #define TARGET_NR_epoll_pwait 281 #define TARGET_NR_signalfd 282 -#define TARGET_NR_timerfd 283 +#define TARGET_NR_timerfd_create 283 #define TARGET_NR_eventfd 284 #define TARGET_NR_fallocate 285 #define TARGET_NR_timerfd_settime 286