Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1321390img; Fri, 22 Mar 2019 23:10:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuX3ASiz+mr9VGjXIvft26csRZvqSZ73I88AZ0qiV5Vi9KglVQ6ETrdw+mwQk428zw9TBr X-Received: by 2002:a63:9a4a:: with SMTP id e10mr12217227pgo.366.1553321402628; Fri, 22 Mar 2019 23:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553321402; cv=none; d=google.com; s=arc-20160816; b=qDIO1U1Od7drGc20St1mWYMxE0j//RXuHX8vyfPDh4MurG8aWNPUKn8yrT/uzhOFTP cusieRBKiCwaHhbjxr17UUV3+QN6+e1h8Y2PCdFZ1raDFJDXtWa9c62kZYN6C+0aD0/u W0qayR0pwGlbMvRkapZcrJ0CZrfVMGzz/himSlvF/YLfnntreZbGCDQyGkrv2tWDiPEK oKyi17IDv22e5sqk4SfR+zVlUpsAHWHDEiwjW7ndFy/3W94QNhpclobq9z0YKZdGiQZz qVbH1dm7nKMdQ/m30DAERZ6vZGHLNxkbvxwmOY++8EI/Q7/VNKHhLMJrATTjARquC8nq xe2Q== 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=GDLvdWt50wGEJ8HrFWcVeFucOIL+4ufudFxbk5V1Yqg=; b=W6V9XrO0DP+79bXLXWTmdsvJRAVoWbwW947kys+nab0IodsQjpHqzQtyiQK5psx0+X H3c9Kmv0vwdlMOVwG9UhdLhP3PSpW9tFMkqeq0Ve0m5zM3lmSYjKHlywEZMWz5gNSkED S2BuEF/hftP7015Mxz9Wu3BOkmgCVA+RD2emQuThSFKAehx+m2B1bjdoKDIT0hvYpR+v B4nPz9HEpMweE76CdmjgBVsEGkYXtX3CmNY+hmW5VR3a3LJ2wExULjk7spQRo/5mhOJv crAUUPjSnR7RBtk9iOpTgK+MslCNwWz6vYKTBdWEHdY0eOP+x+8+RcZPpFj7IbzcXmuF Kt3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U6VcT9VO; 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 h21si8403157pgl.346.2019.03.22.23.09.47; Fri, 22 Mar 2019 23:10:02 -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=U6VcT9VO; 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 S1726543AbfCWGHk (ORCPT + 99 others); Sat, 23 Mar 2019 02:07:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:56686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbfCWGHk (ORCPT ); Sat, 23 Mar 2019 02:07:40 -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 A8990218E2; Sat, 23 Mar 2019 06:07:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553321260; bh=i+W3s/Dy8mXwWlJKLQIHuN7xinXExHtZzDfjr9uQjps=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U6VcT9VOS9y2LHjNIRAtdZ13ydR/E/Kbp3mf7gJJZGsX+6qhejJd3I6+X1y5EJD07 0RDjJNzuXcj0ydF6+P9BMPPlf+UfCE13p3J33NU/PRUAibht2nP2C7ScKP7qLmXSTm UXksTU9GBc7MyJrAaK5sCKsfRYwubI1zvWDSNsKg= Date: Sat, 23 Mar 2019 07:07:37 +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: <20190323060737.GA28563@kroah.com> References: <20190322201440.GA30814@ubu-Virtual-Machine> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190322201440.GA30814@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 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. thanks, greg k-h