Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp262757rdb; Mon, 18 Sep 2023 14:28:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkNnhzG7HJtOHnMjZsTUMQy4IQT8K3dRUljOVNGLdpQ+i40pyGX0yTfyVKktBBXa+d4GgI X-Received: by 2002:a17:902:6806:b0:1c3:7628:fcb5 with SMTP id h6-20020a170902680600b001c37628fcb5mr9402979plk.62.1695072486547; Mon, 18 Sep 2023 14:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695072486; cv=none; d=google.com; s=arc-20160816; b=qgwDyG+ZSfAnQjySiildb2uNvou2zpCrF4I6mZUUwtYi7TAnsMMEnRxqIh57qAX8r1 sLkAZKLfPhYfoEIBhO68R4NJdDOSJab6URoeOWQzrU9lNF60exk7fMO9efFxWRceiGgh mFenmabZjs+cZZx+n+y15SP8T8aiecOKZJUtkuxgGGq0f6D10zCIauK3vVOrOWqupN4u Pb1Eddy4wDPGH7pG8nD3Ymbdi8AsEGyumWADsVTlLy34COChW6qy/nppbhXKtbWsUXVU qooRXVuy9PVxVPZoYT2t6Qy4M7/3HirKkV7SMxBYxsW2mWXBITGY3pUD/YlzFOCKB2YV oDKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=I+OLGZNijIkga7cQX1+Hpw/ipnX6+Te0zsFtB5pU3aI=; fh=srPsfU1z4Gr3jawrHGQJBASKbvQHmJAsR+Jx86oL8eQ=; b=HmeIAHJQOjRanARJBhRqSG/dFORkixj16HPlMCQkVSvQZwHhvKq9J0wWvLgcJ+cFlX ZbnoWMdzi4+gQ8dHlJQB+4i5LCKdHjJRbUiiXYlm68VM3bXoya/71Rfkwj0VXxAUIPoL M3uPbdAlB5fJL6vejCYKBOHMBikF6sYk7Z2mHeHcNLD0yoLmM9/lUuFyrVjnKYG06KfL skqgpt5Cqs5Xa1MP3/S/3eU5CNbyR+OqQVi1j5h8pz7/BzCMuJEXEK4z2KtBZMzCXUQO e9HRtzOyxcfKTwlz30j/FTdd8HKClCeeWEIlOdOABnpPSikIXmQUZvtTd9cm1oMVEDRo nztw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=S4njE0G+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id iz11-20020a170902ef8b00b001bf01c6bc1bsi8245399plb.551.2023.09.18.14.28.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 14:28:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=S4njE0G+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E024880BA652; Mon, 18 Sep 2023 13:09:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbjIRUJt (ORCPT + 99 others); Mon, 18 Sep 2023 16:09:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbjIRUJs (ORCPT ); Mon, 18 Sep 2023 16:09:48 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B35B116 for ; Mon, 18 Sep 2023 13:09:42 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-68fc9e0e22eso3783264b3a.1 for ; Mon, 18 Sep 2023 13:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1695067782; x=1695672582; darn=vger.kernel.org; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=I+OLGZNijIkga7cQX1+Hpw/ipnX6+Te0zsFtB5pU3aI=; b=S4njE0G+vzH8oyTuXamUMNWjSVi7qFq+UtvF+nsceq6HHhgu+2FVt41/JjjQ5C13jx nlGqzzfsp0vwAN+TIoB7lqyQnw7nhfJOXJnEne6wdMCfO97zR51+JP692oz/UQ/esQT1 5pq7VyGeWrsVMWxsTiOATVgQ1iA3i+KZo1ae8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695067782; x=1695672582; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I+OLGZNijIkga7cQX1+Hpw/ipnX6+Te0zsFtB5pU3aI=; b=jYpKoMlNySXPrv0TLjUrxWKOkeIAidzq0MruYDnCDkhVxLoqwA1InFZkkRD1MYU+Du b8UtOHnRbCXVaT8TuVCA0ZIMC1rqRLiN+pv5Jv6QsaYGjpyRopfIzHZFZ+qb5mWgn74W UOBdJLHLr6PjZREyEHtq7QXNpaZpgTpzoRvfBJ2wlZ99gflyddtVZTijpUbg6GwhUlXR 7wGDwX+UiqMqoCLa9Zx0OfG94HA1c90s34o8keqovn/GnSkoaVIQS2+stCcJ74l2Z5kp PW90nxy1AhbwEXdGkDQmgqf7Jon30MTF3DcJZ1ProzE4/Mq08UwQ6Gn0m/dT0d6ufbLL ujbA== X-Gm-Message-State: AOJu0YzSwX1/Aww5Q1zcGhKlbv58/SvAjzgEHWXguvMlNAokBsAxVS1g 7MQoCLWDmHZed4I022ii1QbqKw== X-Received: by 2002:a05:6a21:47c6:b0:140:a25:1c1d with SMTP id as6-20020a056a2147c600b001400a251c1dmr7726012pzc.51.1695067781695; Mon, 18 Sep 2023 13:09:41 -0700 (PDT) Received: from [10.67.49.139] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id d23-20020aa78157000000b0068feb378b89sm7742139pfn.171.2023.09.18.13.09.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Sep 2023 13:09:41 -0700 (PDT) Message-ID: <8500a4d8-47e5-9b24-04d5-35b78d32d9d3@broadcom.com> Date: Mon, 18 Sep 2023 13:09:39 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH net-next 03/19] net: mdio: bcm-unimac: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Andrew Lunn , Heiner Kallweit Cc: Doug Berger , Broadcom internal kernel review list , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230918195102.1302746-1-u.kleine-koenig@pengutronix.de> <20230918195102.1302746-4-u.kleine-koenig@pengutronix.de> From: Florian Fainelli In-Reply-To: <20230918195102.1302746-4-u.kleine-koenig@pengutronix.de> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000050d4a0605a7b9d5" X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 13:09:56 -0700 (PDT) --000000000000050d4a0605a7b9d5 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 9/18/23 12:50, Uwe Kleine-König wrote: > The .remove() callback for a platform driver returns an int which makes > many driver authors wrongly assume it's possible to do error handling by > returning an error code. However the value returned is ignored (apart > from emitting a warning) and this typically results in resource leaks. > To improve here there is a quest to make the remove callback return > void. In the first step of this quest all drivers are converted to > .remove_new() which already returns void. Eventually after all drivers > are converted, .remove_new() is renamed to .remove(). > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Signed-off-by: Uwe Kleine-König Reviewed-by: Florian Fainelli -- Florian --000000000000050d4a0605a7b9d5 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQeQYJKoZIhvcNAQcCoIIQajCCEGYCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3QMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDV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