Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5640113rwe; Tue, 18 Apr 2023 09:22:27 -0700 (PDT) X-Google-Smtp-Source: AKy350aI4e8fL00ku3yJYVn1bCgk2T1FvZLH2GbqHRTd9pVZLK5y3PF0X0tbfuD9N/a3jqstHx3H X-Received: by 2002:a17:903:11c4:b0:1a6:45e5:a26a with SMTP id q4-20020a17090311c400b001a645e5a26amr2959975plh.27.1681834946929; Tue, 18 Apr 2023 09:22:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681834946; cv=pass; d=google.com; s=arc-20160816; b=yXLHzMdiSCG8vbDt8Hfz1ZOtCdD71f++utsoLmssWGhxAFlNTvZWGuHi5ts+9QFeoY YlwWWcxRPtjoA2wY1jyL3ugvFi4+v/xwBiDvkGLyV0TuZMWK+OT7hCUySCtnAHors1su uMogWZgw3qsEx2EjBiXcb0efJHTQZsop9U1maJWoG4LQThrmvkxdbwWzGCHOWK/czDXw FV++mtt/xZvgbVhaZC5cvms/kdK88dHwLLArn/sqZ0thjBkDWyE/Ypzjm2PDulhBe5ni uhCDKSEDIn/Au3YLG52X9ioOtxZCY1yASdZvUQm/zJ9EC6tFwJXwNiY+eBQxDB6z6tjO RLjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=r6VO2A8LjacJSMfbsVskum1GES1ae4BPeTdsxEUwqPk=; b=R4ws/oH5yAgOBlf0KHxwwbt0i3QkokZTHRgS+JFEzjeI8aDHyxQdr4TFkQiPzE5aqA H1k7hBWP2O7qQt4o24xKoqXDsDiUBB+VjlI1QuNX/Q4UA09i2m2ixsqwKh5dtcepPpMf m8TieTs+B72fbrsXrYKg4K6inZ1IJ0fte0VgoJaCks+cwUc56NX4G8nTlhN3pt+ibOMz MGi2eb6NWzlCWOBw2xGZStw0CFKTx5v0xW2lkqmQGz7R6u9h3OtYpjSspEsIuGUpgslq 4rSiAYfrDIzbHlX14t+fr/MrILPxx0lu2FP/Hh86GguwMg0dPsUXzdFUJiz4NFNxyR1B sBbA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=M+XdPxWX; 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 h1-20020a170902f7c100b001a060012dfcsi13655245plw.114.2023.04.18.09.22.15; Tue, 18 Apr 2023 09:22:26 -0700 (PDT) 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=M+XdPxWX; 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 S232301AbjDRQRb (ORCPT + 99 others); Tue, 18 Apr 2023 12:17:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231194AbjDRQRY (ORCPT ); Tue, 18 Apr 2023 12:17:24 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2050.outbound.protection.outlook.com [40.107.105.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E7C1B44A; Tue, 18 Apr 2023 09:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ITtqPOVfIwRpL82G0lOi61xYLXBCopc+Ic5jdeUix3Sa+cuVJIh50ODwD9apMoB1p9kJ3lXPLV1DLy1ubHLKoIN9MInzrfa+vcJzfLdnV+v1S9xxHMIgLISVbAe25cNAdoanuE8ZPqCJRpN+kwmlg4AiQ4DkAT/FEB4Ow8X5Rd3fBmGSwWIEX9nAO/EdmwyvgDM3iFYLfOAOlSaGxow0dGRR8RIC6M4IUx9f8wz66VyJI4aLMNs0CfWMlTgB2dy5SV+yUB6P9twxMcEGPPK89EVsQ7Ev2SKksm2ZDc3r66OlCge0U4uPyMpQEMOc4dbuOIM071TBja6Xp8Eb7dH0FQ== 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=r6VO2A8LjacJSMfbsVskum1GES1ae4BPeTdsxEUwqPk=; b=ZbMAGCLyGfdS8CoPXJNKCI39B6xCC8kZ2rWyErCHQSEwRZcPisJ0lxDO05y52b0dfh/952UFZldZErsQ8ScRmtNB6FLfMe8TBZ1gW0GZQ/OFDlsSZel8EoeyXDaj+druSOJYd+/N/xaoLWGmv4NPUR4qT76feOB4mJbGxav+zWTJuWfn7qRH2u++397bIo3lcm2YHtcFsW+8IlBf5COUgXh125bfbGgOeIU193OSLruPykY//XZpQfKoIb42t1LtURgdLToWjndL8ubRDblXYBYI7HGmF4LBgD83kFVteXUteQpOclss2kaV888pl5pH8zBCKhoDkT/dah0hjQpCrg== 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=r6VO2A8LjacJSMfbsVskum1GES1ae4BPeTdsxEUwqPk=; b=M+XdPxWXfYoKn5aI/ozficCLQslC61oURXW9yYWqpRN1vbp7T6T6EMkNUFCg91sEXxyMVbty31eKxh/7Neai7w2KWC8nTvMP+RqKJUyQ6YpKforzC+MyqzRG/IYViAxktqWnZ4t1X5Xx67vv99HaAVvrF7ZXQAZ1Str02xLRzRI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) by VI1PR04MB6911.eurprd04.prod.outlook.com (2603:10a6:803:12e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 16:17:19 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::55b1:d2dd:4327:912b]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::55b1:d2dd:4327:912b%5]) with mapi id 15.20.6298.028; Tue, 18 Apr 2023 16:17:19 +0000 Date: Tue, 18 Apr 2023 19:17:15 +0300 From: Vladimir Oltean To: Arnd Bergmann Cc: Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jacob Keller , Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: mscc: ocelot: remove incompatible prototypes Message-ID: <20230418161715.3lig6wyv3baokvpe@skbuf> References: <20230417205531.1880657-1-arnd@kernel.org> <20230417205531.1880657-1-arnd@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230417205531.1880657-1-arnd@kernel.org> <20230417205531.1880657-1-arnd@kernel.org> X-ClientProxiedBy: FR2P281CA0106.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9c::18) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|VI1PR04MB6911:EE_ X-MS-Office365-Filtering-Correlation-Id: cb1d9fdf-f2f4-470e-fc52-08db402861ee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6mKopn9ZPG3WFVwEcPKx4Ejj74PM0mpHRCzql8nTbwhIhdVEifhs9N4CTVn07stI9IMHXEZmABaMh46BW/U5LGA48cxxfv90FowDANQMEd5VU3P4XEg4WYEog2rfMb/HwL2Wrc3MMrcDETNBS+hOCTqjkXWg38Klg4thVkV+f4GYAnv2CEvMc/0dYQ0mPGt5dAZ/5epnNQe7UWlf6gGCpIdV+t9K7p8Q4Dr2lWSSCT5vZ7noOkJdsfrn9TyZK71unvfFVrnX9MRkkdtY8A8wY4Y8VITUF89U9M2o8lJJf3MtLLV1AOXCT3ITX6bgcKrLwQZ/OlMmQ8WATtjNpsDnl0XogzLUbfVZc6vuCZG5xXuZ6bTuRTbvSCy6I6WNt55xn8xomlb43/kWFHLXHjO3/JcLsSqYb/pbtwCCWp7N2pQsAMmxYJS9xdJqt2Msw/RxGKPxLJrtG+cnr4fXbmL+bPKmKhsKdNbJbeWznEV9u0O+Ga2x7nM40yjoE6vWRwzuJ9lvkBAmJKo3knbRrGoQ3AFP0alkprnyvqcBTrestb07YiY+Ia+Q4nr1lPmjaZ3a X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6452.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(7916004)(366004)(346002)(39860400002)(136003)(396003)(376002)(451199021)(38100700002)(33716001)(86362001)(41300700001)(8936002)(7416002)(8676002)(6666004)(186003)(9686003)(6512007)(44832011)(5660300002)(1076003)(26005)(6506007)(2906002)(316002)(6486002)(6916009)(66556008)(66476007)(66946007)(4326008)(478600001)(54906003)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?2a/q6x9F8tlAuiRJ9/NRyK3jt+KyAFS97tf8Zah+YLsAoIrB/ur0TuFm/8Lq?= =?us-ascii?Q?CDB4HZbTbu8NyYrFwk9dBjWm0gMRy53HK5Rs0gzRAljmQSz3X9zgsUd6Ms1F?= =?us-ascii?Q?eRPKLeWcL0cGJeHZRubtt/yhKfADwfdPvteK1Sadf5m80y2NvgLfBxcOYYPv?= =?us-ascii?Q?4yOyZNV6Y9jxsib4MvnQC6Zzq7npfb6mXM6E5X9OIhWnWgXERTOm8zDHNfFo?= =?us-ascii?Q?yYpcpOjLoWNSCVda7r3j0PMOmuz2H3jZWVuOTabN22torsdwDuVgsBuM0GiV?= =?us-ascii?Q?zec4dV/jsFd4NCace9gFuzrOoxlbdXLIhspFKTj39D/F4yFedSyP8MyJigQc?= =?us-ascii?Q?uAqZ0hVwXyVqR3RqYSCBuPEL5QXG3z/4X2HdXE18J5Wzz8X3aPwlCuTPvW09?= =?us-ascii?Q?lgg79Jex2KNieBgnPVCBXdhKimYpJYhSO/Kn+2KHkZFfdOlPnFWd4SLl4K+q?= =?us-ascii?Q?bsodKSwgmM6YEqTVptDJeWhCfYPN7KflFt3Qflj1J8OdFwsATFIHfBKE2/1E?= =?us-ascii?Q?9gsWUVHHbMh5c9hCGGoKPE7a+UoN6BwGN+bxTnZlC8qGWIO2XfEscjXzLA1j?= =?us-ascii?Q?OjzJyTcgvPUl0vk5IzGrg7sBij3EAFK6fY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?Q?Y3trDhnFs19os5P/lC1CUPrs9zymwlrDBhqWp6taJKr9Ml91oKb+FBUJrWmy?= =?us-ascii?Q?QNbAmQ/qd3NxLZpVrmpLv8TgKC8GEUSmnViwFw7I/xhkQXOWnKGPYKgB1V4h?= =?us-ascii?Q?Eg=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cb1d9fdf-f2f4-470e-fc52-08db402861ee X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 16:17:19.0631 (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: WkTSFNyeb7sZ0oX7/hT7p/TRTacvB0NdMKGGMlwkSGA3ejr/mhLbS8ZNhAT/s9FTucbxij9xJ43eCasIyYBEhA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6911 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,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On Mon, Apr 17, 2023 at 10:55:25PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > The types for the register argument changed recently, but there are > still incompatible prototypes that got left behind, and gcc-13 warns > about these: > > In file included from drivers/net/ethernet/mscc/ocelot.c:13: > drivers/net/ethernet/mscc/ocelot.h:97:5: error: conflicting types for 'ocelot_port_readl' due to enum/integer mismatch; have 'u32(struct ocelot_port *, u32)' {aka 'unsigned int(struct ocelot_port *, unsigned int)'} [-Werror=enum-int-mismatch] > 97 | u32 ocelot_port_readl(struct ocelot_port *port, u32 reg); > | ^~~~~~~~~~~~~~~~~ > > Just remove the two prototypes, and rely on the copy in the global > header. > > Fixes: 9ecd05794b8d ("net: mscc: ocelot: strengthen type of "u32 reg" in I/O accessors") > Signed-off-by: Arnd Bergmann > --- Interesting, I didn't even realize we had these duplicated there. Thanks. FWIW, they were duplicated in commit 5e2563650232 ("net: mscc: ocelot: publish structure definitions to include/soc/mscc/ocelot.h") and haven't bothered anybody since then. Reviewed-by: Vladimir Oltean