Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp771539ybc; Tue, 12 Nov 2019 08:58:41 -0800 (PST) X-Google-Smtp-Source: APXvYqx3KgimAcy/kQAqmctQVQsSQl9x15BtjJkRri3Hlw1c4utDppAtpOk6FdWo/bkEJUD+FiW6 X-Received: by 2002:a17:906:1cd8:: with SMTP id i24mr29046730ejh.149.1573577921171; Tue, 12 Nov 2019 08:58:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573577921; cv=none; d=google.com; s=arc-20160816; b=rZuYQBx4NdLHeOUnYUDMl2RsyuhaEXrE8H3O5Isfyw8vVY2rEr9YKDYxh0w63i+6AE E04xxb3Jr4m2y1mCB/Zng43sl4rK8NlmBWLRL1icF9DEJbciZFJ3jimD+V6S2ccT8FUU /quV+37mNkKKbC7UQzbUlbbM4dxnHMcOYWqtgfPaOFqhagS/VngugDww9jP9mCCH8eaI R2Ukkid00K8VLIQtVzdOBBfDUwQFK/e+rO/cwj9CoFHf5aE/vplJdhGz519z4HTfi+JT bId3wHUxcUpYAl7ZI41E6b3/9GXVmS6AjwXzPd5utKKyYOKjIGUxbC0hekZH64CmZHmI pT5g== 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=yUHXHQSaMVP8Ri8sup/jaXhVyQPIRmeKflffdgGvKnfq0fKE5/F6uhhOtEZDna79V0 VfBfUw/jnw1YsszluGlaNRy/1UmjWwsCRkeuqLHzIXciCMEM9iVSZBWgb3BLsg0BUqi+ LF65R6YN9X7WC3dDtXgMM11DooNkMDE5xZI0Stk5xPRm6jUsVjkkg88KphvytWc6C8FE ptnmvlBsJShg4A1zA8cxQuAAyEbTz3G+QGShGGCiN/rxAoXR+C+ZjEFd58Gr//5bmkDF PdaixQxvv4NOQ9U18aR4vEUa3gWFecpk23Vc5w92qT5wr2Oiwj6nhnXwMifLJXRfTnth au+w== 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 b17si352810ejp.326.2019.11.12.08.58.16; Tue, 12 Nov 2019 08:58:41 -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 S1727889AbfKLQyy (ORCPT + 99 others); Tue, 12 Nov 2019 11:54:54 -0500 Received: from mx2.suse.de ([195.135.220.15]:35446 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727672AbfKLQx4 (ORCPT ); Tue, 12 Nov 2019 11:53:56 -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 80717ACFE; Tue, 12 Nov 2019 16:53:53 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org, linux-fsdevel@vger.kernel.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 26/33] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro Date: Tue, 12 Nov 2019 17:52:24 +0100 Message-Id: <964c32e47c17190386f9257de050249834161115.1573576649.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