Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3846174imm; Mon, 2 Jul 2018 06:38:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfh8wpLXL6PcgJ0mXzjw1DRmgopsPxCoNesWSzX63q8KO8tMf5Msi2S7ISlDrqsNAAx2vli X-Received: by 2002:a63:5b0d:: with SMTP id p13-v6mr6259255pgb.202.1530538688202; Mon, 02 Jul 2018 06:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530538688; cv=none; d=google.com; s=arc-20160816; b=jrczIQ1a1bGfPnkDIOV5QftQRt82+SyaG2XZiT1pOvnS1AoWkVYUkBxMI/vbZvFaG8 dwKQ5XksZI1EAg2m//be7kBQ3MUnC+0ghPUvq2sRVVhLZLtkouxgWFrrQY/+aiq51I7h CblAC1jMcPcCXZ3tf+OJWiqB5O5ZHFnZMo6idtrx0E78ESyrMtjV8ggk+rytForjSxIS tCdb3OL9Z1HHFoZ//PZx5j8TP6GiS8oNV2o6DFaWOqDGMTlgdrZH4VvqjoezanrPihXV hMAf0KKFIh49m/S8R/zHJ4KK68nEOSDrNQOwBIOTXYqr7dHDY7P5GtuH8nBtJnU2pqZW Wfmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=bOkFIctOBEWtVOYBBM0cNEPxU7Uo8wnoNn8I6wv27r4=; b=beTUlfeOpFaVCpf9q8cm8qXPVR56meVwk23ZA0lNe+LwGl+8QpQjWqDclzXRQnf2cp j3h7rm2uwMo2pCgIIqDvxBq1tw8NuQt+hi+hHypFiKJ+pBnEqivH6Z8oygViUUrGeIAW ACNgsB3+EyeFMRK+7h6Ji/FQ86tbhqiv77Jsg5FRkIkspM6/K6AQ5NILts+6VY2z+z/f mKp/TtHb7g9IcsnIRTEecU0w2z49hkOOQ4SBs/qM+dh4Lsc+pnrb1/vnc2ylD+WhZL2O vToZ3wRRAIQHncViOp4lRFkvZmhCeZx6bYiDuw7OqfQhjJpOjXwfho66wpgDbZxPnVXG lVWw== 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 q30-v6si2731983pgk.253.2018.07.02.06.37.29; Mon, 02 Jul 2018 06:38:08 -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 S1752881AbeGBNfs (ORCPT + 99 others); Mon, 2 Jul 2018 09:35:48 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:41482 "EHLO laurent.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752607AbeGBNff (ORCPT ); Mon, 2 Jul 2018 09:35:35 -0400 Received: from ayla.of.borg ([84.194.111.163]) by laurent.telenet-ops.be with bizsmtp id 5pbZ1y00j3XaVaC01pbZRn; Mon, 02 Jul 2018 15:35:34 +0200 Received: from rox.of.borg ([192.168.97.57]) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1fZyzN-0001Z7-Qc; Mon, 02 Jul 2018 15:35:33 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1fZyzN-0001QW-Pc; Mon, 02 Jul 2018 15:35:33 +0200 From: Geert Uytterhoeven To: Greg Ungerer , "David S . Miller" , Dmitry Torokhov , Helge Deller Cc: linux-m68k@lists.linux-m68k.org, netdev@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/5] Input: hilkbd - Add casts to HP9000/300 I/O accessors Date: Mon, 2 Jul 2018 15:35:30 +0200 Message-Id: <20180702133532.5412-4-geert@linux-m68k.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180702133532.5412-1-geert@linux-m68k.org> References: <20180702133532.5412-1-geert@linux-m68k.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Internally, hilkbd uses "unsigned long" I/O addresses everywhere. This works fine as: - On PA-RISC, hilkbd uses the gsc_{read,write}b() I/O accessors, which take "unsigned long" addresses, - On m68k, hilkbd uses {read,write}b(), which are currently mapped to {in,out}_8(), and convert the passed addresses to pointers internally. However, the asm-generic version of {read,write}b() does not perform such conversions, and requires passing pointers instead. Hence add casts to prepare for switching m68k to the asm-generic version. Signed-off-by: Geert Uytterhoeven --- This is a dependency for "m68k/io: Switch mmu variant to ". --- drivers/input/keyboard/hilkbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/keyboard/hilkbd.c b/drivers/input/keyboard/hilkbd.c index a4e404aaf64bdb82..5c7afdec192c139b 100644 --- a/drivers/input/keyboard/hilkbd.c +++ b/drivers/input/keyboard/hilkbd.c @@ -57,8 +57,8 @@ MODULE_LICENSE("GPL v2"); #define HIL_DATA 0x1 #define HIL_CMD 0x3 #define HIL_IRQ 2 - #define hil_readb(p) readb(p) - #define hil_writeb(v,p) writeb((v),(p)) + #define hil_readb(p) readb((const volatile void __iomem *)(p)) + #define hil_writeb(v, p) writeb((v), (volatile void __iomem *)(p)) #else #error "HIL is not supported on this platform" -- 2.17.1