Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp970395lql; Tue, 12 Mar 2024 03:47:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXuer8jcqsvTp6+FP7FeMGMpzxwWHNRTFM/3UnNGezQtWGXRdcNVNaaBXrzPEuVMK+s2a8x/zQ5pmXOGDdc6l6kuPMGRXxxuJPBcYy24Q== X-Google-Smtp-Source: AGHT+IEYEHC5XKaWQMkb3t4dmJlGGdhnF72bybwjTO5sV86YdRTr1iS6kZfCV4zPyYg9OdvohFBp X-Received: by 2002:a05:6a20:e116:b0:1a1:50c3:d564 with SMTP id kr22-20020a056a20e11600b001a150c3d564mr3124384pzb.1.1710240466878; Tue, 12 Mar 2024 03:47:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710240466; cv=pass; d=google.com; s=arc-20160816; b=XrufDNnxOkHR8tMBLr3q4854Yd3S3c1IFHx9nN+dl0/+OIuvAx1v/L8OzTePsXghDT RtwMT2CeNI9KE07AhCIIwx1KUAnvhHFt4s3GFcB7Zi8PZb9qfgOJwge52sSZi2jTiCgR BgVNHLpI7Cs8lm36Nhjl6B8t4YeY+qw3PKrDE06WkKDQblJKL4Bph593Otx4fNeiByBP 2mIO2zjX9MI+L3nTah3LZ4jM2FVNX2Ag4iL85AHQCBUaatq69U5moDxQyCo450g8QK1L jWZe10tvmtAURbeEyKlD5ocOsf19ArY6KKv9FXtC0ZOVCHnhkaQgy2uUqosXFp+WLQ/c ZqGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=60fW2N45Mo1Ih3HHdg/RYurDXI1KKShx43EJNg4Sfjk=; fh=gH09n2a/lQyVMOSaxxkRB1+0eE1Xzx/Mv94HTu8YeME=; b=yR45YMvn2T3bLsVZ2kGUtrJbpxf5/A+TjYS2gHCPQWF+bSChef4Z8y1fWJ555tcpR6 FXx/6IZopxo98ETqXKWNE/1qDEXYXOGJsp3a7StEWbsn0tFaEdqJBtNb6YCvrVkfIB06 hRNp86BuvlcrP/D9UR40dD0a7Exi5Lw29N8pwqwdtHkJ4KOc6rM49fCv9v0D5CjGoBms ziJAhSKsKVLC01iZBLfVW0+/AG/af/2CT4AtTJ3IVt/SS2Ip5g0RJg+FMTL6thFzugaT j/glhcSj5dTKsqG8Qc/n1APKmu7UlMhdWntwg/h5tQ+QACPeLGghJ7BnoYEnc76pfWUX pjPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gb5GqRuK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-100139-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l5-20020a170902f68500b001dd663b1c67si6924699plg.482.2024.03.12.03.47.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 03:47:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100139-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gb5GqRuK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-100139-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8EAFD2844A7 for ; Tue, 12 Mar 2024 10:47:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52A3278262; Tue, 12 Mar 2024 10:47:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gb5GqRuK" Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3724D8464 for ; Tue, 12 Mar 2024 10:47:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710240461; cv=none; b=c2u45n7hf2uWQolueRcX3p5kgaisgpEJTTZf+053aauYOfB2b01XjiRo3XtEnd9MIWQ0sdD1xcSKAyVJ66CoP1jlCC9DhSGnfNDqKNtEaeDpCULrKXEBBQTYOPXsgMjodiemoG/BbljLoCMvNy3ZzIOgcMYQL0MLJ59EwXzHNA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710240461; c=relaxed/simple; bh=60fW2N45Mo1Ih3HHdg/RYurDXI1KKShx43EJNg4Sfjk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=hfkMXTIhgEMyXHFpFyjd8tTgXY5pKlTT55T7gRGNikZV5U4siu5W825U2GUxH09Gzs5e9DOf/gQPTs7Yg2QaddtxMvWbTYxeNFt2Wpx6Hg7piutdKFXzvXAD/sl8GQHpyiQEM7o2FPUbg4AMgs67skGAeCBzo1PIMZHI6DCl8/I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gb5GqRuK; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1dd8d586126so13505475ad.0 for ; Tue, 12 Mar 2024 03:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710240459; x=1710845259; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=60fW2N45Mo1Ih3HHdg/RYurDXI1KKShx43EJNg4Sfjk=; b=gb5GqRuK2DHpC7rwdyyBqd2d3vmBeBf00OJ3CPxOPdQhZpXDU2gAQivYXK/wdkN5CT tG/EUBbhd01vtlb7rlQPOpr/NE0UOw1QcKF/OTCGCbpxtT7OYf9ThikfENqV0zcsmPa/ f6We/EkkKABZxFgbc1uWMgAR9NxOttFEfwSIDsf1kQY3PT78+fVwi1ZOTP+GzkwkWx8w oUCp/DyhGuzmgBUHa+KTwX8ZQf0+tO3D6ouRTq6ogCQneps/h34MKxEsDL/D0cq5T5pP Iu3j1LVC7oWyPIrjWbPdoSGMGBPWv7iMG5kQMTr1bA9tEdug6jVh2ctT9d3onddnlaRP HQfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710240459; x=1710845259; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=60fW2N45Mo1Ih3HHdg/RYurDXI1KKShx43EJNg4Sfjk=; b=Ifm26aJ5WJRliQP0RGIFrndqVkmKcY+xBoZ49TsFHnhFvtCChWEDM2JTGXrGKGgaNk iUOg7+Yzg4xEoheZYHyXhtwRZjyxCtTPEitvmF5mxzIFxG4MFNd2Pko7J4e2dto9ntsO HWLFv5I4ikQjO4al+U6gFzRQBQr7B6g+/XYcUvvMNyGUyMX+jYbtLl+e7K9vdHEJU36u sNNm7PUd1PHM7eQhNhdLNHx1eDG5utoqzeQ92e6BvUTzXyjWP9hvIUZHY8UP8WhBrJlE VGikzOmNIHdUzZromBqP9UxPsVcyqOmpRJTqFmipizMIrZ5A8k8Hm7qWzG/e7Sf+7Ulz YWPw== X-Forwarded-Encrypted: i=1; AJvYcCVHf0U6lmSVI1yZ8W0oHvEEgmK9Gl6Pr592p0KCx7KdN8QhY6f/1wa3fBK8v4rC37KndVwcu2uZ3I1vhJkoCxHGpRd+nCJscfYoBNCA X-Gm-Message-State: AOJu0Yz9Lm4cni039BRHaYZCupvu9AE9vgx3b207a26Mvxs/iyTHgHgk YmGl7Hhe+J0ygUcF1E8zW27ivXSt18H9PWy3RV2F2x1PiIVYmeEm5RBMriu6ayU7oMFm4WRMn8l 0Q6C30el7yc1iJhzA1O1CAdJhzqQ= X-Received: by 2002:a17:902:a50c:b0:1db:fc18:2db9 with SMTP id s12-20020a170902a50c00b001dbfc182db9mr2809890plq.64.1710240459371; Tue, 12 Mar 2024 03:47:39 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Miguel Ojeda Date: Tue, 12 Mar 2024 11:47:26 +0100 Message-ID: Subject: Re: [PATCH 1/3] auxdisplay: cfag12864bfb: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Andy Shevchenko , Miguel Ojeda , Geert Uytterhoeven , linux-kernel@vger.kernel.org, kernel@pengutronix.de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Mar 11, 2024 at 10:59=E2=80=AFPM Uwe Kleine-K=C3=B6nig 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=C3=B6nig Acked-by: Miguel Ojeda Thanks! Cheers, Miguel