From patchwork Sun Jan 29 17:19:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9544199 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9BDE760488 for ; Sun, 29 Jan 2017 17:20:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EB2F27F07 for ; Sun, 29 Jan 2017 17:20:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82F352811D; Sun, 29 Jan 2017 17:20:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE0EB27F07 for ; Sun, 29 Jan 2017 17:20:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751838AbdA2RUk (ORCPT ); Sun, 29 Jan 2017 12:20:40 -0500 Received: from mout.gmx.net ([212.227.15.15]:57269 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751863AbdA2RTp (ORCPT ); Sun, 29 Jan 2017 12:19:45 -0500 Received: from ls3530.fritz.box ([92.203.21.69]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MUILK-1cxm0Y1bO6-00R2o4; Sun, 29 Jan 2017 18:19:36 +0100 Date: Sun, 29 Jan 2017 18:19:33 +0100 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Define access_ok() as macro Message-ID: <20170129171933.GA26147@ls3530.fritz.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) X-Provags-ID: V03:K0:0mI+TxKfwcfluS/p0+VF/UwST7madE76HJZF3w8yarJXWJbcyoa 8Vh+UXYolfCaM4b7VUa1A6+phx9cqQs/1agsEHjDfmIkJdVdbxmlCnD4taKPn9fVc+8vCjt /a/fiDzMraciACWglbBsS75h8X854QVjsFNpNTvhZPBaTTTCxV01aF7sSVdY48OK4/a0B95 KAO7IsJLH3OGRKFdbkjGA== X-UI-Out-Filterresults: notjunk:1; V01:K0:htndZifm6EQ=:LmeoCz9UgjSvt82G7gJycR 0bSCyQG27/tDfIhbhwAfrJeknUaDCwFm39eII6rgM/0zG17WCjv6SHLQBmvKj6cKwUG5DaNXK Y8sQ3BYSvR/UiBayP6s086W/lAXb0VBcDyRoGnlKFEqpgxrn7n/DbKsUyZBmoqlgPv2gvvBW4 OcZZNSfHqCQK6hDDa43SrG8ujae3JVl+M4m8oC1yBJ1FrY3nmQc78zDaUULIka2jO1nuqmmXg KzG9VuzUiG5nVXEJ5Wxf0UhLkImvOet1/4tVMvNsmVLcSdjxJ0ekU2zPK+2uGk1MPS8t7QiMt 6uC66qq6yITJwINZ62kn3RsHdamwkXr94mjhFj1yQI9ioqr8EqvfmnpMuqBPT8r6khoPLMm8x eJgQSbtnE3G268AYaP6WsatYZpqwgFslDuffSW0x1STstW+p5ZIqIiAmylNzW0iSqDMHxqtpx j1TgVFpYzWFFAg01U5ZOFJClJGLB6WzSaKydg11sO3Mlm0nDDAWdhRJxYxatLeCYm7lSYcRx5 SDQPYmldStlBZT0lhFfyPq6pncmsNg58NbGNEl0YvEe56Xwv+fbKRbCoUFaPsSHwwhn/cYIeq MY39HYVgSY8QEzkzogmd8nTTihxhS5cTr/nLZJ/hUf8Tc3mTG8h01SnjG7WfD4U5Js2hDR318 5lJ9/obYXT17Ss+XbRJ7n+HyKXyotXcj2NVQz/z6mVUddUYs+OVRQFEXrZ4ItGIDSTlHABz7v uScQCXQDK4Cuq6Oli04Pu/Q9KLfaiL2K8djqA+kZ2LHbyeNdMxaMsIwhBIg= Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Define access_ok() as macro instead of static function. This fixes build warnings in code where the second parameter is given as unsigned long. Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/include/asm/uaccess.h b/arch/parisc/include/asm/uaccess.h index 9a2aee1..fb4382c 100644 --- a/arch/parisc/include/asm/uaccess.h +++ b/arch/parisc/include/asm/uaccess.h @@ -32,11 +32,7 @@ * that put_user is the same as __put_user, etc. */ -static inline long access_ok(int type, const void __user * addr, - unsigned long size) -{ - return 1; -} +#define access_ok(type, uaddr, size) (1) #define put_user __put_user #define get_user __get_user