Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5350545ybc; Wed, 27 Nov 2019 02:41:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwsL2f62xVmqF2nv8El1+ULLL3YbyBybob3imgp7Ydb2oeAPUwS2byqshQY6T6mXCKhfBeF X-Received: by 2002:a17:906:5211:: with SMTP id g17mr48746585ejm.60.1574851308726; Wed, 27 Nov 2019 02:41:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574851308; cv=none; d=google.com; s=arc-20160816; b=rDFaQSJEqfHbeW7xTV/dp5bKUR1d/K5T21Yiy5cqMvg39vx5iPoyyuRqHrUypwcbq4 W5asm+y+8Nfv+UnAKT+vfrxprjC2rWgZb9O3+llHke3eeFPU/imvLPNX2f6nVPlTc0WO 5JblJ11ks4kYccXdCzaUfukT5RdEqwigNOLhL5FYrglt4gyJUmG8xxC/77vZhO6iMipO Ca/1M0gOLvnF0LXwJeUcYj1TmQ1A4CYc419Vd2loxN4G63hT4GL9q36v4k9Bo7xmTLfx bIDexeAn9itnfbwwtG3idvZeoBifL5u3LK02/iJeIPexYvCE56EcKOEjVxQ8vA7laN4i fQyg== 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=Tb95xATL+M3Ll3u286LukKBeGqXRml5JYlkr1zxkyIGXaQZhaKYyWmKiWTIRwuVyRq QF0K+OHttCi9aFDmbZyVPmX283ACccH0ccox6F6/W3kCkqgjQ4uqppGdWz2+KbZ0rqc2 0bvTIg64YOSxwrUfW5P7xVrU1K9XXVlCbXmSmHojC6j3tndNxgrZqJ8rRZfGMm7mkgNw py/4I1I9uhBkvhz3LjFPApScNubLBx+D6Z8PHXIW40aMkI8pkZ6LMAH3JAVRh7vblYV0 hj3jbXYriOgh34930oTx7kW10UcdcSdg8wij2uuEGDXA0dqCOL21VIA02ckkiAc5sv0N RM9g== 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 rn21si2354573ejb.267.2019.11.27.02.41.24; Wed, 27 Nov 2019 02:41:48 -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 S1727318AbfK0KkD (ORCPT + 99 others); Wed, 27 Nov 2019 05:40:03 -0500 Received: from mx2.suse.de ([195.135.220.15]:56706 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727298AbfK0KkC (ORCPT ); Wed, 27 Nov 2019 05:40:02 -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 BE4EBB039; Wed, 27 Nov 2019 10:39:59 +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 rebase 27/34] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro Date: Wed, 27 Nov 2019 11:39:03 +0100 Message-Id: <0262730675c77b31ff0654ae3ee53276300bb8d8.1574803685.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