Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2036264img; Sat, 23 Mar 2019 20:49:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxhsmN8VECjFU5/oo8JD3eGfE9NUKQRUTLvnR+jXNn7q5qLv4IIJjNZ4caHOAL3KaMl6nC X-Received: by 2002:a63:6949:: with SMTP id e70mr16699473pgc.89.1553399393926; Sat, 23 Mar 2019 20:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553399393; cv=none; d=google.com; s=arc-20160816; b=eb48mgbHoKJ6uNqiAqVzGUqbUjQOFjRyAu3t+MxtY4tJ2Mf/pawTMhRvwOGtSW2r8z l4gtuHrdG3B7JOpFdYcooZN60JVMYW0s5iHcjsHaxcNREMbUJfei1yhnFeDKothRLMSb QwPCpd8ScoixAIkYfM89qKLtznZEBkrlM85EtJxkR3lznSPcB79V0wlGU9PyVL5KPI7x emnCN4ZoyGzlP+XGB8YAJFDTaOAv5P+PcqAxeJvXFJe/dqTvw2UamBcpsfSybk6mCK30 7cAGeDGUYJ/FvIYBvKhSVereNSc8rU0zU80VWmNuitYssCcPqw1A1+Djo9G1SphlEv7n ObVQ== 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=suYO+eoQ2grJDTXnppsgX+kgr72VZ9qdXSEJQCTe8HQ=; b=oFvVaxtIsIB/yb/vopVxELjeW/MOQx+2JCWZc3iFNGvj4cUwTK383QkwEQvUoitGVw 7//fSGzXRQW+qThN8c/jzUsUsNOosJmTMj6F71le+YSErDhrppKTfBaZShg7CPOx9cq3 8OTBa2CruGd5ukKjucTU9HBtmdRjZeqmFR0o2qrMc3Nd9QACGhgchY8vG26QHVmjUHsm UNEA79trpgeVnortuXx2hFicxQcDyXOQZap1KignovLwE+DELpzycS0i3KS/AweECYS4 ZYjYhWlp/Vv2lwEzQA4bovV9QgIFwPU8rSJMO+wXO5Niw09AhEeml8oeNJUztk6b0APn lmHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iUy8S7N8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d141si10804006pfd.81.2019.03.23.20.49.26; Sat, 23 Mar 2019 20:49:53 -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=@gmail.com header.s=20161025 header.b=iUy8S7N8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727906AbfCXDsZ (ORCPT + 99 others); Sat, 23 Mar 2019 23:48:25 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:33775 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727628AbfCXDsZ (ORCPT ); Sat, 23 Mar 2019 23:48:25 -0400 Received: by mail-io1-f67.google.com with SMTP id b6so4943164iog.0 for ; Sat, 23 Mar 2019 20:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=suYO+eoQ2grJDTXnppsgX+kgr72VZ9qdXSEJQCTe8HQ=; b=iUy8S7N8WeU99XqZtiMXz79XkZA+G895kbx1lwZF9BALsxzd083z/scGrFlyWgg+Ku 6t2bd0X8ghpL7IQUzUjzZRQl1Yj8eurD1FmFnBuiioKR/Q7TR7FfX1MV2wtx9tOhNoev cCf58D+sfAuWzGulgRPESWX+mo/EnJhHCXbcNzNLl5MAxQhEWBGdySF9rPPYd8CEF56r 66VEgc55l7YU61oDn2i1vGzBPsrzX3yNEhWhNdicy/HvoWtYNrhFlhJEUw1SiYbf7PDD V++geD9SfwPy8YrOmWoy6+d8r90AmPjpmmWFRFgiC2oRyw+gBUoJZQedq80DxaX3BMe7 1LMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=suYO+eoQ2grJDTXnppsgX+kgr72VZ9qdXSEJQCTe8HQ=; b=dc77jYy5enD2NPHbDYCpZztwP4VFqOqg82aPZZydxWTqO457YX/En+kW9mc54gNHU4 ilEvwOpWOKH/7Qrje1LMmCPtJX0fW3cChHacABoWCs+oI6I0r9GDHyt02mTe+9NVszvu +Q/6iqSpEgZ9NcXFU/iLZCN7/XdKfr9hoTPKL8sUIw8I3QTU3lzx8Jcdu8i0kj/dhm7p Bhu5diDvFHQD++nGUk/5UQKlQ/xpfPsGthNEqKIwX5tTVbDPq2I9+en23tACJhdf0YjR xcOLk86xOYj+OqT9raYAg9dIgTmsWIHi6E0fnrG7b9xa3aVeHG1osKbeSRnWmCsFqCwo uGmA== X-Gm-Message-State: APjAAAUsIsljwVcgfkrgfnzuZ8iSKlN8UIlbHTTk9agmQWyVnnYA4aYo r4yDfF/dcOmzeoFHec5c+3JsrIiH X-Received: by 2002:a6b:e509:: with SMTP id y9mr12213729ioc.169.1553399304655; Sat, 23 Mar 2019 20:48:24 -0700 (PDT) Received: from ubu-Virtual-Machine (66-188-57-61.dhcp.bycy.mi.charter.com. [66.188.57.61]) by smtp.gmail.com with ESMTPSA id y101sm3814728ita.25.2019.03.23.20.48.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Mar 2019 20:48:23 -0700 (PDT) Date: Sat, 23 Mar 2019 23:48:21 -0400 From: Kimberly Brown To: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kobject: Add support for default attribute groups to kobj_type Message-ID: <20190324034821.GA47676@ubu-Virtual-Machine> References: <20190322201440.GA30814@ubu-Virtual-Machine> <20190323060737.GA28563@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190323060737.GA28563@kroah.com> User-Agent: Mutt/1.9.4 (2018-02-28) 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 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. Thanks, Kim > > thanks, > > greg k-h