Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp912838imw; Fri, 15 Jul 2022 15:37:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1smAW26PGmJeO1GSJxNPpcmC3OCaGz2J+Tn5yo5Hg6dcFuovIU/YgMAvqE1m7G28dBkAI/W X-Received: by 2002:a17:902:f544:b0:16c:5119:d4b6 with SMTP id h4-20020a170902f54400b0016c5119d4b6mr15621205plf.28.1657924625837; Fri, 15 Jul 2022 15:37:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657924625; cv=pass; d=google.com; s=arc-20160816; b=t4JdIpocddXAmzzPnzmkBlrRFGoGGUNw9Mh0x16EuSRgBgouQwPAlCUnNf7+21M4YZ aJNl65x7Ws+LCVlEOAZci19FvLFYffhK2h9wsmHa8lhLHJTdC1kNs7RccjotPPkKMmGk BQGt9BJd7eSMnRasCfxdjnFnawSTPDwWVzV7yt3H704rp2e1LX1s/ZbZfNHeQqP1A1aC f+3fwzbNVtluqvpmhyUxa00FPrPMqW3hGKM0xhEYcP1weaaFJbpry4UVc0ewYU9rflKK tkCLZ8HtwyIxmDT5aSVamgoGSpXBZSZRSMRHgvWINprYGGYj5dlLloXQS9ZXuH2JKQ0m RgXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GCnkFbU0TAj16icomPgcXktaEQeVtiaAjBFYiBXhIY4=; b=SyS2mGByGLlCrSLwXGrmAq7gS/Ygl32qcfz+ZA3oyyLqzIVgPNwd2px+/faDDr6wLt mnh40lvwnyeYNP7vhwVAapZtdczxyUb/7GWdBS0Pn+a4DhjJE/ZXj8vuJPvTCL+4o+33 9lKkI96hyHHsyYD0bAFLNgJ3bmAPpWY9KkaQyjVx1LgnIjJnZK57Uxt5+1b97eziSujj Yv7z4yojqH9lmi/2e40gN4ZY3RsJZyi+/ZKe7UbQfsMg7EcmayUUCtiDOAuNGNTok9iZ roJ2iwphnBD0DEkImyBmPleon/baiy+4YSeiiCmbse0sT31r7ZrgEZSvx495QanOD6IT yJfw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@seco.com header.s=selector1 header.b=cY2ff8co; arc=pass (i=1 spf=pass spfdomain=seco.com dkim=pass dkdomain=seco.com dmarc=pass fromdomain=seco.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=REJECT sp=REJECT dis=NONE) header.from=seco.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a631302000000b0041291b52146si494803pgl.256.2022.07.15.15.36.51; Fri, 15 Jul 2022 15:37:05 -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=@seco.com header.s=selector1 header.b=cY2ff8co; arc=pass (i=1 spf=pass spfdomain=seco.com dkim=pass dkdomain=seco.com dmarc=pass fromdomain=seco.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=REJECT sp=REJECT dis=NONE) header.from=seco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232562AbiGOWFO (ORCPT + 99 others); Fri, 15 Jul 2022 18:05:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232251AbiGOWDq (ORCPT ); Fri, 15 Jul 2022 18:03:46 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70058.outbound.protection.outlook.com [40.107.7.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A42514BD1A; Fri, 15 Jul 2022 15:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ARGKlOlKvSO0vggmPQEEfnC2oM5Q3c5yVHbthFJCOVeo3jc0okxJF14XU5iZVw6P759GTaOLUC0SRGxkaxv47giQvYqODGo3ghHpjARWCva10HfWB3WoOKagJuLPx6s/utp5yazyWVLfbU28i2gMjmwHA70MWjQP+bqko/Um8FLe5f0i4v1YiVjdokEY44F/NzPf3fV/CORP7BDR/Xj7dBgDVcIVy9oTH686MYTXPfm0LS7h/dCjTc8wG/13X5shMEEE/TUdWWr/S9q1Gj9hMgDJN6f5cYXYcjSYFSn8838Tq4eZOkhKUxNFJTY+90yrvo2nNs9Cj/yDyyNLCpSG8g== 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=GCnkFbU0TAj16icomPgcXktaEQeVtiaAjBFYiBXhIY4=; b=gy+G7aIOexnC8fByjTuEZcHOioxyvqsdYx3Obpl7yTmW9AzEpDXY/DlbKmjLMk4q3ILPi0x+QNYOjZZL/EV6K/ZqEL/xwj4kqlJ1E1c7ZMSR+UNGS3GKyzjgWzcGLCYYnXkzgM5VPsuhB3vLvsGo5msbRQvGVCZ8reRw3WqQW42yoEEXjALGg+UflMmIFFtuCl6rM+UDFXFnVNEdJry3MReuIUEiIfludvXYngIjSRPZr3Vox8+wIkYyPpJg3UgZ0OUEYgiemgm7j31Pr3rUt3Yo0Uey+te61bwqBeyszKM8++LmlgO0VRQSnR5/C/FbM5gMXKhJ3H13FTlCqGoUFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GCnkFbU0TAj16icomPgcXktaEQeVtiaAjBFYiBXhIY4=; b=cY2ff8coSdCXGDYoeaJIRQTCWKAH+k9WeumqqfjISLTdVYalz21ZGXtVomtTwcj1l1BGFUT2bwHiFkTWlspykPm+bxGOchJPIgYfWEWDVYta0rMpdpLiwVC0ycf6aLdpilJ89LEf0zCi2ivLhOkltyN2XL3rspG7XQ4+JFm9/m0JYfVSVCmn1KdBjMtYvGuPlKaRn/5yxbvLyD1FGVjDRbdJbi4TG/q8/WbmT/9UeizYNPVoAf4KswjWVyYO21PinCBRNsWn7oVwYWsX1N2HaM1B8DVDZHEXcX2NCl4QkU7Q7kU2ChwR9jxKSdnAxKwS7wHhvAoR5v8m7U4oN63jpg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from VI1PR03MB4973.eurprd03.prod.outlook.com (2603:10a6:803:c5::12) by DB6PR03MB2902.eurprd03.prod.outlook.com (2603:10a6:6:34::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.17; Fri, 15 Jul 2022 22:01:25 +0000 Received: from VI1PR03MB4973.eurprd03.prod.outlook.com ([fe80::5c3e:4e46:703b:8558]) by VI1PR03MB4973.eurprd03.prod.outlook.com ([fe80::5c3e:4e46:703b:8558%7]) with mapi id 15.20.5438.015; Fri, 15 Jul 2022 22:01:25 +0000 From: Sean Anderson To: "David S . Miller" , Jakub Kicinski , Madalin Bucur , netdev@vger.kernel.org Cc: Paolo Abeni , Eric Dumazet , linux-arm-kernel@lists.infradead.org, Russell King , linux-kernel@vger.kernel.org, Sean Anderson Subject: [PATCH net-next v3 32/47] net: fman: Specify type of mac_dev for exception_cb Date: Fri, 15 Jul 2022 17:59:39 -0400 Message-Id: <20220715215954.1449214-33-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20220715215954.1449214-1-sean.anderson@seco.com> References: <20220715215954.1449214-1-sean.anderson@seco.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: CH2PR10CA0009.namprd10.prod.outlook.com (2603:10b6:610:4c::19) To VI1PR03MB4973.eurprd03.prod.outlook.com (2603:10a6:803:c5::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 443fd466-fd3b-4e67-5c55-08da66ad8fb4 X-MS-TrafficTypeDiagnostic: DB6PR03MB2902:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zi0E5cBd8R8pmHB3ZZaoFdUmO1gPP8WxhYj64P2GukOw5if2lYUK2akcN9bCc6StgjUQUJriOMNMfwBPC6viql0GnCql1KIWoIiONE2ASBbEle0LIlOUhTDfc6lBMpyn+NgdMRvxnwE09AHMvLYxxacZyhIM/4MCy1pjgpcdp/swr4Arvw2wNdlSAqf7r0cZjuAwvn/iE+Ph7Ad0jDLzBO54SK//0j53NLgONI4azUyvZaP0yWsDkDBc1chPXRklm+pxTPUoB7z+uMGNdWjh4L3ZYevSTLl7QA1x2Bbf9q3aOmOYRBH2rwkMg8rbXxH4Te74vxVTl1Xmz/6DRgGrEYmSCreJyzE1cyf2KUflPS3SpAdJpnwIjS01iX3K+OPl6WIqHBpDcrl+fd/q1jjjequ5eFPbGdzzW7E7dY3AvoHS/IpeSl3q6N48RVYIXjJDAxf4Soo5Q4eeY3l1+aEHpvBL/coXQHii13SQ7C6NwhUqXLZ+ayqXnBin4xWHv5hZo774HjvIXOAFy/L4BUmOPWfky0uJG9MiJtONiWLKvYFZdPTsunZZwK3GJ/RqDNVFsCuQaOVhbgpub/wh0jcX9O8AjGabdSGlaec8s2G+GzXaudfuwL/b0IVzZ89JyKKwm9DeWfmaKWNg5DcfmKwrtV9/H9+306zDtDn5SJJwgOjjRtLVf44xkm3NCLfHi83VRCZm+ZnjRGmgFtO6GBCRvj8FUAeu+8Df6TIYJNaKBn0nCRpGjNSsVfDEO14PBxq5oXQU4RFoVNrnklB6IdmSG9x/PVZZeXTfFQSPY611cxyF7b0WO1hjTUUmsQh1T0A8 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR03MB4973.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(346002)(366004)(39840400004)(136003)(376002)(396003)(86362001)(5660300002)(83380400001)(6512007)(1076003)(107886003)(38350700002)(38100700002)(186003)(2616005)(36756003)(26005)(6486002)(52116002)(316002)(41300700001)(6666004)(478600001)(6506007)(110136005)(54906003)(2906002)(8676002)(66946007)(66476007)(66556008)(44832011)(4326008)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Ah9B7cwfqwMre55+ElsGIWVYuNiQXUlocxc8Rem8M74/dcSa4Fek8L15l/xV?= =?us-ascii?Q?/2Kaz+HPf/w3DP+IOO1M9PoFCd7efygBmaZOETdefsI4xDrsyw9UJY6Sc5hl?= =?us-ascii?Q?pvAABOc6F9kleuRBbXN6y0kKwc+YC9cOWVStMdkxUJ18LlU8uH4EpLVpAeOF?= =?us-ascii?Q?QiqjqZ4kyHVTZbkYRKdPKjUsMZlRVWx8EpE0MLRnXh4ou0FicKr3yTpnnp4H?= =?us-ascii?Q?w4ocBzB95mhcxO4D00D9s7gj0+LA74+FurqaWtz7xo+IxlO41UJN6aa4AHZp?= =?us-ascii?Q?Sj9sguf4Ni0sRb1hZyZyGSD96yeZ9XpjbDJWLHvAexTGcUsrLhtac++uC4fn?=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ZN1kWCVDuKZRDzsiEHyzGscohlmb5rA5fcSclq?= =?us-ascii?Q?o+xXCrvxxWYMwgdZgvRlf1lN3ZbFdNwEl6y4xfv89uMFOvoVvj9D4S1s9jD8?= =?us-ascii?Q?cfa3SXKq9siM1OsW3sGSBSvvlxbiDvDntT7UUocYpsWLbwhvXfPGcnkvCw6t?= =?us-ascii?Q?YRdpCWlIYMLnsq2UJvbY5wNmaQEIGn1rC9bRXxG9K4YHOxOgO3XgC/z1f3Ca?= =?us-ascii?Q?+RZmG0TNq7KZsiBuekDwOC8mytHkXwcEVXb77yMSBWmXuVLUX8nmK/lOXaWV?= =?us-ascii?Q?aj1DFPnODSaL/fG1AekNeJtByV8UVNLQBca7h1CBWHMjgPMMAl4zoxLdVxeU?= =?us-ascii?Q?2pGBwLYeNAEdD/Hc1Y673l/6jmawuJqt0FM6VjYdQ42ziqWZR57mhfJZqQvf?= =?us-ascii?Q?Xw=3D=3D?= X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 443fd466-fd3b-4e67-5c55-08da66ad8fb4 X-MS-Exchange-CrossTenant-AuthSource: VI1PR03MB4973.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2022 22:01:25.3933 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2QnK95Cb5Af4zr1KLS6ELQPTGSkOYcHL8xtOTT4JH4s95Huc+ilQBvCdgJ/bpM7XCKLHekuwOY2TGd2W7E91BA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR03MB2902 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 Instead of using a void pointer for mac_dev, specify its type explicitly. Signed-off-by: Sean Anderson --- (no changes since v2) Changes in v2: - New drivers/net/ethernet/freescale/fman/fman_dtsec.c | 2 +- drivers/net/ethernet/freescale/fman/fman_mac.h | 5 +++-- drivers/net/ethernet/freescale/fman/fman_memac.c | 2 +- drivers/net/ethernet/freescale/fman/fman_tgec.c | 2 +- drivers/net/ethernet/freescale/fman/mac.c | 5 ++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/fman_dtsec.c b/drivers/net/ethernet/freescale/fman/fman_dtsec.c index 09ad1117005a..7acd57424034 100644 --- a/drivers/net/ethernet/freescale/fman/fman_dtsec.c +++ b/drivers/net/ethernet/freescale/fman/fman_dtsec.c @@ -301,7 +301,7 @@ struct fman_mac { /* Ethernet physical interface */ phy_interface_t phy_if; u16 max_speed; - void *dev_id; /* device cookie used by the exception cbs */ + struct mac_device *dev_id; /* device cookie used by the exception cbs */ fman_mac_exception_cb *exception_cb; fman_mac_exception_cb *event_cb; /* Number of individual addresses in registers for this station */ diff --git a/drivers/net/ethernet/freescale/fman/fman_mac.h b/drivers/net/ethernet/freescale/fman/fman_mac.h index 730aae7fed13..65887a3160d7 100644 --- a/drivers/net/ethernet/freescale/fman/fman_mac.h +++ b/drivers/net/ethernet/freescale/fman/fman_mac.h @@ -41,6 +41,7 @@ #include struct fman_mac; +struct mac_device; /* Ethernet Address */ typedef u8 enet_addr_t[ETH_ALEN]; @@ -158,8 +159,8 @@ struct eth_hash_entry { struct list_head node; }; -typedef void (fman_mac_exception_cb)(void *dev_id, - enum fman_mac_exceptions exceptions); +typedef void (fman_mac_exception_cb)(struct mac_device *dev_id, + enum fman_mac_exceptions exceptions); /* FMan MAC config input */ struct fman_mac_params { diff --git a/drivers/net/ethernet/freescale/fman/fman_memac.c b/drivers/net/ethernet/freescale/fman/fman_memac.c index 2f3050df5ab9..19619af99f9c 100644 --- a/drivers/net/ethernet/freescale/fman/fman_memac.c +++ b/drivers/net/ethernet/freescale/fman/fman_memac.c @@ -311,7 +311,7 @@ struct fman_mac { /* Ethernet physical interface */ phy_interface_t phy_if; u16 max_speed; - void *dev_id; /* device cookie used by the exception cbs */ + struct mac_device *dev_id; /* device cookie used by the exception cbs */ fman_mac_exception_cb *exception_cb; fman_mac_exception_cb *event_cb; /* Pointer to driver's global address hash table */ diff --git a/drivers/net/ethernet/freescale/fman/fman_tgec.c b/drivers/net/ethernet/freescale/fman/fman_tgec.c index 2642a4c27292..010c0e0b57d7 100644 --- a/drivers/net/ethernet/freescale/fman/fman_tgec.c +++ b/drivers/net/ethernet/freescale/fman/fman_tgec.c @@ -180,7 +180,7 @@ struct fman_mac { /* MAC address of device; */ u64 addr; u16 max_speed; - void *dev_id; /* device cookie used by the exception cbs */ + struct mac_device *dev_id; /* device cookie used by the exception cbs */ fman_mac_exception_cb *exception_cb; fman_mac_exception_cb *event_cb; /* pointer to driver's global address hash table */ diff --git a/drivers/net/ethernet/freescale/fman/mac.c b/drivers/net/ethernet/freescale/fman/mac.c index 0f9e3e9e60c6..66a3742a862b 100644 --- a/drivers/net/ethernet/freescale/fman/mac.c +++ b/drivers/net/ethernet/freescale/fman/mac.c @@ -41,10 +41,9 @@ struct mac_address { struct list_head list; }; -static void mac_exception(void *handle, enum fman_mac_exceptions ex) +static void mac_exception(struct mac_device *mac_dev, + enum fman_mac_exceptions ex) { - struct mac_device *mac_dev = handle; - if (ex == FM_MAC_EX_10G_RX_FIFO_OVFL) { /* don't flag RX FIFO after the first */ mac_dev->set_exception(mac_dev->fman_mac, -- 2.35.1.1320.gc452695387.dirty