Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp515159ybb; Fri, 20 Mar 2020 03:22:08 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsMqd+rQ4LdJQwHCnxEijVoTvktKsN3KBfcns513Ia+TXsWkILQ81OUG0Kh1l1PWIuTANU9 X-Received: by 2002:aca:f585:: with SMTP id t127mr5834611oih.38.1584699727898; Fri, 20 Mar 2020 03:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584699727; cv=none; d=google.com; s=arc-20160816; b=ur0NBU014UyDcjkUy9gCIYpeW1quAGVfT6iQAZfR5bRY2tc02R9r6GPtLjxPhWuCNc pPO1dv/6In/0ABKZJdFcFy4cs6mZpWNsIREEKfi2oeHKw42gP1SWK3Dm3tmsqtn05Gis RQno6Kn+uwhIehJRUGhxXjA6UhJ5I+US5rDWAzF45pK6vKL5XDn6nKQg3OEbJsSDUYSh Pe8DuW/APJIZr1/R/nrYtNV/8JbetfvmjzgeuvA2E+ixpEYBAYxUfsG4Q14XrJg4wTZk Y/asYDx74PeeOyBLL0i3GhdjeS0/FdPQH27OV0dXcxnbDIgRrZR2j7GvF/erQtBY0v5G jPRg== 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=fv5NL/0nivPoWCRJXjrvRX7S1GX1TKjTW98Edrf3fq0=; b=RjDER8bipcoP662Kutahz5/FCH06g3APryB6lnLhefHl+x9ndbf1JduzgkeQix99q0 KsVC3PoKWDqg+RaM+jUBMr0rx98DirQidbdgYsbZJ1iwauoUxUZml0DYltn6QNKstSVJ cI1KZIR8nun+bg0+zDHiq5CFoCu8nrFI9Q6zo7rptRCeBsna+U2oxXZAcxEG/gA8fIPH +bU+gioPyJcANnN9lbzKYHiXm6UGgT0mXTP7XW8tOznm2N1xv4R6NzsmqoSjtyJ4tNZ5 LLvLR8q/SxAwSFDPORyQnz0dSph/Miew801APvxw/hJJuvjn8qWKdY2KPzri9OrWFA92 zU2Q== 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 j23si2771366otp.31.2020.03.20.03.21.55; Fri, 20 Mar 2020 03:22:07 -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 S1727122AbgCTKUe (ORCPT + 99 others); Fri, 20 Mar 2020 06:20:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:54196 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726602AbgCTKUe (ORCPT ); Fri, 20 Mar 2020 06:20:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9BBD4B299; Fri, 20 Mar 2020 10:20:31 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org Cc: Michal Suchanek , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Alexander Viro , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Greg Kroah-Hartman , Jonathan Cameron , Andy Shevchenko , Christophe Leroy , Thomas Gleixner , Arnd Bergmann , Nayna Jain , Eric Richter , Claudio Carvalho , Nicholas Piggin , Hari Bathini , Masahiro Yamada , Thiago Jung Bauermann , Sebastian Andrzej Siewior , Valentin Schneider , Jordan Niethe , Michael Neuling , Gustavo Luiz Duarte , Allison Randal , "Eric W. Biederman" , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v12 1/8] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro Date: Fri, 20 Mar 2020 11:20:12 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 In-Reply-To: References: <20200225173541.1549955-1-npiggin@gmail.com> 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 --- v7: new patch --- 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 59d819c5b92e..bbfa9b12b15e 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