From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32D8CC3A5A6 for ; Sat, 31 Aug 2019 13:47:35 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 66E42217D7 for ; Sat, 31 Aug 2019 13:47:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 66E42217D7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46LHhz1CNqzDqRL for ; Sat, 31 Aug 2019 23:47:31 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=209.85.222.195; helo=mail-qk1-f195.google.com; envelope-from=arndbergmann@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=arndb.de Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46LHdg0zxMzDqRJ for ; Sat, 31 Aug 2019 23:44:36 +1000 (AEST) Received: by mail-qk1-f195.google.com with SMTP id f10so8701780qkg.7 for ; Sat, 31 Aug 2019 06:44:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yKQ0PtOpimerpfwUZQ0AVI+0q4zKx7NSCWvGQeyvj/E=; b=XML+sEM4C8opCgY6qG6upsT0hD1y3vDZWYMLtEvt9sRcK/ICprX6n+fjT0fl0lpb1l ZqHnllKPudPM4cAoIT+mxqXtm6HYHazfFywSz7X9WDWLjw+LcSUD7pmkjKmxY/4oMtpy h4uf5htUnR5f8F5vYmS2i9jI/JhHDGWWkN/ENlhIx6RUHP29zH7RmMfRAJh9WCOg+ci6 LKDaAxJi6Q6oF9wT638q+P/In33cFdCQJmG/F6D7zGCzlPuGcctbAfGBtY/kqV7lgCTW VzlvQkZ+W+KNvbheFJhS2ZmoGGl8tq0l58ovuGm77GVpfzWuyKfOflpiHULudlqIG7du 4VGg== X-Gm-Message-State: APjAAAW4vUGLPdK3hg2A5tEM/S2ymS88I2PUNV0mTOvAm/YZTJvyU0jN uN1KvIn+qHbW9BbqAL8wDMh+5UvZFtC5bn+47o4= X-Google-Smtp-Source: APXvYqzvQKLXv/QwTv79vw4xcoOPJdykiLQM5oAmOnHzltxqMEZES/cELbHD1aJ5HyP17Gf0brtSiNR2jm5vufNd1Ww= X-Received: by 2002:a37:4b0d:: with SMTP id y13mr20263217qka.3.1567259072836; Sat, 31 Aug 2019 06:44:32 -0700 (PDT) MIME-Version: 1.0 References: <20190830194651.31043-1-msuchanek@suse.de> <20190831083849.GA24644@infradead.org> In-Reply-To: <20190831083849.GA24644@infradead.org> From: Arnd Bergmann Date: Sat, 31 Aug 2019 15:44:15 +0200 Message-ID: Subject: Re: [PATCH] Revert "asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macro" To: Christoph Hellwig Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rich Felker , Linux-sh list , Heiko Carstens , Linux Kernel Mailing List , "James E.J. Bottomley" , Max Filippov , Guo Ren , "H. Peter Anvin" , sparclinux , Vincenzo Frascino , Will Deacon , linux-arch , linux-s390 , Yoshinori Sato , Helge Deller , the arch/x86 maintainers , Russell King , Christian Borntraeger , Ingo Molnar , Geert Uytterhoeven , Christian Brauner , Catalin Marinas , James Hogan , Firoz Khan , Michal Suchanek , linux-xtensa@linux-xtensa.org, Vasily Gorbik , Chris Zankel , Nitesh Kataria , linux-m68k , Borislav Petkov , Alexander Viro , Thomas Gleixner , Linux ARM , David Howells , Michal Simek , Parisc List , Greg Kroah-Hartman , linux-mips@vger.kernel.org, Ralf Baechle , Paul Burton , Linux FS-devel Mailing List , Paul Mackerras , linuxppc-dev , "David S. Miller" Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Sat, Aug 31, 2019 at 10:39 AM Christoph Hellwig wrote: > > On Fri, Aug 30, 2019 at 09:54:43PM +0200, Arnd Bergmann wrote: > > > -#if !defined(CONFIG_64BIT) || defined(CONFIG_COMPAT) > > > +#ifdef __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) > > > > However, only reverting the patch will now break all newly added > > 32-bit architectures that don't define __ARCH_WANT_SYS_LLSEEK: > > at least nds32 and riscv32 come to mind, not sure if there is another. > > > > I think the easiest way however would be to combine the two checks > > above and make it > > > > #if !defined(CONFIG_64BIT) || defined(CONFIG_COMPAT) || > > defined(__ARCH_WANT_SYS_LLSEEK) > > > > and then only set __ARCH_WANT_SYS_LLSEEK for powerpc. > > I'd much rather introduce a CONFIG_SYS_LLSEEK Kconfig symbol, selected > by CONFIG_64BIT and CONFIG_COMPAT by default, plus manually by powerpc. The reason we currently use __ARCH_WANT_SYS_* for all the other conditional system calls is that these macros can be put into the uapi file for use by include/uapi/asm/unistd.h, which is not possible with CONFIG_* symbols. This is not a problem for llseek, but it would be slightly inconsistent. Nitesh is trying to convert include/uapi/asm/unistd.h into syscall.tbl format, after that is done, we can probably change all the __ARCH_WANT_SYS_* into config symbols. Arnd