Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1226049ybl; Fri, 30 Aug 2019 14:06:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0inHxEVHpMiTUQOPtxdavdrTr26LriIMdujCKpC9eiFc0KLbX7NawGh+0kvUphqFjWhmT X-Received: by 2002:a17:902:543:: with SMTP id 61mr17730048plf.20.1567199160654; Fri, 30 Aug 2019 14:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567199160; cv=none; d=google.com; s=arc-20160816; b=xQx1KM7vw5+2PDEFBuRE72tUT0s+2cXpHZOajyKx8NgUe0+e+c7i4twHXY185X2d4E wOGvTXbTqcgnaX1Aak4vqPBQKNana4L+FHw5xbGHVLMGSKBTx4xxNmZ67nlZhNOwz3WQ 4Rn9UPXvt13SLxELpOYZwf9VL0XNrf+BtSnvSV6za7WMiWIgHaFsHjCz7AV095hsTnvQ nIrrUXOw0nUtE3cMqad1iUn2OeSs9YmJnZcdYEAC00xtSzuuxmZSTC+DmcA0LMz/w/Rs iLptW35gkanDxVruALm5WKL4YGUy+1GHgyJKe8KoStlfNupnyWOyaMRBGHkjxpUw6BYm BfVg== 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=lGM3j9uqU3TZ5hVC4q+xRYgUZN2vmRUHLGN5LE2VPOs=; b=SZOd9n3a4P1s3VlcngkWugj8Q88vJTWgVduV8jli4AyfAgqVj3hv2mfBKvUmf5EMHN 34SzzxwDUi5g0JlTpzvepQHaQr4Sj4pUaj+kJ7W8Ks7B0P8YMkF+yWnCfRuivN656U08 Phyvwnm13Dja5MFDxzUJGJ048HCY24DijLuC3tkygG6gA3EX3BzDvmbf9qNBymFQE2k2 IoeSVo23uKbfQZSUStytR9ZvemmZ1T1juyT9INdVb9C4oK6260N/8AzpY5U20S+xkdks MtydfOeOl506G7ez+rha7RycyMlrKTsCny8gbyxPuUsVTKCt4nUCFcHcz4BjLvtmqFrf iJ/g== 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 b1si5392456plx.315.2019.08.30.14.05.45; Fri, 30 Aug 2019 14:06:00 -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 S1728294AbfH3VDv (ORCPT + 99 others); Fri, 30 Aug 2019 17:03:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:53016 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727991AbfH3VDu (ORCPT ); Fri, 30 Aug 2019 17:03: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 910DEAE22; Fri, 30 Aug 2019 21:03:48 +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 v7 1/6] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro Date: Fri, 30 Aug 2019 23:03:38 +0200 Message-Id: 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 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.22.0