Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp588307ybg; Thu, 19 Mar 2020 05:20:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvthwIPt/n5aEsEKbpEsrP4jBbVF2uHIsJJfrFr+P9sgTbQMZ2RyAPaJxwhXAANvmyMh01a X-Received: by 2002:a9d:60b:: with SMTP id 11mr2042295otn.126.1584620425303; Thu, 19 Mar 2020 05:20:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584620425; cv=none; d=google.com; s=arc-20160816; b=ObCob93/cGZUi0XBK6opTl3ixb2XVoFj6JV2WzFDk9MQcaBLyFpQ01St6ZqSdYrsHP lpLZPsOa1PHfX6KH7pqzbvF2YsAza5E2wz1BXXnJKR7pDvweHAQW1GWRQqX1PysyolBn V61kUS0CJTdBl3DY9Gvs5e9Aatv3C10rMMtnu/IIqlosmymG0w5OYOO2mxMOcoWDJYt1 IwZ3WsFR+6Trxj2a7BcsYAPJVoIk+iNPbiyhMcoBxPz/j6eEVxeQ/10/YGDIPpgGrdLY SSx0ZferL4TAMV7znn6WBfHCslEWEfYdYeIKCtEB8GJKf9d/l3NpYrF723u8/r5+dXXk RKzw== 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=LhCDjvAEBkEdlmoKyhEDIGWsTMfQlqjHevMHMGSlgJ2LjBY9clI8MO9Y1+f1kie2ux qyxba1sORItiZwriPFTZqOrH9vnZN/etdLvJ7Ok9mflMYagKKj1paSP4afjZD1YTra7p 6RoqgNpTzgtHqrAWDCkzorlB/DN0H8p6aVGKToR0bDd3z1N76xxjCmCCNLxAK6hymYaw lCcbNYtGJ1u63tmmGH2Zx73g03kLkxWVHSf73FIWysVhwH92JNPQzmWpE7tSae7hUUhU Km5gex8OUIiYkOxCegCXWq/nFBEnZofhPAVVd1I7Rs0loMNoCIOTwu1h3WOBRtAJqUiV FeJA== 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 c2si1569341ots.188.2020.03.19.05.20.08; Thu, 19 Mar 2020 05:20:25 -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 S1727095AbgCSMTp (ORCPT + 99 others); Thu, 19 Mar 2020 08:19:45 -0400 Received: from mx2.suse.de ([195.135.220.15]:34098 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgCSMTo (ORCPT ); Thu, 19 Mar 2020 08:19:44 -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 C016FB071; Thu, 19 Mar 2020 12:19:41 +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 Subject: [PATCH v11 1/8] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro Date: Thu, 19 Mar 2020 13:19:29 +0100 Message-Id: <9c35e5b04213a0fcd55458271d58e203e5bc3486.1584620202.git.msuchanek@suse.de> X-Mailer: git-send-email 2.23.0 In-Reply-To: References: <20200225173541.1549955-1-npiggin@gmail.com> 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