Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp562703ybg; Thu, 19 Mar 2020 04:54:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsnREBPOi0vIXeVIMavo6yGB7LIr8S65aa5je2mVX4PZM4ZZTnMh1txdYpWj00BbiAXSTdS X-Received: by 2002:a9d:247:: with SMTP id 65mr1993296otb.364.1584618864474; Thu, 19 Mar 2020 04:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584618864; cv=none; d=google.com; s=arc-20160816; b=JLdWQpVoRvu/70lYWMhQBnHKkEKnbwcAdrFpN7xh9oUwzAWnSYAzWRRlCEdO4+EyIR s9XWiwWw+/5hS9F1AkdEl1j4BwdWmEslupu7L0KaCeCTO4ahx8Tbi/zDn294IiihUrHc SNeNvU4NymZxvx1JSsZODUA+AfOPagZyxvnmdPLsQiGuCl8u1oLbLt4D+9V6Mz1+Px3j QUwnzC/AMdPa+Q64lMWC3Fzp91DMhJIn5YCq+fJKk+6BBK46zt+pkdLokAFHQ2nwi4uc rBqjV0YG3uLY4J7krBscXdz5+eIR8EzzNF1Q/bHcpAPWuW+WfuEXALemUJRa6dVNmtFw Ushg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fv5NL/0nivPoWCRJXjrvRX7S1GX1TKjTW98Edrf3fq0=; b=QhrjflbjzyDkEMZ2UAp7eFUDPYV2//lgKGwAaM4l234P/Ap0tKvx3YWM9ohHnZTOpY zgxW1QDiIjSYuAaIXKcOsW8/bw6koTvmSVsbNioPs1vC3/ogliK1YpBN3U2Nt98mztwt TT3BxU5SzrDq73jRWyI8cCHm6qRqklgdniHIGveWeWsSXAIb9oc9eySrDnNJ4v9satcL FfbjqGsZ24lO2cMJHv8BOgHie9+nLCkmBwWTb+lwiOiCtNw2JeffYRLnqHOAZ7su1QI0 eNQGlVYYJIpivWB1T99GA8VVAafqc12pPAHgsmUVIz4hkXkGCIXdL9sHHz2g8t2hbTiI ieqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si1151352otp.317.2020.03.19.04.54.12; Thu, 19 Mar 2020 04:54:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726926AbgCSLw4 (ORCPT + 99 others); Thu, 19 Mar 2020 07:52:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:45050 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgCSLw4 (ORCPT ); Thu, 19 Mar 2020 07:52:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 41949ACEF; Thu, 19 Mar 2020 11:52:52 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org Cc: Michal Suchanek , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Alexander Viro , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Greg Kroah-Hartman , Jonathan Cameron , Andy Shevchenko , Christophe Leroy , Thomas Gleixner , Arnd Bergmann , Nayna Jain , Eric Richter , Claudio Carvalho , Nicholas Piggin , Hari Bathini , Masahiro Yamada , Thiago Jung Bauermann , Sebastian Andrzej Siewior , Valentin Schneider , Jordan Niethe , Michael Neuling , Gustavo Luiz Duarte , Allison Randal , "Eric W. Biederman" , linux-kernel@vger.kernel.org, "linux-fsdevel @ vger . kernel . org --in-reply-to=" <20200225173541.1549955-1-npiggin@gmail.com> Subject: [PATCH v11 1/8] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro Date: Thu, 19 Mar 2020 12:52:21 +0100 Message-Id: <9c35e5b04213a0fcd55458271d58e203e5bc3486.1584613649.git.msuchanek@suse.de> X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This partially reverts commit caf6f9c8a326 ("asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macro") When CONFIG_COMPAT is disabled on ppc64 the kernel does not build. There is resistance to both removing the llseek syscall from the 64bit syscall tables and building the llseek interface unconditionally. Link: https://lore.kernel.org/lkml/20190828151552.GA16855@infradead.org/ Link: https://lore.kernel.org/lkml/20190829214319.498c7de2@naga/ Signed-off-by: Michal Suchanek Reviewed-by: Arnd Bergmann --- v7: new patch --- arch/powerpc/include/asm/unistd.h | 1 + fs/read_write.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h index b0720c7c3fcf..700fcdac2e3c 100644 --- a/arch/powerpc/include/asm/unistd.h +++ b/arch/powerpc/include/asm/unistd.h @@ -31,6 +31,7 @@ #define __ARCH_WANT_SYS_SOCKETCALL #define __ARCH_WANT_SYS_FADVISE64 #define __ARCH_WANT_SYS_GETPGRP +#define __ARCH_WANT_SYS_LLSEEK #define __ARCH_WANT_SYS_NICE #define __ARCH_WANT_SYS_OLD_GETRLIMIT #define __ARCH_WANT_SYS_OLD_UNAME diff --git a/fs/read_write.c b/fs/read_write.c index 59d819c5b92e..bbfa9b12b15e 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -331,7 +331,8 @@ COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned i } #endif -#if !defined(CONFIG_64BIT) || defined(CONFIG_COMPAT) +#if !defined(CONFIG_64BIT) || defined(CONFIG_COMPAT) || \ + defined(__ARCH_WANT_SYS_LLSEEK) SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high, unsigned long, offset_low, loff_t __user *, result, unsigned int, whence) -- 2.23.0