Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4438273yba; Tue, 7 May 2019 18:51:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsa1SkP43kfu4DujFR6FKg/41B5INR54j0JcCH41QIYlAGGCKj5s1CdGX0kVldMQG453ZQ X-Received: by 2002:a65:6546:: with SMTP id a6mr43166799pgw.5.1557280280982; Tue, 07 May 2019 18:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557280280; cv=none; d=google.com; s=arc-20160816; b=b9bEL9e4wuktM5kY/EFN/OXdkeiD90yfRCIJhftl5l+T/UsBSO/BOvawFPFJJ0hk7N jslhqfSxe5EJr2NIn8Pj3gakfJK4HgrmKnELW3g288jVcw3LdGj6DTcg62PPM8Tgv/is r95cIdvNuBWP9azQXWelc/mqnht+hEwPdcGc1N3f/4Gk+cK5ilLceLC4hmtLcl/j+Ae3 8ErE99nRUhKTtlYB4rPS2wTUci7o9UWsyzEXkeJCJzmjCUaOnjxhBk2Y2QYMwd5pDaiF mAMmJ1htsErKmRV2evEj/WmzHfKMV3xiWQNJlu55UMbK9CR2S9Fi+RhWW/iBWyp5YNOP munA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=o7lcyB5s0oTEYvy3/wHbgG7UILE/7QogHJKGt1FxaBM=; b=IswuytyF7m5kWp+o32L2zjVtcb6ee4K77RNOBX/+oJVkr8k0OdMouq4P/pIyM6qFrV p+QcxGWpY4b4jCienMGLB8dhQoRDSBg4deVElS7Sqf2w8u+o3FRf+thjeokbOHAHltbJ btilBxqNn4ruymZ1zrxpXxYa1CnfrbJj0aLT6Pef9hK8hG1wGfq8Hua1NZiW3dJZVBTF Ik0plVj6IWhR3zd2UTjz6Vci54r3OJ9xOIUs8Kzj9QtjhitHOOoKPBoH2XcidvQLCiHo SzaMktvELGZUbyd4hDUMg76/euEVKbyWlZq6SCwmSVik1UioCN4lQG1yNxHJehtiuLI7 v7vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L6ZI9PRI; 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 m18si19942466pgv.209.2019.05.07.18.51.04; Tue, 07 May 2019 18:51:20 -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=L6ZI9PRI; 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 S1726515AbfEHBs7 (ORCPT + 99 others); Tue, 7 May 2019 21:48:59 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:37348 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbfEHBs6 (ORCPT ); Tue, 7 May 2019 21:48:58 -0400 Received: by mail-it1-f196.google.com with SMTP id l7so1439327ite.2 for ; Tue, 07 May 2019 18:48:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=o7lcyB5s0oTEYvy3/wHbgG7UILE/7QogHJKGt1FxaBM=; b=L6ZI9PRIK8DoLR58x1qB/Lw9xq543AAQprEDzs/cg+03ifpuGgsmRzrjX63HCBsjv9 KfYtHyc7CJwOA9FlfNy0Z45pwr/Ku927wvXIasxUPybmvW16TTPbAIRO0hu7afSl0al3 uxZjQhdZHiULov9X9eK+jn8zDeifTLZzlb6Trk9qXXo76nFPjzWYzTQifXsKmxnNlGiD SqAaKhP4WEFndLPX+nLxL9heO/n8mhzhRUEpLyJIC2VHJZLHEpPSdPnghcZ3DWDMCJ3I 4meHp0cyCUBJ10WnUWHXT/B58vwCx3wmDP+opfDX+Ufk5M3v9w98d3zubuXn9trTTqBR yG6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=o7lcyB5s0oTEYvy3/wHbgG7UILE/7QogHJKGt1FxaBM=; b=P2uMYxC/7CHk90g68BING2somkZuipVGQ8klWYVrBl6O4l6IgxCSD68+bFBHnzWKj1 EcYXC1fqAHJuHW6z8MiyvLlnMTzldCHV4leuF5zCxS3GHkpdYmgdDKbY9V4lCtvyiENI vNUDq+99G8DwxWt5RTCtc0mJsh6+XJ91OJPDgUEUELLX/eCid6hstqKdA3vPRW3F10jv CztBTVi+mHrAOX2jj4zz/jXFBMVQ0jQVWW3KHxAi9BqcdO02bOSA1q5bhdvR0ZBlqf5U MfF5xcQeUvMG7CG8e63v6ogeF6CzF5B55UC/7Qm+ksXRS9TCaJd55eh0XKVpgnWWaTx3 ISJA== X-Gm-Message-State: APjAAAWenibkKcTj4gU1kOn9rmMgjauYqwzUOYFT1mnF7A43CYhg7Z0q n5OGv6GBLRdHE8CehKtjZ9mcEbNoQ28= X-Received: by 2002:a02:8815:: with SMTP id r21mr2015578jai.88.1557280137987; Tue, 07 May 2019 18:48:57 -0700 (PDT) Received: from ubu (2600-6c48-437f-c81d-f514-433e-0658-d461.dhcp6.chtrptr.net. [2600:6c48:437f:c81d:f514:433e:658:d461]) by smtp.gmail.com with ESMTPSA id c72sm446207itc.22.2019.05.07.18.48.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 May 2019 18:48:57 -0700 (PDT) From: Kimberly Brown To: Christine Caulfield , David Teigland , Greg Kroah-Hartman Cc: cluster-devel@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH] dlm: Replace default_attrs in dlm_ktype with default_groups Date: Tue, 7 May 2019 21:48:05 -0400 Message-Id: <20190508014805.28715-1-kimbrownkd@gmail.com> X-Mailer: git-send-email 2.17.1 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, so replace the default_attrs field in dlm_ktype with default_groups. Use the ATTRIBUTE_GROUPS macro to create dlm_groups. Signed-off-by: Kimberly Brown --- This patch depends on a patch in the driver-core tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?h=driver-core-next&id=aa30f47cf666111f6bbfd15f290a27e8a7b9d854 Greg KH can take this patch through the driver-core tree, or this patch can wait a release cycle and go through the subsystem's tree, whichever the subsystem maintainer is more comfortable with. fs/dlm/lockspace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index db43b98c4d64..762f08bb2bf2 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -160,6 +160,7 @@ static struct attribute *dlm_attrs[] = { &dlm_attr_recover_nodeid.attr, NULL, }; +ATTRIBUTE_GROUPS(dlm); static ssize_t dlm_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) @@ -189,7 +190,7 @@ static const struct sysfs_ops dlm_attr_ops = { }; static struct kobj_type dlm_ktype = { - .default_attrs = dlm_attrs, + .default_groups = dlm_groups, .sysfs_ops = &dlm_attr_ops, .release = lockspace_kobj_release, }; -- 2.17.1