Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2077494img; Sat, 23 Mar 2019 22:18:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwu4t2CdOQYbHjynyyEZ6P/oytRJ5519KHMQ7zTcmm33zFuGSh3WyfpQWjJBOMSmKYnN2IH X-Received: by 2002:a17:902:f24:: with SMTP id 33mr17534727ply.47.1553404711531; Sat, 23 Mar 2019 22:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553404711; cv=none; d=google.com; s=arc-20160816; b=VQjn+bvRQNyuh5o6VHJQS2y3kul6tKeNjMPQ234H9iKBA9SXGHyNn78sqHeTnsIYQJ N0aUTQYgXQ+CARIW5WDUc26MtOgN+/liGYd/93OnSaRPq4Db2vawqpgpzzcMlMnRYzsC FXA2glp7W9QTWs72VvR8RjLAqfmmQq3QkftRBatUDjfqs9atssuqj+5dCiJ5Ovtl+z7X Pz0sTjzmDK0c+DnyRzngieM4n12CayeUUfzhpvuJFguVPcYzzDdWuNvvvqQ3eaYzUWAc R/74E/58dUH0deTEM4iqK1HXBVnpuFpKnGY+d22qA1KTsUYRuMveIBqwVI1Ua5mgBy5D pyOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zRVhyRP5Wfcy4qtpMNTXRvYl8opcmYdt5RpbSzUNj/Q=; b=N/de2QmcWHeUcvuv6DOrYlcABZnG+oE19JXgVNgGn5is394V5MP/asUNB/iR5Khk0S sZjH7z5ctYUgEAY5O3ryFKtMnQvthZzbIGqMw++tbxfRJQPbJqLludpN15zFSS9m+CJX AWbEKkYVylL77EER972bIPgy+I9BSJqtxaOhJtrW5ctyLWm+I4WcaBeyhSnNQdXUKOwQ atVPhf/k19AaJ16ssASpXis3ERtJijjXrJdHLBD1Zq+/DXdco6ybAdQmdA+VjTN8p1H1 7I+GPqcaKU+povt700Xb1VbXzv3FsyBWM50F76GPtz+fnARLAELGgP814Avp7tjGJZep 1b/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AOAPD26h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18si8012975pgj.500.2019.03.23.22.17.45; Sat, 23 Mar 2019 22:18:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AOAPD26h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726317AbfCXFP6 (ORCPT + 99 others); Sun, 24 Mar 2019 01:15:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:49344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbfCXFP6 (ORCPT ); Sun, 24 Mar 2019 01:15:58 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 20CCA21473; Sun, 24 Mar 2019 05:15:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553404557; bh=VmIf77tgOCgjnAUAJxp2bwTuKfOqa0STy3Rl5EVbvW0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AOAPD26hqQVZN70MSQ7XtLMJjC2YsDLOh+S4hZBGGdwh2G1FQ2KGZkxcG8lLf0m6b MaJMwm2T4w0Nvp7R/GJ/fPRDjlxKgXk6kh1yF1rrSF2gWv1m0IQR+aXkolrU57URWV 4pDnIsUw2WbtiFgCg8i30H+hZvJhJgt8m0X4nBSA= Date: Sun, 24 Mar 2019 06:15:53 +0100 From: Greg Kroah-Hartman To: Kimberly Brown Cc: "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kobject: Add support for default attribute groups to kobj_type Message-ID: <20190324051553.GA18887@kroah.com> References: <20190322201440.GA30814@ubu-Virtual-Machine> <20190323060737.GA28563@kroah.com> <20190324034821.GA47676@ubu-Virtual-Machine> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190324034821.GA47676@ubu-Virtual-Machine> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 23, 2019 at 11:48:21PM -0400, Kimberly Brown wrote: > On Sat, Mar 23, 2019 at 07:07:37AM +0100, Greg Kroah-Hartman wrote: > > On Fri, Mar 22, 2019 at 04:14:40PM -0400, Kimberly Brown wrote: > > > kobj_type currently uses a list of individual attributes to store > > > default attributes. Attribute groups are more flexible than a list of > > > attributes because groups provide support for attribute visibility. So, > > > add support for default attribute groups to kobj_type. > > > > > > In future patches, the existing uses of kobj_type’s attribute list will > > > be converted to attribute groups. When that is complete, kobj_type’s > > > attribute list, “default_attrs”, will be removed. > > > > > > Signed-off-by: Kimberly Brown > > > --- > > > include/linux/kobject.h | 3 ++- > > > lib/kobject.c | 14 ++++++++++++++ > > > 2 files changed, 16 insertions(+), 1 deletion(-) > > > > Yes! Thanks for doing this. > > > > But how did you test it? Did you convert any kobj_type structures to > > the attribute group and see that all was the same? Ideally I'd like to > > take this patch with at least one subsystem that uses the change, > > otherwise this looks like unused code in the kernel. > > Yes, I tested it by converting a couple of kobj_type structures, > including one that I recently added an is_visible() function to > (vmbus_chan_ktype in the hv_vmbus driver). > > I'll put together a patchset with this patch and at least one > subsystem's changes. Wonderful, I'll wait to take this when you send that series. thanks, greg k-h