Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1199471ybl; Fri, 30 Aug 2019 13:33:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFK4PXrQ9K47y4BTXh4H9fChTEZY42MbMeA65qeS2yoRL2dQYc7FyvZya1EuBR9N4Jk7Gp X-Received: by 2002:aa7:9293:: with SMTP id j19mr21003308pfa.90.1567197202744; Fri, 30 Aug 2019 13:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567197202; cv=none; d=google.com; s=arc-20160816; b=K22d70aPY5/7SilCVOYPNIUC7qMvGUgn0jj2JG0DFO8d/gFRS3Tggkikq8Qr0uB++S abH5/NVk7Bk0eufHEHSgbyE8HBR6TIbwlMYW+0NCxW4lK7UiWrieZQV74ETUgBUoegf5 akhDc8DpVxBnX9XHM/48S8GfFCN/pp4rIqLyC+2iVCc6Ha7zO25uvc6OJJMScm3MQlD6 adATN5Hf03+yxUMkrXKiyp5TWXk7Dgo7excvZ3Mt1vhVvAOLCUiOcPBy21QpPJtpjVEy 6sQHHSIpDoay/swVqaqiMmTDfDShH7G41EUy4bZSOIb7DmaB4LNpoULJUd+jDUzHjOAF bfSQ== 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=mPS/wL39+ftFp3FP/Lgly8m7+gfIYKGkPzkW0wmWPuQ=; b=M9NSXklQxzLPB5xP2j/AWBdW5Yq6F+3lUATlCZ4dT+OzEN7Z25JvAcjZkT0oge7fzR 8bmxS4PhvgfCjOv0efWcr5T9cJhE/qAHqg7pvqMgZzoh200xeOc0ok4X+1K/bNXFA1v9 VX3+Hy9rENI7jzCDyVMT5HhPruEv4pXSg9p8VPOSL8cZIARwPoKz2Yq/33EBc6dUV9O3 OOgqZoU/9zg27iIkvon2iBvXheLW6Qot73THgvbVLYDqx5WpfxN+ri+83P5BpnimeQt+ uicr6lnOO4nko/ehH0m0S3qkcLLFWDPKlXn0wr1d6Gq7Ux3JVN9wjYCFwFbQiZe0+gjZ wOEg== 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 r23si5075449pgb.508.2019.08.30.13.33.07; Fri, 30 Aug 2019 13:33:22 -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 S1728145AbfH3Uau (ORCPT + 99 others); Fri, 30 Aug 2019 16:30:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:46720 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727963AbfH3Uau (ORCPT ); Fri, 30 Aug 2019 16:30:50 -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 0F6DFB6CE; Fri, 30 Aug 2019 20:30:49 +0000 (UTC) From: Michal Suchanek To: linux-fsdevel@vger.kernel.org Cc: Michal Suchanek , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Alexander Viro , Greg Kroah-Hartman , Christian Brauner , Allison Randal , Heiko Carstens , Arnd Bergmann , Thomas Gleixner , Firoz Khan , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Date: Fri, 30 Aug 2019 22:29:59 +0200 Message-Id: <20190830202959.3539-1-msuchanek@suse.de> X-Mailer: git-send-email 2.22.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 Subject: [PATCH] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro 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 --- 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.22.0