Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp209245ybg; Sun, 26 Jul 2020 02:01:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxUT7PFxBGfRf1WMW9xnFbUf+N2NHGeH4OH4cAbtgoKCFq46/CVCouAUR+HJsAoiLJEfxT X-Received: by 2002:a50:e002:: with SMTP id e2mr1846259edl.382.1595754112817; Sun, 26 Jul 2020 02:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595754112; cv=none; d=google.com; s=arc-20160816; b=ICivjSQ5qaUdRr0ZE0n5M1apk1aNTwQO34pHmknRvT+6x7hBEREkhBv0xNCKlAc4ra OCD5ggmIte/Y9EacM6luGonuzjdVEAg9qV2cQDJWoNjWkKGy78Wsuv3wvKOjnGsFmF4p ZEA/83RD2H4o+7bZNvJSbWLM82KkiIKFuHjwzrTRLjvB4taVBxirmOcvjGDDfvn5+Dr6 r7ZxR8NURRuyChqKNqXvBZnExOrCPJciyploG1YjOSZ1DCYoBFkM/fbyAsRZ/SHpfktn emAd5o+00sZ9qG2E7VJ2L+sB/BM787pFN05t/W+tJ2yZKVagBVZE0AZoPr++PfNDGhxe JzmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mlBhtj6mj7rzh73CGqPbaedBqXAiRs4Xc3u8F8OgDvM=; b=HVbpj9dQshNHdka/KEUb+AA6FpUoQ+iN61RDAjY/1AqyANyP0pEIFpn+nQ6OjpraU+ 35Dltcck3Wo3sjZ+8p8lPd/PMLAGOp+4NEZkJmuYVNhKLcs+pl+njw72xL5ULZde5ERv sSTCza3fYlgFreLo0LCVSqjLoBfyh8oK8cc9KsWgjR8f+xRm4MqRSxe2Gzf6uDGCgzNt +Gm/YSpJFEjO8f8QTd4VNx3yrTIIpX3XSQp4aZtptwNolO5/Q8qzkzSpnuaxEcLlE0yj nrEvUo6U2KDuCxtfoeITwR49VQ54hQzibbJH78Ht0ry/YtIfWPACrvB5VDx5Js7rj+YF F0lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cDJ6nW6K; 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 g16si2465819ejf.619.2020.07.26.02.01.30; Sun, 26 Jul 2020 02:01:52 -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=cDJ6nW6K; 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 S1726455AbgGZJAy (ORCPT + 99 others); Sun, 26 Jul 2020 05:00:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbgGZJAy (ORCPT ); Sun, 26 Jul 2020 05:00:54 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6F6CC0619D2; Sun, 26 Jul 2020 02:00:53 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id u185so7515548pfu.1; Sun, 26 Jul 2020 02:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mlBhtj6mj7rzh73CGqPbaedBqXAiRs4Xc3u8F8OgDvM=; b=cDJ6nW6KkxctO85wMzE88+C988ifH29e1rhCCwzz7kstStSjsmycqBQVOaFBBCpo0Q yElh4SlW8tKaHiKeEt8AhtYucLQUXQDkYZyY5sNjslVM4XbSaBvjzorcvis58TSPcOeQ hC72TPZUo2ZArEQ8UxqgD+x0UBLsF9dc3046xKtrxM0eAEYN0gfh9bQb7fN9y3PUHijr lJ2wmIt5Z77mu0W8+Yye+U5kmuQXlNx2cpWEOiV9VbDjwwiB+Qe9KWbr9gMj6O97sdtk oRZpH46jG3z87kqYu0CL5WIry32P6bN2ryCUYZgS5VvODC86VyQIUGX1s31LW8FJpXfA 4Jqg== 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=mlBhtj6mj7rzh73CGqPbaedBqXAiRs4Xc3u8F8OgDvM=; b=rzYwMSw3y6rr7gmEvg6kk5e0mbKfRPfeejCCe4WnjJ8EuaYA55j3gSyDolvUiZ3Eh2 +vAGpYnvW5XBn2FfMkDGUMgAOLfNedU0w3qmcgDSl+uvheq9LP5E1N4iz1NTsQumgveQ uXk4DYZRPN9Jy/TSo95Aw+xpQMyxqvOs0f1P0aTucqhy/oZvp0r6gB/rA3nnjwv4QdxY yc93C0rouljFjaXK7kX52RaYA3fL7O9TYm3gYyy+YqTBxKzovE04qk+nP73gk28iharM X0Nyn1qhxkf32c6Ozbd8AZpmVwrOUvKpBQdmOFNyZ5QiKpTtcIO85DT1Aqa168TS9E35 qiAA== X-Gm-Message-State: AOAM532TBUo1V/MBGYPLoTzBlUiKw7WQOW+MkvkQKqCB4+ioq1YdMVlp tX7I6xyDnJ/cqgau6zWpQNdkvr+/0HEGxvJ9e0c= X-Received: by 2002:a62:7b4e:: with SMTP id w75mr2631394pfc.130.1595754053508; Sun, 26 Jul 2020 02:00:53 -0700 (PDT) MIME-Version: 1.0 References: <20200726031154.1012044-1-shorne@gmail.com> In-Reply-To: <20200726031154.1012044-1-shorne@gmail.com> From: Andy Shevchenko Date: Sun, 26 Jul 2020 12:00:37 +0300 Message-ID: Subject: Re: [PATCH] io: Fix return type of _inb and _inl To: Stafford Horne Cc: LKML , Arnd Bergmann , Wei Xu , John Garry , Linux-Arch Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 26, 2020 at 6:14 AM Stafford Horne wrote: > > 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. Is it in alight with all architectures? that support this interface natively? (Return value is arch-dependent AFAIU, so it might actually return 16-bit for byte read, but I agree that this is weird for 32-bit value. I think you have elaborate more in the commit message) -- With Best Regards, Andy Shevchenko