Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6162634rwb; Mon, 5 Dec 2022 08:43:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf5gGNBaVFVygSVzl2ngdIXHDntydZEbkSBQJlvbYImX/oQbo31/sC9nWgKGJbW695ySrIp5 X-Received: by 2002:a17:907:9616:b0:7b2:9f1f:48cc with SMTP id gb22-20020a170907961600b007b29f1f48ccmr15524622ejc.164.1670258608115; Mon, 05 Dec 2022 08:43:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670258608; cv=none; d=google.com; s=arc-20160816; b=PnT3qCSmSaTl04OFUFzW9SkvWccCJHEW9caYyDtaecjWdUfdDypMd8t1kqMnKBS07K VJtILp6QRMDKncaxQ8k0YOMefMufavx1Ih/9npcQUuPQntkvx0Wxqs0/K02sU5+wrMDn +8MC9b+RCHwplz/TaGjtJx7uC4SIj1xaLh+CuAXKv4+BK0lNBHfRfyPLaw6dd4MgiFv0 0Yo34MjgvBSvYCMdxfMmysDVA8mEmzyKbs6EHY/X5muDw9NQVEmT7iBML65UcgtlJxSi gt8dYvIIxAja3TNkWCgsc2VOdrSJheGJZQgUWvkSMeIyIv8nrFm/O3FLaPqEB3CSVWAV NK5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GWIZp0Ph6BV2Shj8npOJ+xcTC/vxnyHAzT7Hw2aiI+w=; b=PnA4xRyG7IpcwZiIFVbRJRT9YPoPMFi609J4VrPOtoHNbqS5gEcK0qaQBAi3A2SVE5 WUGXgoqGtAcHLl2EAXAEjq1G96lsFw3vAJ2M5gmoyUDa4YhF+jofRdwNTv+CZojHxf7n P12IVYxZCz7jVDDy+GZvrvSj/XjKZoMLkgZPfIQnDCUFiV+5kAsbT+G/SFj2lOrDr0PM 6JU9JAhOMX8L3hrJzXDIMyRYR9faralyxijCYjgDiRmbZPzayxW9ppROrL9SYo+6mS3W uQQdUJ0mrylNJonx3tP5qXq4yh8280kvHvNn9wDflKQvejkf4hT9p9xSsdVd9a2AvCUd E0Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t1aBQ5Pw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a05640207c100b0046270f01409si22826edy.40.2022.12.05.08.43.07; Mon, 05 Dec 2022 08:43:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t1aBQ5Pw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231592AbiLEQIl (ORCPT + 82 others); Mon, 5 Dec 2022 11:08:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbiLEQIi (ORCPT ); Mon, 5 Dec 2022 11:08:38 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EA6F1D0C0; Mon, 5 Dec 2022 08:08:37 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D0E23611D0; Mon, 5 Dec 2022 16:08:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7ED3C433D6; Mon, 5 Dec 2022 16:08:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1670256516; bh=2zTjxGImNhiKZkQVLYwU+D7sO9c/DELnBsQOLmxj5RM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t1aBQ5PwG5R+hRKkkXrH8ZTKVgOxRxmB/P6l1a7WOnp6bg1x+OclpQCfQnhw/5RV9 VWi7ElCSsHDX/U7BRQ1/TnpM9vFr8hQGRZDE9i4Y2GO9/XQcyWYoAD1bZDv9jDw4w5 KgmnSDvMOM5qBG6N1xQJdeSmTODNmVm+4pNvzk5Y= Date: Mon, 5 Dec 2022 17:08:33 +0100 From: Greg KH To: Dawei Li Cc: johannes@sipsolutions.net, robert.jarzmik@free.fr, jgross@suse.com, sstabellini@kernel.org, oleksandr_tyshchenko@epam.com, roger.pau@citrix.com, srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, xen-devel@lists.xenproject.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/6] macio: Make remove callback of macio driver void returned Message-ID: References: <20221205153644.60909-1-set_pte_at@outlook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org On Mon, Dec 05, 2022 at 11:36:40PM +0800, Dawei Li wrote: > Commit fc7a6209d571 ("bus: Make remove callback return > void") forces bus_type::remove be void-returned, it doesn't > make much sense for any bus based driver implementing remove > callbalk to return non-void to its caller. > > This change is for macio bus based drivers. > > Signed-off-by: Dawei Li > --- > arch/powerpc/include/asm/macio.h | 12 ++++++------ > drivers/ata/pata_macio.c | 4 +--- > drivers/macintosh/rack-meter.c | 4 +--- > drivers/net/ethernet/apple/bmac.c | 4 +--- > drivers/net/ethernet/apple/mace.c | 4 +--- > drivers/net/wireless/intersil/orinoco/airport.c | 4 +--- > drivers/scsi/mac53c94.c | 5 +---- > drivers/scsi/mesh.c | 5 +---- > drivers/tty/serial/pmac_zilog.c | 7 ++----- > sound/aoa/soundbus/i2sbus/core.c | 4 +--- > 10 files changed, 16 insertions(+), 37 deletions(-) > > diff --git a/arch/powerpc/include/asm/macio.h b/arch/powerpc/include/asm/macio.h > index ff5fd82d9ff0..f641c730c3b7 100644 > --- a/arch/powerpc/include/asm/macio.h > +++ b/arch/powerpc/include/asm/macio.h > @@ -124,15 +124,15 @@ static inline struct pci_dev *macio_get_pci_dev(struct macio_dev *mdev) > */ > struct macio_driver > { > - int (*probe)(struct macio_dev* dev, const struct of_device_id *match); > - int (*remove)(struct macio_dev* dev); > + int (*probe)(struct macio_dev *dev, const struct of_device_id *match); > + void (*remove)(struct macio_dev *dev); Again, you are changing lines you do not need to here. thanks, greg k-h