Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp745372rdb; Fri, 17 Nov 2023 11:20:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/nEScDZMemIjGMy72/QudH75PZ/1uKFTyuC9EBYeNvRW+ykx6mvoFJ9MBNtbHAhpj/OT2 X-Received: by 2002:a17:902:7405:b0:1ca:220:ce42 with SMTP id g5-20020a170902740500b001ca0220ce42mr623019pll.37.1700248854935; Fri, 17 Nov 2023 11:20:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700248854; cv=none; d=google.com; s=arc-20160816; b=XxD8TqbnwHEb716T/Pj67siyjuAXqWji1BdrNukPmPw5PIo9kGBF9ZxiZ74HLp7Bt6 8Jgs7lod2A7Gxq5Zy+jFve00c/PoP6DUaRnJoF2DN78guiA/EUme2rexth7NANelLTs/ tcNQ1PTD8FxJA31sIJJlDVMZTcEpxDA+LqbUJ0sTbmlQDh8+DxfS5R4QSlm3MjiVUNfq PYeStlM5fxwzjAW4xNmBWKDCDbEUde+6HVkVocPpHN3Ht3gFbcOcS+Zj7tH70KsdhSE0 r11eG5xgQ2FJaZJytySV4RqkqILVXU/DzbCP3FiRINrn8mMV/0u1sxWB4k/bqduhGkR1 XZXg== 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=1YojeQl9IYmHHU3w0gF0emef7jImWGAaRzf4FPJwHIM=; fh=3i+RxFWxYcZ5z+48fTdpqTmw0rKt1VoL3LV4bAAobCI=; b=che/cs5bvkPiA8+osW4E1nDoyM4DfkPCQo41LLFWkSm4kARGVSNu6lC9X/oZ4wqzmB WUUyB8AXaDPZFpZS+EJ8Qypbj+vg9rNnC7PNgMUh39IPIXr5H0tHT+3unf9ghZAJXlCX 32rI8sYU6Oo79mlQfbYEyU1tYzy3KCoDn90IAaBehVSFHhCUQh2k8Yy4ZVJ5/2kXuoLN 3Sje0qd3Qlt2gTwaF2bdtImT346OJBwTuZy+0AvoOib4IU6FAIHP1x/0aObddaISyIEi tDAGUjX4sa3eaOTVLzKBDiszpr5C6H63JlpEfxGV1+7E1EXRs4SQVamy0XnV4aWyj8KZ 2NGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="LTN9DxZ/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h6-20020a170902704600b001c59b6ed118si2272830plt.157.2023.11.17.11.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 11:20:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="LTN9DxZ/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 9499A8258CBD; Fri, 17 Nov 2023 11:20:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231828AbjKQTUz (ORCPT + 53 others); Fri, 17 Nov 2023 14:20:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjKQTUy (ORCPT ); Fri, 17 Nov 2023 14:20:54 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37BFDD4E for ; Fri, 17 Nov 2023 11:20:51 -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 3AHGRoV7004324; Fri, 17 Nov 2023 19:20:30 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=1YojeQl9IYmHHU3w0gF0emef7jImWGAaRzf4FPJwHIM=; b=LTN9DxZ/HI/DvZP6cXIQTYMpLKAeXMRfCcEAa0FsbwXlY6H7jsdFLa1iYdy9hqIQSzxf /2buacl6u3/5tDlEBzDyFiC5hOaa4MU4roiGN/XmfCys5ySwkSHnZcZ7suUAGPyjVbS4 UCqNY/gw46z2nTt9IZ+M01pCp0uTwN9FFcZqR54aFg2LJ7uZSnCzYK8RETw/VfjBse7S obud9clmzRHA+28pUxG8YZ08iNJOg39LRMjiztCWj6kle8lnNdyK13tKd4BUt7WqMP7a on5HTrKezvqNqL7eIvQKhP5OtmCSritWiIkcGZBOBreS55/quOQ/6BD+Gnol3HHnLRUQ uQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3udw46t780-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 19:20:30 +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 3AHJKTBL031184 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 19:20:29 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:20:29 -0800 Message-ID: <8dffea03-d9e7-43fd-af42-0d17c050354a@quicinc.com> Date: Fri, 17 Nov 2023 11:20:28 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH wifi-next 5/6] wifi: brcmfmac: Convert to platform remove callback returning void Content-Language: en-US To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Kalle Valo CC: Arend van Spriel , Franky Lin , Hante Meuleman , Hector Martin , Linus Walleij , "Gustavo A. R. Silva" , Jisoo Jang , , , , References: <20231117093056.873834-8-u.kleine-koenig@pengutronix.de> <20231117093056.873834-13-u.kleine-koenig@pengutronix.de> From: Jeff Johnson In-Reply-To: <20231117093056.873834-13-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: fA5Ic8Qnx84duDWJ54CtJqG93NWiT3uq X-Proofpoint-ORIG-GUID: fA5Ic8Qnx84duDWJ54CtJqG93NWiT3uq 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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, 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-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 11:20:53 -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 this driver 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