Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4555959pxv; Tue, 6 Jul 2021 03:58:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv2m7xGKBxVkXqrAfVyizsh2jQFgdpW2j+aFuW7Fm47jfIUQFxspiaSIqV2R5u83UnAwnL X-Received: by 2002:a17:907:7243:: with SMTP id ds3mr5644514ejc.150.1625569103447; Tue, 06 Jul 2021 03:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625569103; cv=none; d=google.com; s=arc-20160816; b=hhUMYAPBxeXWcHknzDCdcXeh/gOXtfN5y2Y9umztyDoM8jjfIiS0LtVVPasA3QMT2K tx+WAfYCOAN/58LpPnCfL/4cNe+RD5fD5mjAw0K71HegTuGAwbd8MQ5XX6IttLqe1+Wd 8CzsdR9eW7LPoQiS3ADjEB2QMjb5l22Cqci0I/jZPE4myNyyp9s/28Bmrk4LqDy9l0Zt ku9qlLi4xMzKmjT4bmgNJPVQ83tnC/pz5jh9/dPb/N+fEB2US6oEF3/0Wi2Mp2sbSJgn B/cmcELFforV1U/gEUzNQvl46gRhDWns8GrYS22s9rxXegcXXBa1pQIJY2oOWxsIBQYh G2EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=l+H215FJz8pJPI4hh9v/iWNuVbn0nifA4Jaafd28qC4=; b=opguAS0389c2WoS9nbbLApSVUTiGvUsYs3teaHCBjl/VHbuDVFSiQyvLPvsDmiz7Ka /jimsrVQJlLB91HUfOg5Hg0KjPZyUiE8Tx4VtNoX10clESrfZXwAM8uSmhTDFoWSVvcd 7F7j46GtJ/pnVC/arEs5mK+f8549p98uo2Y0ynqhqcCLC9rHihqkLXGSTKG+JHnAtpjm /Ap95KUtsyzsrihdM4zbeHXTn6H5U8qC9+5uGLRprOpum+2ypbe0z+3Xr292upeVyhVg Zou8JLglcpS+d5Xy0BOy82yGqHJEcczjCmVv0Ev33NJoJGeykF5s4boMKTwzTKX2THvl qjvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UCSZee8b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn2si9486222ejc.136.2021.07.06.03.57.59; Tue, 06 Jul 2021 03:58:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UCSZee8b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231449AbhGFK7k (ORCPT + 99 others); Tue, 6 Jul 2021 06:59:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231516AbhGFK7j (ORCPT ); Tue, 6 Jul 2021 06:59:39 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64442C061766 for ; Tue, 6 Jul 2021 03:57:00 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id p8so25581091wrr.1 for ; Tue, 06 Jul 2021 03:57:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=l+H215FJz8pJPI4hh9v/iWNuVbn0nifA4Jaafd28qC4=; b=UCSZee8bkwQhVbXkWa9n6dda1YB5cGQkIPiVKhb8KKz80S/zIXHEgxifSSr+8L29bp bwv7fkXzMNhKGGQN2c3BmsUcjrj/WCoXm6Ben2qP8+Bg0YH95vQBsFhGIbEyGr/lrU1Q Ln5txN4w7J+T5EMRaT/NpEGp+Hm9dI3o+V77bGk/sdRf0SYC4Lr7n5Wxc/3RjcZaFj49 pMNis8YQVecjuUzjIFQPnwBJPdiGSBK5ZHDxUgMGNPSzs1az976bZyXyvd6ztydUQ9Xm nwGGg1WV1KPpW+turyU66Gq6SgHBmHxg/+HCmUj/1/PNr7tZsqoiZrxGaduOWyUClunz BuDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=l+H215FJz8pJPI4hh9v/iWNuVbn0nifA4Jaafd28qC4=; b=jbfUfbr4uwDg+P2Sc0W3/reCQ8YqOfFfURAKiOzP9jFUus804RC6yp2XyO+vdCa4cE fqnsh/A618yJA/+ID/dWPEfPtzVpYwnNyH2TreMfPJ9UtZyXYiidNtU3fgy9QUBu2ifU xy39Gb3yW7UJJM49TBmAtoQ4K0OY9R6vpRJoS8PAnAJfQR5QbPqH8Y0lUklZ3z/6d5QJ ekT7R/pGP0gf/Q42Hfu0h5KjuRCU2/aCW3ZeHZp7pp118d1PHRYFuf6DTc9/SIMBB4oL QjX46NsuUNekyBym4uZHrHGMwLAVAB4nZ2CA8/3Kxb5kP3cQO0Qxlp7dqmkiYNBBrFoY mlPw== X-Gm-Message-State: AOAM5303Ya9KezzezTQRa52CqP6bORbGXCNCFCxwAKo7ejtlDAA/YLq+ 78Rxth66eY6BvrwVua6jp20kow== X-Received: by 2002:a5d:4711:: with SMTP id y17mr21172584wrq.355.1625569018612; Tue, 06 Jul 2021 03:56:58 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id o3sm16468134wrw.56.2021.07.06.03.56.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Jul 2021 03:56:57 -0700 (PDT) Subject: Re: [PATCH] bus: Make remove callback return void To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Greg Kroah-Hartman Cc: kernel@pengutronix.de, linux-kernel@vger.kernel.org, Russell King , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Geoff Levand , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , "Rafael J. Wysocki" , Len Brown , William Breathitt Gray , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Alison Schofield , Vishal Verma , Ira Weiny , Ben Widawsky , Dan Williams , Dave Jiang , Vinod Koul , Stefan Richter , Sudeep Holla , Cristian Marussi , Wu Hao , Tom Rix , Moritz Fischer , Jiri Kosina , Benjamin Tissoires , Srinivas Pandruvada , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Alexander Shishkin , Wolfram Sang , Alexandre Belloni , Dmitry Torokhov , Samuel Iglesias Gonsalvez , Jens Taprogge , Johannes Thumshirn , Mauro Carvalho Chehab , Maxim Levitsky , Alex Dubov , Ulf Hansson , Lee Jones , Tomas Winkler , Arnd Bergmann , Jakub Kicinski , "David S. Miller" , Jon Mason , Allen Hubbe , Kishon Vijay Abraham I , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Bjorn Helgaas , Dominik Brodowski , Maximilian Luz , Hans de Goede , Mark Gross , Matt Porter , linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, linux-staging@lists.linux.dev, greybus-dev@lists.linaro.org, target-devel@vger.kernel.org, linux-usb@vger.kernel.org, linux-serial@vger.kernel.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org References: <20210706095037.1425211-1-u.kleine-koenig@pengutronix.de> From: Srinivas Kandagatla Message-ID: Date: Tue, 6 Jul 2021 11:56:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20210706095037.1425211-1-u.kleine-koenig@pengutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/07/2021 10:50, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return void from their remove callback. > Additionally some resource leaks were fixed that were caused by drivers > returning an error code in the expectation that the driver won't go > away. > > With struct bus_type::remove returning void it's prevented that newly > implemented buses return an ignored error code and so don't anticipate > wrong expectations for driver authors. > > Signed-off-by: Uwe Kleine-König > --- ... > drivers/slimbus/core.c | 4 +--- for slimbus changes: Acked-by: Srinivas Kandagatla