Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp732181ybm; Fri, 29 May 2020 10:48:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFzWpBbHDBbzCbJS6kNDGgTymbPJ4iwJLVzCTc8yn5tSRnVYhaC9hrds0QYO8u4d5zWkKF X-Received: by 2002:a17:906:3d69:: with SMTP id r9mr8426159ejf.20.1590774490770; Fri, 29 May 2020 10:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590774490; cv=none; d=google.com; s=arc-20160816; b=xRkLzzbSc0urqk7uJjXQqVsxHaSSC9GeE4xroAi2YLpRpYMZtLPkdfKrCwgteE11q/ Q42y7j2VhEjHKPxpDYDgbmra3fgFNk4E2Ti67hgc27x8QcyVrtk7kJzhgTQmNYT7dM9v IPNWcFJSUu6qiTWfaKlpJ/3MmXOB4dbLviTwNZdxuNcofyYAyaD5dnI7Q7QJFSUr/odz shT8N5QxLSrrnw82vhOkr404JKvqQhI5Ks7c/RzzDBs2lQlTDtMDul2EZpenA3h5LmpO 806i55fTxDHkQ0Ylfm2vwdXJt6UL/KE+vlsXEZZ0dvKICNn9jAwUmmNYLggN/5WUJmLe rH/A== 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 :message-id:date:subject:cc:to:from; bh=vlotuzjtkinVFZTxuPf6gFNp6tn//Pho0iaaryg9exA=; b=laLUbBRsmUTGpWh3X7ICtYvgZC9o2cAeWzZD6J3Zjw91zxBW21gBANargfCA0r6pCn yhaYaax2jALjcaHndmnGtXlX+CNxk0iSXU3+h5xRaifXgbRLFxg/3LNCyy76imaAiqH3 oM8PnryPV8vygtj9L9Z4k8iLpywJOZEtQraosU6BwAvASYTEhMZ8RJ/4/4ztNQZbsCJj 7fUD1tQFK6DUH4xd9IBg3HQqvaqYdScVcMigISD0kEW1uOXuQ4CDhXxYfwF2ItvcY9mJ fGxkgnwvDac02U7f8ZvHjXx12nIwKVRMrvLtE/gDnVYTuBknbTTgaGU3Hiq4p9BO7FKS 6MwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du17si5343937ejc.626.2020.05.29.10.47.47; Fri, 29 May 2020 10:48:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726857AbgE2RqE (ORCPT + 99 others); Fri, 29 May 2020 13:46:04 -0400 Received: from outpost5.zedat.fu-berlin.de ([130.133.4.89]:57963 "EHLO outpost5.zedat.fu-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbgE2RqD (ORCPT ); Fri, 29 May 2020 13:46:03 -0400 Received: from relay1.zedat.fu-berlin.de ([130.133.4.67]) by outpost.zedat.fu-berlin.de (Exim 4.93) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1jej4w-002ywd-6X; Fri, 29 May 2020 19:45:58 +0200 Received: from z6.physik.fu-berlin.de ([160.45.32.137] helo=z6) by relay1.zedat.fu-berlin.de (Exim 4.93) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1jej4w-001JVW-4J; Fri, 29 May 2020 19:45:58 +0200 Received: from glaubitz by z6 with local (Exim 4.93) (envelope-from ) id 1jej4p-00HaMR-Cb; Fri, 29 May 2020 19:45:51 +0200 From: John Paul Adrian Glaubitz To: linux-sh@vger.kernel.org Cc: Rich Felker , Yoshinori Sato , Geert Uytterhoeven , Michael Karcher , linux-kernel@vger.kernel.org Subject: [RESEND] sh: Implement __get_user_u64() required for 64-bit get_user() Date: Fri, 29 May 2020 19:45:40 +0200 Message-Id: <20200529174540.4189874-1-glaubitz@physik.fu-berlin.de> X-Mailer: git-send-email 2.27.0.rc2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Originating-IP: 160.45.32.137 X-ZEDAT-Hint: R Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! This is my attempt of implementing a 64-bit get_user() for SH to address the build problem when CONFIG_INFINIBAND_USER_ACCESS is enabled. I have carefully looked at the existing implementations of __get_user_asm(), __put_user_asm() and the 64-bit __put_user_u64() to come up with the 64-bit __get_user_u64(). I'm admittedly not an expert when it comes to writing GCC contraints, so the code might be completely wrong. However, it builds fine without warnings and fixes the aforementioned issue for me. Hopefully someone from the more experienced group of kernel developers can review my code and help me get it into proper shape for submission. Resent because I forgot to add a subject for the first cover text. Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913