From patchwork Sun Jan 28 14:21:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 866824 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-89721-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="CLytzVeg"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zTvw221bkz9sNV for ; Mon, 29 Jan 2018 01:21:37 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=VfinTmFBo71DIIq6IZ7e+rTqeVjDlAph14D4dONR1Dk6lydH4QDCk /nyPedSt7cqhgmZ4ojg/BnBr6WhMUS/kPdMygL3Egxj909VvOvV8NIe7eE+/jQGY ONml5GG1F+PakL7l3tEjCaQVJuyH+hfZljUwugwkx6sBF9hiAlpcWQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=ppr/2o+1029LI1rnWRBc9ZLRg+w=; b=CLytzVegYolI9CczJICHOCEZLRZe Tz7isS7Jhj4JxI3SUWqCMSDP59EfZfAT/1Ewf9kWIcsceYgu1yG2O51OTfkHO03+ 8PaXfyW7LYlvQzPnFgM3No1Iz2XXVXkdowXoMC5MY4MNfUdS4gA5MwZV3bPzdxkU AHwOdNYvA0MBMbA= Received: (qmail 43699 invoked by alias); 28 Jan 2018 14:21:31 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 43690 invoked by uid 89); 28 Jan 2018 14:21:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:549, sk:kernel-, Hx-languages-length:1685 X-HELO: mail-wm0-f67.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rnsX5vAV1fsTkO34BDES5/ZDWBLfMbzkXh1Fjjy6gxw=; b=Cz0CjPxr/ERYAkbInozdF3LHm/HP6ShzuRVARoFC0G7BaVdxBteQrg4rO5jGbFVSIy Re6oD9EOzieDXK+c17B8pdDZJYjH5OXuT52nWp8fpw4/C2s93E8qrtP48YqUNNohffKd 4+ZiKAx4f+lTWdA50WaYCNq0FkQnRA9J0YHM56jwM7L7gPERSqH6sO8oyrlZUEwyzAL8 xie/ONcMlQO5ektJ8cqsyoyOYVCaX6g6PV/Zxw734cBAgDpWH8WA2H9BocAmRx3taAvh zqMtLDnL02Lj+E0Wpbj0SIsEl2dkSMsY11+d7a5OjRupl6GtgvX5Qdxjbiafii3A/fNj E6wQ== X-Gm-Message-State: AKwxytejCddKbftx9rWeLRWB6mv1koKWVrLqViy2kWXLKrHf1czJXeiP pW4xyWZKAfQveByAre5+AYV+AC5u X-Google-Smtp-Source: AH8x2257Ow51P24rYw50TEtZKg4LW4sA8Ya3320s/XkU0Sxy2FHU+Tce0KziR5k3dGaEzaD/2TLpfA== X-Received: by 10.28.105.80 with SMTP id e77mr16405399wmc.123.1517149285385; Sun, 28 Jan 2018 06:21:25 -0800 (PST) From: Romain Naour To: libc-alpha@sourceware.org Cc: Romain Naour Subject: [PATCH] microblaze: don't use copy_file_range syscall with kernel headers < 4.10 Date: Sun, 28 Jan 2018 15:21:22 +0100 Message-Id: <20180128142122.5318-1-romain.naour@gmail.com> copy_file_range syscall was added for microblaze in 4.10. This patch makes the MicroBlaze kernel-features.h undefine __ASSUME_COPY_FILE_RANGE for toolchains built with kernel headers < 4.10. * sysdeps/unix/sysv/linux/microblaze/kernel-features.h (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef. [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=7181e5590e5ba898804aef3ee6be7f27606e6f8b Signed-off-by: Romain Naour --- For glibc 2.27 --- ChangeLog | 5 +++++ sysdeps/unix/sysv/linux/microblaze/kernel-features.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5eebc649cc..21205f9d43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-01-28 Romain Naour (tiny change) + + * sysdeps/unix/sysv/linux/microblaze/kernel-features.h + (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef. + 2018-01-27 Samuel Thibault * sysdeps/mach/hurd/xmknodat.c: Include . diff --git a/sysdeps/unix/sysv/linux/microblaze/kernel-features.h b/sysdeps/unix/sysv/linux/microblaze/kernel-features.h index e0e6483c91..745f899911 100644 --- a/sysdeps/unix/sysv/linux/microblaze/kernel-features.h +++ b/sysdeps/unix/sysv/linux/microblaze/kernel-features.h @@ -52,3 +52,8 @@ #if __LINUX_KERNEL_VERSION < 0x040000 # undef __ASSUME_EXECVEAT #endif + +/* Support for the copy_file_range syscall was added in 4.10. */ +#if __LINUX_KERNEL_VERSION < 0x040A00 +# undef __ASSUME_COPY_FILE_RANGE +#endif