Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp760033ybe; Fri, 13 Sep 2019 06:00:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzphRKbQlgWlLpXQ0NXhH8zR11Vm4niATQHKC8zYaYkFonohgTOZoJSDHgocFF3uzgHdcu6 X-Received: by 2002:a05:6402:516:: with SMTP id m22mr26002284edv.83.1568379619947; Fri, 13 Sep 2019 06:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568379619; cv=none; d=google.com; s=arc-20160816; b=U/VVlQqJPNc9+aqNIsVwuyukWt2E4rgKR1N3JDIbYDpk/0vI8Vr2k/8+qY8BqK7SFy eKzA1AtqSdwUILja31ljOOlXFyi8ckAHpR7DzPWhRAlzGKnHIzM4QWIpGrt9XMgl+TcB h6Ut+QGKwd+ytwJB2iPKRBzNOcWKViyILFOsz0yRXBXSl/D4TTGCwKDDu+lPnTAfCv/h l1cxTMZdI6jPaMonzt0WAsd9cQXes9ZIYNEPq4tHIcTQ1J9S2zI3VLFAvexu5vT72C40 5JBmfvYhNI3bo+Qt/ahe8Ftve380eutrTHqTppJSWTQkpOffZ4kQesoGnDxqyO7jRQ0I o7Ng== 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=r/Nv/xcc3NZaWKjc4/p+idh3e7QdNIFMNvP+Dcy59mhKi0A6L+ldSafKWKT9JxaQyV LyjGGhW+67CbJFbBXUJtcj0vVxikuPbQPRYpyEgwnrrrVNyGtQtQLiTXDc/eGovzZjP/ Yqb+sfkLHOQsPZjeaNwVosJH+9yjc2ODi5JSVeBN0uglYBk0Bt/IX9V0XPnFKoRI0N0n 5xXYNwKou3CODPGX6Ws0xDZXkqAMKj3DiFTb4cKMXewHZpmVCg4ONFV0NZrbUTsV3SoM tE3rISqTS77EvxyMPyaq+RKCEfUF0SZbtWDmjn5yHEe7VFcrsl2xpEK9a+DHcnDO/hW0 3Dcg== 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 k9si17303948edb.56.2019.09.13.05.59.56; Fri, 13 Sep 2019 06:00:19 -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 S1730203AbfIMM6K (ORCPT + 99 others); Fri, 13 Sep 2019 08:58:10 -0400 Received: from mx2.suse.de ([195.135.220.15]:44456 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729863AbfIMM6K (ORCPT ); Fri, 13 Sep 2019 08:58:10 -0400 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 5CB5BB0B3; Fri, 13 Sep 2019 12:58:08 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org Cc: Michal Suchanek , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Alexander Viro , Nicholas Piggin , Christophe Leroy , Breno Leitao , Arnd Bergmann , Heiko Carstens , Greg Kroah-Hartman , Firoz Khan , Thomas Gleixner , Joel Stanley , Hari Bathini , Michael Neuling , Andrew Donnellan , Russell Currey , Diana Craciun , "Eric W. Biederman" , David Hildenbrand , Allison Randal , Andrew Morton , Madhavan Srinivasan , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v9 1/8] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro Date: Fri, 13 Sep 2019 14:57:55 +0200 Message-Id: <2e5c00c054f5a1c8ea4b5944685940af0665bfc1.1568319275.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