Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp66426ybg; Sat, 25 Jul 2020 20:12:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5amXl55P83Ak8uQcix+GgA7lQ1VOp3XaApk3QXCYAxgjzMdeFAVQJuOqfDWfTKA2L6i50 X-Received: by 2002:a05:6402:1d0a:: with SMTP id dg10mr14958081edb.110.1595733153457; Sat, 25 Jul 2020 20:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595733153; cv=none; d=google.com; s=arc-20160816; b=KxiLqiVq20/ix9ZTqq4XN95UTItcrPIBGkttac/PIdYgoyRh1D4I0J3BP0CQSQ92co LOSKl+P9Qemnu03yvTfbBUsvOGH7biTgjwf6sToq6bAhU7/IBNiVgqEKhzMYNOQCVvOD SG6cGyTJIA6Z+nSYkv4iLFDX68XgDFq8K5E9dkXc03s1FziUgaKqp3lHsBhcL1Uy6Rfi 7tVWKg6XNz662P5ETJT39lNjR1cgenaG+egCSc0rxU0l+f/5Yoh4QCft26bMtQ7OWa0P iXPcZP6t2Lkc1rk3mb5WJXgNcBZID+jSJeUe/5oBPqCGIBxmP3uVJQgnRXYxAZbVNNso icBQ== 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:dkim-signature; bh=+hw7WzZZbgQaEWyIpk2cj/jfp3lARlsWpyiskPiV7GE=; b=IXG08Qb0p6B+nhpKiB73k7OCpIRyKnUWZXVPwhhjK4q+7Ae4kKP/zSebeiAqk643YM duHSsiL/nHExMss5na5tIUeHRMLZK+j6EtvgxdsQ8kApBM2YOGKrBlkJQgbZjhkXgjLO ZEarZyGZlkFZE95rXBe6FEVYXmz0+0fcg38Mjv/ewLNzDKUWUjwQNeRiE4YtMf5RhspC Am0kvQ7a0P91GANGDtLgde1lvlWTj5McU9Fq/rXJVXdaDYlfF0wGm9aIPFkSLwvl+stG Fyrna9AMEY86Bab6CKFGfUrrbemjdo9XBZEp7scvwb/jm38iY5/gVMh+L2MgywsIW/w8 t5EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u0X8UPZe; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l5si3064185ejc.351.2020.07.25.20.12.10; Sat, 25 Jul 2020 20:12:33 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u0X8UPZe; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728295AbgGZDMC (ORCPT + 99 others); Sat, 25 Jul 2020 23:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726264AbgGZDMC (ORCPT ); Sat, 25 Jul 2020 23:12:02 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECD79C0619D2; Sat, 25 Jul 2020 20:12:01 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id t15so7443951pjq.5; Sat, 25 Jul 2020 20:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+hw7WzZZbgQaEWyIpk2cj/jfp3lARlsWpyiskPiV7GE=; b=u0X8UPZeNz7uJRw6pJL/3/zx86HWRB37wA23Fb7wVu5U9lyBWYbbnC7dnIJV3XA2pM b7wjNCpuinY+7ylwfStg2GMcOfmJJYbYIUOBNvereM6HRVRlMucWdQgyXO7AOrMGsAXC qxBlu+qKdAkOciCjVOHeTCe7miRIO3DTMEJIEZ+E/VqN+jV6T91DTc8tdLWjZcbsLsk4 TiB9Lxzy9G5AJyl6DCuo06pJBcdbwqk3J7zPgIMrw6n+h5+6sACF9g8IBrMmIlq8Ahk0 sauW5PRerIS73epmLuca+ZciCotgGh+ygT2wM8zTz6Um78hEqef6dA8nuYb4836475nd 1r1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+hw7WzZZbgQaEWyIpk2cj/jfp3lARlsWpyiskPiV7GE=; b=C02aGXZ0qVzkkbsDMYBL4NEWpB0GUq9miGnUcSylHpwJzfhTfINVg99HwZyMp4NR3K qSHrX2Z0CcyahOrrIef2rzBOIeAdjK2H/soR94cwdQhvM5T51tMRwLn/BV20Q99QvCbj w5xTsDMTIwhCzZKPE9IfeSVOjEoLI75h8uuC97txghJyvAfP9gAYbtW7GkoEzL9IrSVX rVjUpAACgZJ1h8nVsyzPEHwUoKsRR+kxoNXc6kJ6k41MUg80LpMTbDp9jmV5MJht/YTq KaMgSL+w/f74d7cckRTzRDamNlU9nOADFVrRl0vJmCxyhn1EHctqN0KzUXgAuPHWz/Tn JUHA== X-Gm-Message-State: AOAM532xURiQNTC3AslEl/BGM+YjAmZlNQ6Y5E/9gBX/NfGZxSQsrGQo iOO0ZtaRNxH3HWeeuC+yHFoy6TuRiRA= X-Received: by 2002:a17:90a:e48:: with SMTP id p8mr12372350pja.210.1595733120996; Sat, 25 Jul 2020 20:12:00 -0700 (PDT) Received: from localhost (g155.222-224-148.ppp.wakwak.ne.jp. [222.224.148.155]) by smtp.gmail.com with ESMTPSA id m9sm9714776pjs.18.2020.07.25.20.11.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 20:12:00 -0700 (PDT) From: Stafford Horne To: LKML Cc: Stafford Horne , Arnd Bergmann , Wei Xu , John Garry , linux-arch@vger.kernel.org Subject: [PATCH] io: Fix return type of _inb and _inl Date: Sun, 26 Jul 2020 12:11:54 +0900 Message-Id: <20200726031154.1012044-1-shorne@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The return type of functions _inb, _inw and _inl are all u16 which looks wrong. This patch makes them u8, u16 and u32 respectively. The original commit text for these does not indicate that these should be all forced to u16. Fixes: f009c89df79a ("io: Provide _inX() and _outX()") Signed-off-by: Stafford Horne --- include/asm-generic/io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index 8b1e020e9a03..30a3aab312e6 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h @@ -456,7 +456,7 @@ static inline void writesq(volatile void __iomem *addr, const void *buffer, #if !defined(inb) && !defined(_inb) #define _inb _inb -static inline u16 _inb(unsigned long addr) +static inline u8 _inb(unsigned long addr) { u8 val; @@ -482,7 +482,7 @@ static inline u16 _inw(unsigned long addr) #if !defined(inl) && !defined(_inl) #define _inl _inl -static inline u16 _inl(unsigned long addr) +static inline u32 _inl(unsigned long addr) { u32 val; -- 2.26.2