Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5999236rwl; Mon, 9 Jan 2023 02:52:31 -0800 (PST) X-Google-Smtp-Source: AMrXdXv1dgbyLspAEaYGDbvYuqmOCnZslno99/0ccOqXIYzW8OEuGRK3BTbmyrTQixJ9B3vDIq4/ X-Received: by 2002:a05:6402:34f:b0:475:b13b:7d78 with SMTP id r15-20020a056402034f00b00475b13b7d78mr56128345edw.39.1673261551188; Mon, 09 Jan 2023 02:52:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673261551; cv=pass; d=google.com; s=arc-20160816; b=uIZcDNIt/kg7ihtIXyGCNlgDY+bJmP2F5P8+ha48PJZUmIeTzVch2ZH7wMrox8jh3/ kWc+Ejs4EiwsnQO1METn0rsydTxocNTNroTeesmyRetwlYzCnm2IZMA4/wzhJ5sOMKsh n8LsUmjRKv8tqs3wRW62L4QgnMjhP165vR2gnANIWqj9I2Ycp3lEhBjLOJhEuRzOOojV B4gXV2oqhCJGLWIk4x5KKye+fysNaDSo8viJITwQH9izhVq4JzcwIn265JDTj3NUzEKU cgE2s/8bdWlurVuQInUSLiXakyM26t3L0KQ/r+wzRm7P18yGVPk9LIV1QGcimU2BYGT2 hDpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-disposition:message-id :subject:cc:to:from:date:dkim-signature; bh=fSkUEURUw2iF1o/81Vy7MF2iUb8d/dmw4SGiJ2j7+4s=; b=Aeu//b5Z1GQaBAnpVExaT70Mp611KxRacCnG+TZ1D3we3WXOa6uoB92k0+ILJZKhh4 +K5g5yowlm0BAJL0spo0qb+nPshLDs7YHMJG+0nAXw0TPRlWnJkTwBVhibK3Zn5FRl77 VKDTrTF7+FwOR2c2KDbQQ6dGsHCpDqsXme/mRyNm5Q3kZul+MKSv5+fkb/MAr2rXXC92 HxKtpbKuTP4jJH1bjQgzWizfJp/bwaK8BT0UXixpbbswUnKSY5Wr7ygtKIQVVq60dr0e TDsQGvJY6oAw7QsZVx0FXV9dsIcJdKZ4PkSLNmfmfOwHQV63icCsak4D3qAiDAuepSnl zg3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=mASl9yH9; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w22-20020a05640234d600b0046b953601cbsi9879318edc.27.2023.01.09.02.52.18; Mon, 09 Jan 2023 02:52:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=mASl9yH9; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237037AbjAIKmI (ORCPT + 53 others); Mon, 9 Jan 2023 05:42:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237036AbjAIKld (ORCPT ); Mon, 9 Jan 2023 05:41:33 -0500 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2080.outbound.protection.outlook.com [40.107.13.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44E916411; Mon, 9 Jan 2023 02:41:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PDWPQPm1cPrAFsiCKcYoOkQn1Z2V7OudRDSflmQpck9DbzDmlQTC3JNnFwfPeEymwQmLMz03QXnKP9rCMkBGvctmBlc63J40BiU+sFYTu+g9WviZZexMiawvi1mfUvCDyP75uowEfuGchwRSlE0qGretvKKp4DJv7FQ6VM+SU3uA3NMHXPZfGzr9llS7j2IjFW+1c5UODQql7ngBmzIx/vyJFFJgFQxhhsRhXxpm7Q/PUwLPVmzzEFwAMUQQr9lLJhz7/JatsuLU0cVw0/Vi5CkyO4g+WGiLVwGTyGqmuFjjg7UA5id6A4Gl9sqmuAGMQz+/494iQnb/OAyitEIK/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fSkUEURUw2iF1o/81Vy7MF2iUb8d/dmw4SGiJ2j7+4s=; b=iMtndr2LncNXQcpfgHcwX6xF+V4iGKeesguIR7aK2fHklJCl5IhMeimWPOOTv8jiNzh9FZq/j0FqCKkhZt27T8J7gnXHRj39oMs6RZRzSt/H1jiAFxGStjEX8pvFAh/njuVlEudeKej/JlT9iCHCka2pzLCPl6kDF1Nf8krummURsY2ghBf6VzcNAhz+IZxQJRdkpeOLF0n1sUigC3ik1GrzHuv5rprZJ3Jm2WX9BGHzVN/BvbWsjZXHiXFVbDIuGfbj2lgZwUq2bosna7Grip1T7hQg8/0zFjxd5qQGoXnD8mDCkWW/xPKcy67WjWDK1Sv5KcxmvtynNBFBa0pHsw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fSkUEURUw2iF1o/81Vy7MF2iUb8d/dmw4SGiJ2j7+4s=; b=mASl9yH9kqPyZAG7GO+NvY2Q6pxKcwIa4AhGIIgZz5prEk7EgIrwhyPGpB2hMNTN0N9o+7PPaCpT+48nMMFyQekyTb8P9hqKzOpcJqBglzsxTHSWGcr8sG8teeYFEYHtSxxmUF1+CdAgM8YknJroNxwRWBIW21HkIv08y83RLJY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by PA4PR04MB9567.eurprd04.prod.outlook.com (2603:10a6:102:26d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Mon, 9 Jan 2023 10:40:58 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::3cfb:3ae7:1686:a68b]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::3cfb:3ae7:1686:a68b%4]) with mapi id 15.20.5986.018; Mon, 9 Jan 2023 10:40:58 +0000 Date: Mon, 9 Jan 2023 12:40:54 +0200 From: Vladimir Oltean To: Arnd Bergmann Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Sparse warning when using ioread64() from include/asm-generic/io.h Message-ID: <20230109104054.gabdvjxyawdfbqii@skbuf> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-ClientProxiedBy: BE0P281CA0028.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:14::15) To VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB5136:EE_|PA4PR04MB9567:EE_ X-MS-Office365-Filtering-Correlation-Id: f787dbc7-d253-43a1-3a56-08daf22dfe4c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EC8D37CR2wsKYtKSK0Lkw/cAn67YWF6rXry7HeD8u2Y47UBBvm/u1yKWaZJ6uI4XwNDEeeZByovTl5dVNj0meRIs/vqJKD8HRz0gEDPjhBxkIskp36CoaZhB5x7WkBBe+ktqkitsLn2tm2q2RVWsMQmIHxdzDZyDfje6109APXFFH5CMSONHvfa+eZwOeEtLl6t1Z5oxNy2/EkuKZ0KPWVomSnqu8NGZvfd/dt0UFWcE+WS27z9GKMos18071pZyYNTwSRuzPuVTXwDM/Bi6cLdnjWvnpijzP9BVOvoP72nikbe9Cruajp6hvdx/VkDylHrbXZeu8BSK963QbhR1SEssdDrsmaZ84BULX0OaF9CMotmC3xcQwDWpaGs4Vj4ViUXQBnVUnAai0g2tdROolR2rDYBeHBLwyDTqEd3Zxdr8I29voSMuB4Res2Dcohd1XXivz0gjAH8QLVGgO96Ger98sgVb4KR9JKxozOR014EYVLU6T41R8QTJKuO+ylQQ49JIPQrl+TWxUR6SeIYMxz8XLC8U3D3eBQs5OZVisEfZLlCdSbz8TVQ7zhzhi+Z8CN5BVUs9YmUmFmW1ek8JiySKXvhdNV1BlWlc0PfpkzOZ4AyafzuTxV5Ta9iWHSysPbxTocaXUUEK/4Hd2g/WK3HKGdy/ZMHWOikY0U4Ki8ktWgXswNAinzsqZDJj6f3y X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(7916004)(4636009)(366004)(346002)(39860400002)(136003)(396003)(376002)(451199015)(9686003)(6506007)(6512007)(186003)(33716001)(1076003)(6666004)(86362001)(4744005)(66556008)(66946007)(8676002)(66476007)(38100700002)(5660300002)(4326008)(478600001)(6916009)(44832011)(2906002)(26005)(3716004)(316002)(8936002)(41300700001)(83380400001)(6486002)(41533002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?+QYzPILJeA9VVzH2Md0k9elPMBvArn5+P7zD5GPe3LvdgqNxMTxJDyG2nEV6?= =?us-ascii?Q?/xrd5NCPgg0woXntvASGupjQGJU+8simR4JwTcRpiWPMDxWZC92knp+P8PZS?= =?us-ascii?Q?KX9Rmxf3eg9Q+n48Egm+wpL4uZvLM2XWLOpLwdzOCqvuL+AomzuBUphTeFkY?= =?us-ascii?Q?kavipxJRSkqjTb2dnpcK74s5jLdokzndpKMS4xXE/RmwglFpzN1W5h2GekPP?= =?us-ascii?Q?BGZOCTCsRAweNSIYFpPNZ5TZdZitYVvVKAK0XDkOcpYs3dSVGe81olPzJQ+1?= =?us-ascii?Q?98R6HFT3iVGcPMxWEOH72bozJdOmLvW3/z5QjfrXgaT8xeYHIUfFwFF9BmZS?= =?us-ascii?Q?oNYQZNY1lCfoziVANAy7Kj4LCSAyEHSAAmqtHgYicBd2cgCkpmpOeBD6bkiJ?= =?us-ascii?Q?CWbSUPqesZMOdYM1uaRxnQs+kBXw1IUIyrLk5LrRtVQFqYnvNU8PjgVrknDy?= =?us-ascii?Q?56qQigXgFHSBZgruSnaiBEsU+rMICkr3rZiRgkbkS4NBra9uXAzRvDFdtNi1?= =?us-ascii?Q?a9b5FpR2u4DSuFlpZyQu5qvm7+d42V4yLkggGVs+SQF7Kc/D9mskRmx96BXa?= =?us-ascii?Q?TTi8KozDBeZ5R8Y0vllN/JsINHO8ODV4hz2Za/hi07dnd5FkMMDg78sN1sho?= =?us-ascii?Q?0Dp2pqDTsa2bHt5IBEiXvJrdP7DbLonr709s1mYsMGuyAhmQNIGHMcl4UCsZ?= =?us-ascii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UwYes9P2R2Pfjl7dcuyCurD9nw9qA7pA?= =?us-ascii?Q?lg=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f787dbc7-d253-43a1-3a56-08daf22dfe4c X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2023 10:40:58.2548 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rvYo5KIStzFCw6jGkDomfjyq12y6sSx7pc/tSqtCrrF8p2DBTLFF+7HqtUXj24g8BRJ32PimK0EPl7f4Pqi8Jw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9567 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I would like to get rid of the following sparse error in the enetc driver (for arm64), which uses ioread64(). ../drivers/net/ethernet/freescale/enetc/enetc_ethtool.c: note: in included file (through ../arch/arm64/include/asm/io.h, ../include/linux/io.h, ../include/linux/irq.h, ../include/asm-generic/hardirq.h, ../arch/arm64/include/asm/hardirq.h, ...): ../include/asm-generic/io.h:239:15: warning: cast to restricted __le64 The trouble is I don't understand why the casts to __le64 and use of __le64_to_cpu() are even needed, when everything seems to be native endianness. I've seen commit c1d55d50139b ("asm-generic/io.h: Fix sparse warnings on big-endian architectures"), but that doesn't claim to fix anything for little endian (and doesn't touch the 64 accessors, for some reason). Could you please help? Thanks, Vladimir