Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CE04C433FE for ; Wed, 24 Nov 2021 04:26:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232992AbhKXE3i (ORCPT ); Tue, 23 Nov 2021 23:29:38 -0500 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]:58667 "EHLO wnew3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbhKXE3h (ORCPT ); Tue, 23 Nov 2021 23:29:37 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id 6A5832B0116A; Tue, 23 Nov 2021 23:26:27 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 23 Nov 2021 23:26:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=TNzYlAf8gHCMiOurGAolSHIotDBJRbmyQX+0b1N4zLI=; b=JtMlwNpN 7hrAyKfH86TT9hxrN00MA5M4le+Pc9mj6gfg6f5+nsa1Eu9zRR9l1/ohlpcAYPhG LBX4i6oKoUNy0jWTYODXSwclNrPkGWmpkpoMtxaS/tgrrFpKpGZyqdDA4qlO3cH8 GuUdM48poN08oc8vcsamORnlZzsFATjMxqEqpJjGAEaEX/kFJO2K6OMLibJXolwZ 45mwy76E05pmP0u6Tdyhvq3TgOW2aqBNbbSQAVU9lSQZAWA3TMRMIv3Eb0YnOqvo /pnwp3SWjxurgQSC4l+2a0F+5/1pxkzGmL/m8Q8GUpYxwoDX75dTY6HRN81cRyqv EBQbvQhrwyqRZg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgeejgdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenog fhohhrsghiugguvghnjfgurhculdehtddtmdenucfjughrpefvkffhufffsedttdertddt tdenucfhrhhomhephfhinhhnucfvhhgrihhnuceofhhthhgrihhnsehlihhnuhigqdhmie ekkhdrohhrgheqnecuhfhorhgsihguuggvnhfjughrpefvkffhufffsedttdertddttddp vffkhffuffestddtredttddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepfhhthhgrihhnsehlihhnuhigqdhmieekkhdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Nov 2021 23:26:23 -0500 (EST) To: Damien Le Moal Cc: "Michael Schmitz" , "Bartlomiej Zolnierkiewicz" , "Jens Axboe" , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <44e0213a681f3c8ee4c6ab2ef9d61ce3ac00e368.1637727935.git.fthain@linux-m68k.org> From: Finn Thain Subject: [PATCH] pata_falcon: Add missing __iomem annotations Date: Wed, 24 Nov 2021 15:25:35 +1100 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The zero day bot reported some sparse complaints in pata_falcon.c. E.g. drivers/ata/pata_falcon.c:58:41: warning: cast removes address space '__iomem' of expression drivers/ata/pata_falcon.c:58:41: warning: incorrect type in argument 1 (different address spaces) drivers/ata/pata_falcon.c:58:41: expected unsigned short volatile [noderef] [usertype] __iomem *port drivers/ata/pata_falcon.c:58:41: got unsigned short [usertype] * The same thing shows up in 8 places, all told. Avoid this by use of __iomem type casts. Cc: Michael Schmitz Cc: Bartlomiej Zolnierkiewicz Cc: Jens Axboe Reported-by: kernel test robot Signed-off-by: Finn Thain --- drivers/ata/pata_falcon.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/ata/pata_falcon.c b/drivers/ata/pata_falcon.c index 121635aa8c00..e2a88edd9dbf 100644 --- a/drivers/ata/pata_falcon.c +++ b/drivers/ata/pata_falcon.c @@ -55,14 +55,14 @@ static unsigned int pata_falcon_data_xfer(struct ata_queued_cmd *qc, /* Transfer multiple of 2 bytes */ if (rw == READ) { if (swap) - raw_insw_swapw((u16 *)data_addr, (u16 *)buf, words); + raw_insw_swapw((u16 __iomem *)data_addr, (u16 *)buf, words); else - raw_insw((u16 *)data_addr, (u16 *)buf, words); + raw_insw((u16 __iomem *)data_addr, (u16 *)buf, words); } else { if (swap) - raw_outsw_swapw((u16 *)data_addr, (u16 *)buf, words); + raw_outsw_swapw((u16 __iomem *)data_addr, (u16 *)buf, words); else - raw_outsw((u16 *)data_addr, (u16 *)buf, words); + raw_outsw((u16 __iomem *)data_addr, (u16 *)buf, words); } /* Transfer trailing byte, if any. */ @@ -74,16 +74,16 @@ static unsigned int pata_falcon_data_xfer(struct ata_queued_cmd *qc, if (rw == READ) { if (swap) - raw_insw_swapw((u16 *)data_addr, (u16 *)pad, 1); + raw_insw_swapw((u16 __iomem *)data_addr, (u16 *)pad, 1); else - raw_insw((u16 *)data_addr, (u16 *)pad, 1); + raw_insw((u16 __iomem *)data_addr, (u16 *)pad, 1); *buf = pad[0]; } else { pad[0] = *buf; if (swap) - raw_outsw_swapw((u16 *)data_addr, (u16 *)pad, 1); + raw_outsw_swapw((u16 __iomem *)data_addr, (u16 *)pad, 1); else - raw_outsw((u16 *)data_addr, (u16 *)pad, 1); + raw_outsw((u16 __iomem *)data_addr, (u16 *)pad, 1); } words++; } -- 2.26.3