Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4651541ybc; Tue, 26 Nov 2019 12:20:08 -0800 (PST) X-Google-Smtp-Source: APXvYqzHWYBNPMYpXt/T6Jjd42vPggenUAbPr5sjDjZbpUoMJxv/9yr3WHbLbxng8wiFdDNa5vIJ X-Received: by 2002:a17:906:90b:: with SMTP id i11mr46136715ejd.109.1574799608231; Tue, 26 Nov 2019 12:20:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574799608; cv=none; d=google.com; s=arc-20160816; b=wab13JP2kWCds54leFhrAP8H0rw/FQKHvewiM/L3PNr0NRWmihTZI8jSo95uYPEf0S 0VxRNvVkOqDFS26tWL9RbHR50BhSjf02SkLyCNn7JKitppoIV/kJ9drPe+MjpkIWPl6x NY3d+j/T73p/AZcqFBuPcDpJtl8RLKL8YFFANEe+a1IY37ajHhKxqnReNVESnIo80eYV zBOh7O1FmZOYj+nnvXkO9Niu4PfiJ4KeZx2vbgww8zQWCey2A2m6Fv221vQNn70n6UE3 sbQZ5BnMfds080NYiy0iouRXhCZhx8aP92mUA99jY8n5Pm/V4QmgNHtGFTELf0LaWdgh LPWg== 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=BmoFwmDWSGanAoCjt3xzFZFdO3jBSvhqEgSwrD/EMpQ=; b=BBXz4RzoRP8HhLAJ2c/W3NjzScPspvnxevTzoMc1uLzdOicbfi+zrOZ1nNpBQdIS0q tfGyMwJri+HY3GqT3UQkrGUPnti4ZK/QgOzrCrm5nAsQ/K0Sqwqkp/d97ih0M0Rk1vMz sdoYWKec3Q9a91eY8ZyGX3WCdwWk8xvzgqOhBg3+4o4r3XeRH3pmVRdC16vTCRds8wrK Z6RDVU9aig3MMf/CLtHp0dMfPhYXdR+jhu2bBohpqv0yw95pZQEBJCuyL3hcfmjH5QhG cMNQTUWWwOiYaGSaWYiz5OwD3+lQy0/SOGgBW9k0hAYe1NShYHats04EZ6KEZcO4Ov60 faxg== 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 h19si7544626ejx.34.2019.11.26.12.19.44; Tue, 26 Nov 2019 12:20:08 -0800 (PST) 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 S1727635AbfKZUP3 (ORCPT + 99 others); Tue, 26 Nov 2019 15:15:29 -0500 Received: from mx2.suse.de ([195.135.220.15]:47708 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727437AbfKZUOm (ORCPT ); Tue, 26 Nov 2019 15:14:42 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 157D0B35A; Tue, 26 Nov 2019 20:14:40 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org Cc: Michal Suchanek , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Oleg Nesterov , Alexander Viro , Christian Brauner , Nicholas Piggin , Allison Randal , "Naveen N. Rao" , Thomas Gleixner , Breno Leitao , Christophe Leroy , Claudio Carvalho , Russell Currey , Greg Kroah-Hartman , Mahesh Salgaonkar , Arnd Bergmann , Geert Uytterhoeven , Firoz Khan , Dmitry Vyukov , Masahiro Yamada , Hari Bathini , Andrew Donnellan , Nicolai Stange , Valentin Schneider , Diana Craciun , Daniel Axtens , Michael Neuling , Gustavo Romero , Mathieu Malaterre , "Steven Rostedt" , "Eric W. Biederman" , Heiko Carstens , David Howells , Brajeswar Ghosh , Jagadeesh Pagadala , David Hildenbrand , Andrew Morton , Madhavan Srinivasan , linux-kernel@vger.kernel.org Subject: [PATCH v2 27/35] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro Date: Tue, 26 Nov 2019 21:13:41 +0100 Message-Id: <7aec86ddef1b722942a52d2bb744cadd0943d15f.1574798487.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 --- 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 5bbf587f5bc1..89aa2701dbeb 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