Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp877750yba; Mon, 1 Apr 2019 19:53:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdhAWsScdMyyame7asGNlvuJ8xj9HYLh62fHLQn4LoJ9osvf+sUWUraOh+K4J6spu3IpE2 X-Received: by 2002:a62:480d:: with SMTP id v13mr67163757pfa.125.1554173607790; Mon, 01 Apr 2019 19:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554173607; cv=none; d=google.com; s=arc-20160816; b=qQuIqlWfhGk/ShiNvshEwoafVLg3hpMTnSAp0f2m0MHp98aCAUXGtc1/sO/BwohGp0 GdV2typmV6OJve4UU2oV9C7qlAQb2OX0v7RlSgyexOsTvGLsP/tYCmln2+q23f3JpFUq xnujHYjYKDs1H129dLGX5MVFiTp+qktf42tIveLhfhJI9C/4eACTHBkMVsocIDoNKhRa cbqLXD5DjOsTW+G36LF/KeWpS/vA1gKHzPKmEha+GYLjbc0qpJrM9cGnJ5PNYNVne+hj NiNOxdoc+2pTdaaocDj3g2MnENk1TWjH6lhaSbkXYfX+GdBGOQcMTae/I58OfDtJb3s4 PLTw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uy9RYIFrt72GyVLolTkfJFGIgbCwRa8GdZWTSePUoCY=; b=FY+MBCMO8KDH+fXuc/0ry8mpUPrFr5OwdXntORxePwOhVaWECSvDzzSSgebBiCg90q QA3K/s/DzvYQ4Y2g0y8Iz8uypt27DLi+R+Jjct0VNiFmL6PG52Ad5TCOTnfjhDuPl9Ve YcuSF0WjLEtUZMjzc96Lx+8WyXIYf8MLocFmRBQsroimNz4dy6cAxMqjEAXFyfRWOefC X/fr8uAcsYPVgfLEIZWho8MgVJCG9CRfhxBZ7b5WCTx5YKxGMhrn4I7UVQ0LxrincNyX xnyXYjHQ4nAqSZSuVpkiBqkvwqeVSQtYBYhPBxyG4/lzBdzls93vcXG7+5EW1OerkYxw jtbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z4RwRwoZ; 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 d11si10759541pla.370.2019.04.01.19.53.12; Mon, 01 Apr 2019 19:53:27 -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=Z4RwRwoZ; 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 S1728998AbfDBCvx (ORCPT + 99 others); Mon, 1 Apr 2019 22:51:53 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:55353 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbfDBCvv (ORCPT ); Mon, 1 Apr 2019 22:51:51 -0400 Received: by mail-it1-f194.google.com with SMTP id z126so2639645itd.5; Mon, 01 Apr 2019 19:51:50 -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:in-reply-to:user-agent; bh=uy9RYIFrt72GyVLolTkfJFGIgbCwRa8GdZWTSePUoCY=; b=Z4RwRwoZZVmFSwqVbxiIr6DQKL566vAlqvMcqbc3MA8HqkHN1rWdHtXYuBx6gUn6pq OKDQkbkdTYV1xak6yYHSOhBLWlsfTY1CKtsMIdN+RL3DvUe/YcgOuAENHoYn5v+Fa62/ 0eJQxmSZpVlbK6XIwRP5SOKCYMPgx1hpaGxVBc0snFSYZBU8YWNWn3DBbm+r7sYqIEHH 3bJdIaT2sbmBCHuwagiZZP5beVdphNUzwKc0wKOondMjdsUsKqEFfo1n5WDXblNoNzGx O3f7vdcSJGYA+/24PPRSUqnOGZ4Sx7gH0BVpHn/oor/IcEkBSmyLQpallREVhQaKMgUZ z9TQ== 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:in-reply-to:user-agent; bh=uy9RYIFrt72GyVLolTkfJFGIgbCwRa8GdZWTSePUoCY=; b=OPJ95Q0uDdUNms+J8TQMJCYK25P0tufImMMJkJ/RBMBwX1ELfE2QqHH0+qjTDXpAn3 XuVSDoUCC7bCA6WN3SsrMhdB6XXRdqPbV4a++gE6798gWSeGKVnFCKQaa63qeY6kYRdP qL3+6oxzoy9yQAoLZKyPShv6PUhUBvG9KuPT4rcL2Tt2UbS9iBNajH9q6qEbVpLm2liU oXuvmj3hgE8xI/U3sF5jBjFsVabwtvBw88VvUWFDFi+vk+qgpzG+KRx16X69PZJU+X5A 3TyQHr1zo1xo8yJoNa8sf+26QungpZ1o7/YDJKTXxvOJIdHYmsWher7JiVAcySMibUYr jdIQ== X-Gm-Message-State: APjAAAXm4JQjW1tYBfExCkqXJyk10gWXtQ0kTB33q4mNpy01j6K7eRml iv/XmYA5nzuOWQPKqZTBow4= X-Received: by 2002:a05:660c:4c2:: with SMTP id v2mr2337278itk.71.1554173509961; Mon, 01 Apr 2019 19:51:49 -0700 (PDT) Received: from ubu (2600-6c48-437f-c81d-984d-b4e8-0abe-7e26.dhcp6.chtrptr.net. [2600:6c48:437f:c81d:984d:b4e8:abe:7e26]) by smtp.gmail.com with ESMTPSA id j10sm6238546itj.32.2019.04.01.19.51.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Apr 2019 19:51:49 -0700 (PDT) Date: Mon, 1 Apr 2019 22:51:47 -0400 From: Kimberly Brown To: Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Steffen Klassert , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/8] padata: Replace padata_attr_type default_attrs field with groups Message-ID: <8aa9c80adff66fa093601bb8ca7227586279f49f.1554151487.git.kimbrownkd@gmail.com> References: <20190322201440.GA30814@ubu-Virtual-Machine> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 The kobj_type default_attrs field is being replaced by the default_groups field. Replace padata_attr_type's default_attrs field with default_groups and use the ATTRIBUTE_GROUPS macro to create padata_default_groups. This patch was tested by loading the pcrypt module and verifying that the sysfs files for the attributes in the default groups were created. Signed-off-by: Kimberly Brown --- kernel/padata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/padata.c b/kernel/padata.c index 3e2633ae3bca..2d2fddbb7a4c 100644 --- a/kernel/padata.c +++ b/kernel/padata.c @@ -957,6 +957,7 @@ static struct attribute *padata_default_attrs[] = { ¶llel_cpumask_attr.attr, NULL, }; +ATTRIBUTE_GROUPS(padata_default); static ssize_t padata_sysfs_show(struct kobject *kobj, struct attribute *attr, char *buf) @@ -995,7 +996,7 @@ static const struct sysfs_ops padata_sysfs_ops = { static struct kobj_type padata_attr_type = { .sysfs_ops = &padata_sysfs_ops, - .default_attrs = padata_default_attrs, + .default_groups = padata_default_groups, .release = padata_sysfs_release, }; -- 2.17.1