Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp745981rdb; Fri, 17 Nov 2023 11:22:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsTVqY/pPjxgL7q0cNIBcnHm2wXHGrB/mPazBvN+OJrdAvtVX2+Ot74AJkuv787dFC+c0X X-Received: by 2002:a05:6a00:17a9:b0:6be:265:1bf6 with SMTP id s41-20020a056a0017a900b006be02651bf6mr451117pfg.32.1700248925218; Fri, 17 Nov 2023 11:22:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700248925; cv=none; d=google.com; s=arc-20160816; b=xBIbxfAmvvCJGcq5mXdgzkF2hGPplUuYw07nVMtdrINH/mMeW5HPddt9I/I7TeOEpw QgQT0M7XkbWIbQtz7p9CpxOcjistC3yHGjwEW0D9z6m/1z8mZ7v6EA15pQcRpEjXaUHf 2bvvmSXau9c38CTWo4o7qFhH5YGwdIiSEqddiaru4AbWXQaAWpzRqfi3Xj7e3SIMxMJV 6XpKNlKAVRORJTAy1B5bYPcg4C3V9O1MHwzr1Cs8hiI6jLK70EfFQ1IsWg+jsKnX+bFW mLf2u40+vOYs6Q/P6DceL7lWoY2Xv+NFj9Q4MSNUoADfVl/nYGub5oly+f7ZHqgtyQPh 42Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3wuFKWVFLm9P7KP8/AaH1JyhNUeZqMPJiUq2z4EDK84=; fh=FcrDYXxJYB8qDrUYmQPIt8K7aRLxW9fqRg+XQQiLyVk=; b=ZLQjsGYNw6MR0m2OWxclhtZ027pEBNVfHbvxnX3cId9sWic5bvTzjYwNbOHN0nFR0t yDdAxBrSd1ozMcm1DC021wCZhdZ1PIUNXVQ5kiyI8QBtNA5jxlg/tRzNTgk5b7C4F+Uq d8i5b+WiZ8Fog8Tir+VE9l8eNkivbygCerGlOIDvVUKQx7tTcfFWStZZ9WyQdI6cTE8i 7qYGQw+O5EadfGx6IjjyvRRegLSYzN5Uv9NrupfRY4KfxeYuQV0nSv+k6UaSBBmbl6ke TtI6tzJbT1DUrzVWJ+kZEo4FKj0VnwKgzBBk4RyZGuLlP9nKho/SojnsrdkNAnpZP47P o+oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=L70VDsJr; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id b7-20020a056a000cc700b006901387b0b3si2586936pfv.9.2023.11.17.11.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 11:22:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=L70VDsJr; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1160F8229192; Fri, 17 Nov 2023 11:22:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231430AbjKQTWA (ORCPT + 53 others); Fri, 17 Nov 2023 14:22:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjKQTWA (ORCPT ); Fri, 17 Nov 2023 14:22:00 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6DBCB6 for ; Fri, 17 Nov 2023 11:21:56 -0800 (PST) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AHIrH0V007660; Fri, 17 Nov 2023 19:21:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=3wuFKWVFLm9P7KP8/AaH1JyhNUeZqMPJiUq2z4EDK84=; b=L70VDsJrEQflJUmQ15z3br2XOOsww/KBcW6k1T9/NZbxWYJ96FspdmNeKzYQN2ergpah 2XIKNaU119W2v4bAX+P9GXPN0ynirFp5/u8r04QISdOhXL01gaT8tH2x/xmdb78/AjxD tXkuau02uP75QJKLdLYHJXAc3WWucDdZXoO00WKYQfDMgSW9PBvflqt0vuAHS6oTrDPo dUeUs+fWQMn2iziih+UnvUtJAKLyWiyBLov38z5RSs4pr6ZTSLu5iduwNLvWOtEltnvq om9svsPUwaaN4E2nYsSH6HCHJouojky6YlXDOo5vcAFMGO7nxpZXlWOSYDBQ9mTlxu03 RQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3udw46t7a8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 19:21:32 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AHJLVqx032377 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 19:21:31 GMT Received: from [10.110.1.143] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 17 Nov 2023 11:21:30 -0800 Message-ID: <079728bb-546d-4b51-a226-2533485730e4@quicinc.com> Date: Fri, 17 Nov 2023 11:21:30 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH wifi-next 6/6] wifi: mt76: Convert to platform remove callback returning void Content-Language: en-US To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Kalle Valo CC: Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Shayne Chen , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Simon Horman , Rob Herring , Wang Yufen , Peter Chiu , Alexander Couzens , Jinjie Ruan , , , , References: <20231117093056.873834-8-u.kleine-koenig@pengutronix.de> <20231117093056.873834-14-u.kleine-koenig@pengutronix.de> From: Jeff Johnson In-Reply-To: <20231117093056.873834-14-u.kleine-koenig@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: b5erGLyUgFUq73iPBw0CFjYC9OzpuazG X-Proofpoint-ORIG-GUID: b5erGLyUgFUq73iPBw0CFjYC9OzpuazG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-17_18,2023-11-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 clxscore=1011 phishscore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 adultscore=0 spamscore=0 malwarescore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311170146 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 17 Nov 2023 11:22:03 -0800 (PST) On 11/17/2023 1:31 AM, 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() will be renamed to .remove(). > > Trivially convert the three mt76 drivers from always returning zero in > the remove callback to the void returning variant. > > Signed-off-by: Uwe Kleine-König not my driver but since it is trivial Reviewed-by: Jeff Johnson