Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EF23C433EF for ; Tue, 28 Dec 2021 10:08:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233438AbhL1KIM (ORCPT ); Tue, 28 Dec 2021 05:08:12 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:45638 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231778AbhL1KIL (ORCPT ); Tue, 28 Dec 2021 05:08:11 -0500 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 4AE7561177 for ; Tue, 28 Dec 2021 10:08:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F02AC36AE7; Tue, 28 Dec 2021 10:08:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1640686090; bh=5s8yEnGlwuI1LjeAvXcEW4ovaxhBa2RiNj55iZi6VRE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=khMmhgDS8aT/Uopf6/mxO54PrhyzI9HycVoKH6Y56hQRPYiihCNeKbngeAqG7jpp+ TGi40Lh8bBNrgOSO0BZIoeXEwcuSHuvc1Bd0EHw5/8y4SjyKm/T6qqGsiPsIMyUCDs LFTIDm4wSWBAQQnigT+4t5vXYzz8EAe9uvfxUDbs= Date: Tue, 28 Dec 2021 11:08:07 +0100 From: Greg Kroah-Hartman To: Wedson Almeida Filho Cc: linux-kernel@vger.kernel.org, "Rafael J . Wysocki" Subject: Re: [PATCH] kobject: remove kset from struct kset_uevent_ops callbacks Message-ID: References: <20211227163924.3970661-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 27, 2021 at 08:41:36PM +0000, Wedson Almeida Filho wrote: > On Mon, Dec 27, 2021 at 05:39:24PM +0100, Greg Kroah-Hartman wrote: > > There is no need to pass the pointer to the kset in the struct > > kset_uevent_ops callbacks as no one uses it, so just remove that pointer > > entirely. > > In the future, if someone needs the kset they can always find it by looking for > the first non-null kset in the kobject or its parent chain, right? IOW, we're > not losing any information by removing this. Or even easier, we can add it back if needed :) > > > > Cc: Rafael J. Wysocki > > Cc: Wedson Almeida Filho > > Signed-off-by: Greg Kroah-Hartman > > Reviewed-by: Wedson Almeida Filho Thanks for the review. greg k-h