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=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 93AC0C43387 for ; Thu, 10 Jan 2019 22:44: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 E367B2064C for ; Thu, 10 Jan 2019 22:44:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E367B2064C 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 lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 43bLf81WwNzDqwN for ; Fri, 11 Jan 2019 09:44:32 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=209.85.160.194; helo=mail-qt1-f194.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-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 43bLcD3BnnzDqwH for ; Fri, 11 Jan 2019 09:42:52 +1100 (AEDT) Received: by mail-qt1-f194.google.com with SMTP id u47so15873883qtj.6 for ; Thu, 10 Jan 2019 14:42:52 -0800 (PST) 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=yNKid8601Q74qbqdVMhf8FUFM1MYtF3TJK3jK7Mp7Ng=; b=eYaH+/Na5K+6NaxohLqEyWlGKJy7IN2Evk7JwNBr4dL3EK2W7DuD71ed6J1XXY2joW PW43NSBhuXdiAhOPWp31mPlRLqrIam4b6rVYShwLcjAJfUHZv98jG5pVhEOBDv4ec7px oliyMi4+BRNucJgAsFQV1seedE7NIFzYJD0DG0cnkSwlHSiofpPloloGp6sqaDI1pAQb ql4jh0rl24HpKBw9KjmG6MgwFsUCDp0hxx3vvyEj5CzM+CZTL67oFjCryx5cc5n3/JDG pOBvsBLyUhJ6b/BW3VTHEd8GdU4SA9T7cALw2H1gi2imPw8soK0YHG0io3wg6I/L+ay4 wvWg== X-Gm-Message-State: AJcUukcGzJetof8wHOiNVslCG0ce5/oPZUCYRCMlxcOO/VILEm+dpv2g uxXFD2FStJ7ueCNWL8eo7aoznzD1JKvPe1ouRfk= X-Google-Smtp-Source: ALg8bN4wMR/sIxtpNUyojzYiti1ruSkqKLKoKXLZmlthH3ilc8ugAlgx3EsdaYVXiGEAkGXDoaecVD7bYSRnjKp5c14= X-Received: by 2002:a37:bdc6:: with SMTP id n189mr10790675qkf.330.1547160169972; Thu, 10 Jan 2019 14:42:49 -0800 (PST) MIME-Version: 1.0 References: <20190110162435.309262-1-arnd@arndb.de> In-Reply-To: From: Arnd Bergmann Date: Thu, 10 Jan 2019 23:42:32 +0100 Message-ID: Subject: Re: [PATCH 00/15] arch: synchronize syscall tables in preparation for y2038 To: Joseph Myers 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-ia64@vger.kernel.org, Linux-sh list , Catalin Marinas , Heiko Carstens , Dominik Brodowski , linux-mips@vger.kernel.org, Max Filippov , Deepa Dinamani , "H. Peter Anvin" , sparclinux , linux-s390 , Davidlohr Bueso , y2038 Mailman List , Helge Deller , the arch/x86 maintainers , Russell King - ARM Linux , Ingo Molnar , Geert Uytterhoeven , Firoz Khan , Matt Turner , Fenghua Yu , Will Deacon , linux-m68k , Ivan Kokshaysky , Andy Lutomirski , Thomas Gleixner , Linux ARM , Michal Simek , Tony Luck , Parisc List , Linux API , Linux Kernel Mailing List , Paul Burton , "Eric W . Biederman" , alpha , Martin Schwidefsky , Andrew Morton , linuxppc-dev , David Miller Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Thu, Jan 10, 2019 at 7:10 PM Joseph Myers wrote: > > On Thu, 10 Jan 2019, Arnd Bergmann wrote: > > > - Add system calls that have not yet been integrated into all > > architectures but that we definitely want there. > > glibc has a note that alpha lacks statfs64, any plans for that? Good catch, I missed that because all other 64-bit architectures have a statfs() call with 64-bit fields. I see that it also has an osf_statfs64 structure and system call with lots of padding and some oddly sized fields: f_type, f_flags and f_namemax are only 16 bits wide, the rest is all 64-bit. Adding the regular statfs64() should be easy enough, we just need to decide which layout to use: a) use the currently unused 'struct statfs64' as provided by the alpha uapi headers, which has a 32-bit __statfs_word but 64-bit f_blocks, f_bfree, f_bavail, f_files, and f_ffree. b) copy asm-generic/statfs.h to the alpha asm/statfs.h and change statfs64 to have the regular layout that we use on all other 64-bit architectures, using all 64-bit fields. The other open question for alpha (as mentioned in one of the patches I sent) would be whether to add get{eg,eu,g,p,pp,u}id() with the regular calling conventions. Arnd