Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1671574ioo; Sun, 22 May 2022 23:50:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUXfWXtr0PEe5W/oz7weUYy9HOi8ciSOPS0Wrg95NGIIvIC7DuCtYNGIt+9T2VTSe88n/2 X-Received: by 2002:a05:6a00:2444:b0:4fd:db81:cbdd with SMTP id d4-20020a056a00244400b004fddb81cbddmr22480931pfj.32.1653288621666; Sun, 22 May 2022 23:50:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653288621; cv=pass; d=google.com; s=arc-20160816; b=ypkgrOVHNb/TEyXjX0XMZmCRx7v8D1Dna1Bs/WzOHYZnL8ECNKGRBj/Ml166gWuWd6 sRLpikyRWkTSnIawYZfEMx6XXvzJcARBHTDFmcmmofp+ZOTXquHsRdkvjBxLiG6eJqAB GcEqyGtvFwolrotEVk1ET3G5U5XAGY3JB4KwIWOf+wr0TZXwQO5kYf0I4gmsDm0GUmn/ 3feRCmnETMGe/PtHfoLuQbZcqNaFTFetTywikQYFYM9RJfuIqhlzJTLcS2J7LOVvyQjV cLhfnicgdVFdVZAt8x2pCMfrvOMOeNPDblbHIun8AudBlKHNUHY09xgwQW6upS0rPoru HaXw== 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=TK4mIdRmLldCgehempqYJzYIzj/+HjHTMSRgx4T+z6E=; b=BH7N+Wv1SMa/zz7C9Dg0eo+OIxNC4r/8sPYEd64GYT76zqc39xUDfMOCTeMRumOVK6 0JV1iHw3q9Iw5vJeDe2GLFSkXQBGR+f7nrnYT67ZfcrQesfHoHLuDG4pYU0EdBKgTqUN UeXJg7xkj4Cbna2fO7UUuYH8jD6cp1m2gLzGoJeuXrJvlVRyTxRIpccpnU+wcwEhsWu6 YgKnyzJUU8qn5mknQZ9EZNqVkoEIEa+wMitcBzUcWEnZu/Z0q7JFFcVRJSXOZLyF/eXf EQeyjhni6vs/o+By+K6tGp6qpsy1gdsrKIvY4m0bf0jAgjsTqVSHCxSg/UP8CDlUgj7J CKJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Zf+7XHhi; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h14-20020a056a00170e00b0051844a9a436si15139323pfc.220.2022.05.22.23.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:50:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Zf+7XHhi; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1820453A43; Sun, 22 May 2022 23:19:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345980AbiETWMv (ORCPT + 99 others); Fri, 20 May 2022 18:12:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237117AbiETWMt (ORCPT ); Fri, 20 May 2022 18:12:49 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2083.outbound.protection.outlook.com [40.107.236.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D1BE1994A9; Fri, 20 May 2022 15:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bxePF30dRLZwjtaIvObpKV3fOJQcyIy6C1qCHs/Nprm04HIv0uVRhhIWbBXKaBtVEfCbDVVnj/QEIWPeLvT8jGWHqbSHuOPfCbI8sg/UPh0Goctk246LhsviEeOlTbBPq5kiFJQNH6KB9YQmZHLanpVh5KQv3V2hw6Dvn7S5InR+nWCjy5qI+J6U8uPSatKEmoafY0GutjS9FeChNWhuzQZtUrelR4pkWNdJIrET7h02slsfjWxrO/1o/6AZPVRsUuu/63S3eFCyOYDUwx83W/q2LGr4pWpJJOQkaPrdc74fD+vusPkdmwLEdiTezSyRh4pMnjozIfxqPtxf80AhBA== 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=TK4mIdRmLldCgehempqYJzYIzj/+HjHTMSRgx4T+z6E=; b=VhVsaqpZogiMuy1BmdCbQhIQLoCpPCCz9jiMIpeGgFQcwmYXk3asEWMkAaQDxGA8ngCzitzeZazAePDbyCfhm877VU3TE5rCIhY5JsxlOjGhg7B94tQ33DtxjFIy+AGvF7FTsYONPpPXsfXVj/kjmvxlQ/5R9fY/40AiuU4lZ3X/7/Sdid7OvPfB3ja4gZryJZ+flgrXDWx65RVgUIJiclA331N9CZ0DeWY4VE/ZhymabETQzpp3LeNTvwvoq/qAfWg/kq2eI0F8RJ8eK2i+BoVpqsgrBt2E7CA7Y5NJqSC+218W5Retsm1tac5B9bxj1NPOX573LzZwLlkv0HrMkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TK4mIdRmLldCgehempqYJzYIzj/+HjHTMSRgx4T+z6E=; b=Zf+7XHhiee30t040ZgvmEmKQefK07flisYveNVRbDyYqVT8giFzQHhBSDNhJR+fzBoK5O6cKyrMVSaLO+Ie9kbUJ27tyEXO1r8Yv7LoQdP/Io1qyT15/6ym5qcroLfTryJEjyHfHKO0Vf7ZOd7ScIfoQeVTps42+NLTajjQKD5SAVUbaXKk3bhelNn1Ne6uRi+ycMDJC3sVm1NM3YKqhu3jjUzJn5+FgF3c6ZeH9cYl/N2ViAaRN2T/2rx2GeiZhN4gq5PTssV/tD5jtPxONioCrnPQDoJq01cHwjJlwvdpfDJ8PTQP9UyHgWd6VzlGWnYRIrYe1kB5c9Q/Veu1TIw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4209.namprd12.prod.outlook.com (2603:10b6:a03:20d::22) by DM5PR12MB1178.namprd12.prod.outlook.com (2603:10b6:3:6c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.14; Fri, 20 May 2022 22:12:47 +0000 Received: from BY5PR12MB4209.namprd12.prod.outlook.com ([fe80::bcda:499a:1cc1:abca]) by BY5PR12MB4209.namprd12.prod.outlook.com ([fe80::bcda:499a:1cc1:abca%4]) with mapi id 15.20.5273.015; Fri, 20 May 2022 22:12:46 +0000 Date: Fri, 20 May 2022 15:12:45 -0700 From: Saeed Mahameed To: Guan Jing Cc: davem@davemloft.net, leon@kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] net/mlx5: Fix build error of multiple definition Message-ID: <20220520221245.bsf3abwo566l3yzs@sx1> References: <20220520073423.35556-1-guanjing6@huawei.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20220520073423.35556-1-guanjing6@huawei.com> X-ClientProxiedBy: SJ0PR05CA0192.namprd05.prod.outlook.com (2603:10b6:a03:330::17) To BY5PR12MB4209.namprd12.prod.outlook.com (2603:10b6:a03:20d::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d4f0f0b5-ed24-43ae-6bf9-08da3aaddeb4 X-MS-TrafficTypeDiagnostic: DM5PR12MB1178:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lOKrtZ8jY1TPGBkPb2yJdZniB6/lfd38AhWjm9tpT0Uhx7EO9Vu1kKsP0DzlW1Q+9gwLEVniDGk8wHqKYgELjhgT8W6ihqR4HTZWf2pZJzP1HjsZJr3IqaG3YZtAlxmsA4bAH9Y1TlFIThfWaGxegO2Qj1RlCaPqrrqqgnbgX4YPFaOB5euaQeFfBLzmeg11cOJ6xDmqGlegYY40lfFJPyd4xFHpKNo0wdJpY8K9iMIEcVqTaBzDrmIpYMlXBBKpAO8d4bGakutCSCv3cqpRIGzfG+zJ3/PQ8IwbVCGvRu8LK5M5bChXiXmHpL1q+6yZN4l7ZrtLe1SQsFI/W+IIr3LBZtv4Lbl6l4giKBxellFizJwOpUHbS7GJo2v6QOHc3J7Z24wwIWLpE2h/DrbtfI5sNRcrn8aIpChKwgruUw4hZZiahhQBxlUrb8OyQ/FGQvmjyhWT3MyJu0EfDSiqAN2/eE1pg8QuLun0CrnYVYC71nvOPHOvStGK9ieBZbZKyNB5871Z0MZlWcQ1K0CnKHOBv2nsdT35zjgh3NTDV8Dqjv+QyjfF0rZlMtkK31RmX5Et+v+atGLZeObqzTE09NnrEMSSLDL8JmVX47pPNJKIi0p+BYOXIsk63rgOmezpzYkQzNmg5RYcELfBKdCX/A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4209.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(7916004)(366004)(9686003)(33716001)(4744005)(1076003)(6486002)(508600001)(6512007)(8936002)(5660300002)(38100700002)(86362001)(66946007)(66476007)(66556008)(2906002)(6506007)(186003)(316002)(6916009)(8676002)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?LZepl6KdLUelwrjGb75X8POoTTfRLXEU3DaS8cMy1SdgF0SokiuZAwsUsUyw?= =?us-ascii?Q?rbbSUzmvxORu0E6Ed+B43uCMfaOG1qOCJvJJmqrJZiiBaaY7z1I3GjAzjYfn?= =?us-ascii?Q?RuCAlVuRtzIcMlT01trBrl/W5GFOtMrcZ9gUW3OF468d97R1gdgoDYyqgQ9I?= =?us-ascii?Q?TJzjrNXUKvQqZ7ivKepIeHjTvTBBrWPvZ9heDY23ua1jzIvQc93dCwLWYqDS?= =?us-ascii?Q?/SSgTygM6YWRMJwAkLiKwc14Grgona9izSwtaGL1NsjvZiJ8eFRkX3CVE9tj?= =?us-ascii?Q?Xrp2kr+QOlnyRiaZ1wiqzwGdgTCPh4ty1k1xkbEVKwEXjGjVHXws3Bw63bZf?= =?us-ascii?Q?GckkfdvStPlNdJG3Fl8NK+39vg85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?xJW/t3Klj3FMXq1wvCa6XKiiglYKlfefJfwekRWugaNh45J/Lw2fBXkUX/JB?= =?us-ascii?Q?snIMinDYz315tk3rNPj7ouy7lhSLS5xDwf/t8Cemim4f+x3V8n7iVMiQrkIr?= =?us-ascii?Q?p0F3r4K1MJ6FrQHLx4xpUIPA2MIipbFAPqSQdMDaHBtzSGGwNc8/Ha4BItWP?= =?us-ascii?Q?B7kqLrEPVvsuqIKHYuONWSDVNOltcPEkUYuF+QbvRxbXrPYt32QW1mWG1sco?= =?us-ascii?Q?aM7B+8FSzU/A4lFr48vFTS/gHE19c34+qmhWfEbV5tsHGqRFEC/8LsRGf44h?= =?us-ascii?Q?JbLt5TVeFMb7kppOUhz1VA6qVVQvCLx0/6nwAcry4uKHPn2K+mYBnZ+fSYso?= =?us-ascii?Q?ZZBCYD1PVqVHq80Y8uvbEgafP2WZby07eAMp4zrdgHmYGq16yjqrUvomgOga?= =?us-ascii?Q?ZiGyEfpSUtJ0OodzAeziuw6AkhUFF7OHYqKkXiBVxaPMa/aJUEQ/P7LDGxU9?= =?us-ascii?Q?pP4ZSgIcpRUpokKTUpjOmwOE6KL5pUEvkhFLcHqDdv05h80pYE6G?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: d4f0f0b5-ed24-43ae-6bf9-08da3aaddeb4 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4209.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2022 22:12:46.8965 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bPkv0KIg+Ihszl1+zZdGc9u9r093OlSRKvAzyCi5okryQEZ8qiZNz4id8q1/n9luacEA79wLSOMnwcLxrEiS5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1178 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 20 May 15:34, Guan Jing wrote: >There are some errors like: > >drivers/net/ethernet/mellanox/mlx5/core/lag/lag.o: >In function `mlx5_lag_mpesw_init': >lag.c:(.text+0xb70): multiple definition of `mlx5_lag_mpesw_init' >drivers/net/ethernet/mellanox/mlx5/core/lag/debugfs.o:debugfs.c:(.text+0x440): >first defined here >drivers/net/ethernet/mellanox/mlx5/core/lag/lag.o: In function `mlx5_lag_mpesw_cleanup': >lag.c:(.text+0xb80): multiple definition of `mlx5_lag_mpesw_cleanup' >drivers/net/ethernet/mellanox/mlx5/core/lag/debugfs.o:debugfs.c:(.text+0x450): >first defined here > >So, add 'static inline' on the defineation of these functions. Already fixed by: commit d935053a62fa11d06c757c1725782e46e7e823db Author: Jakub Kicinski Date: Wed May 18 11:30:22 2022 -0700 net/mlx5: fix multiple definitions of mlx5_lag_mpesw_init / mlx5_lag_mpesw_cleanup Thanks.