Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp524503ybi; Fri, 7 Jun 2019 12:01:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDNmPkQRrJJIqs9b5zRLNHnB7Ko43SLURy7JGBiuTSFkPI83rnd/wYGIJ4ImhZ3yP9u63n X-Received: by 2002:a17:902:b905:: with SMTP id bf5mr57977089plb.155.1559934079059; Fri, 07 Jun 2019 12:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559934079; cv=none; d=google.com; s=arc-20160816; b=OLXk3Pu6NAGWisSF6+xi74A+GzZ/zyg6NLA8OKDKJaF3ZTl+/BOiyfJSdIt2ETJxdI KjOoComT9nV1yhd3gAV5D08I2h2E1XoZ7SXCf+aB+oIAYcPWJq4fNfYT7EnRizIV7Bq1 pvnUSlYlmhFSaao2uv8kPfIhPTBGay7wMBLHWuePNz6Z9Yq8fPcWtpIC3rnvDRh/GU4p ej4kaVD8aOGnRUDUYyYoH8Xbu1qvPiYzLYfcNOfCUV6ROFHa3FQOuvIeQRYxH0KBCC7J BhZuF5KAB5K4EBywpJYfNcMGjHidcTLAXM48UHsQstfUM7yaUCXLJo8vwFobfGIB7gCx hlaA== 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=GvSp4gzCgfrFcDrCwilhUDsCbSpdZAD9u0QzYjvDaf0=; b=v46mz6ff/GdPAiUTTXqHJBmoMKo7gZnuteNL3N1o/cRzL6mjp4I0/gz6rIj6rbomZE LOi7ILZzsd0/LB+XsjQBPShy5ZOpx4cQFoEf2r3UZneuoWDbgAY04iPrTz41YlbhUO86 6sCnhrwoyxzJgqpRDJz8vcd9c2K22MJOdvb1d7KU+vG7Ndv8ox6qCACOn3lFtJsDqgCZ ugnPDvvFAdb8sPKzO5Zlii8XZBBenn3YXMHZHLtIc61Vn3Q1V5Q8AMNP1zjJFvwyfc6p QBlULqP9f8z6RYr5OmYR47UqvmzNPCwauSjDVfz8ETXlHXXFiWNW95CDovHxbjU9VlgM p7ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PC+YMhuN; 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 f7si2829677pgr.536.2019.06.07.12.01.02; Fri, 07 Jun 2019 12:01:19 -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=PC+YMhuN; 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 S1731576AbfFGSXN (ORCPT + 99 others); Fri, 7 Jun 2019 14:23:13 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:38917 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730183AbfFGSXN (ORCPT ); Fri, 7 Jun 2019 14:23:13 -0400 Received: by mail-it1-f195.google.com with SMTP id j204so4191394ite.4 for ; Fri, 07 Jun 2019 11:23:13 -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=GvSp4gzCgfrFcDrCwilhUDsCbSpdZAD9u0QzYjvDaf0=; b=PC+YMhuNaUWAWX/Lb0gLc/h+nxONJn2eHx5nbhURAcSpznHVvBeFqIXMfnhC1abY8A qZFVchyCFcRgRrxaNFVSL3yEE6P3zQOzLX/Q7XOspBhW4rlIiSNHcxw2oEp5ow4AJf70 Wmhwyawxz6Yomksl10z9bCZn3o0SKde3GlZPVVO9rJQwWpttLFwExpM2j4T1MJ5KZtfU F32W3ZllSKXC5YJ+x3xp4eWCY86Kh0xK/SKp+aEp941V26weYBRni6CmgtX8lPPveuwq DfvQNv4RbGb6b+TUB/Ba2AQt01HqIcVUN0JMLz53VREhNvCTawEcfP3d13fEwamIFAtC 63OQ== 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=GvSp4gzCgfrFcDrCwilhUDsCbSpdZAD9u0QzYjvDaf0=; b=qWV7bPD7Ief8AgJpNMKzR0eyvWb42Vq0eezpNiFlCqc9SLxojn4CKuhgCamTK2Oes3 Pid4A/3VP2tfS8QCfez3roAc9fFihUoDOTzig9pIxUbzvPWLf1CEfZXEE1sT0ak3c2ek BaLomUgjBYoTQ/Q8mkN579iaruycmrtI2wDhfEmZiA0KxlhGE8yOSCioIfLrcEpY4drg QM1B19v3QVDl+gfWkWPhFoLsmDjCml94eoGzoLCSNDEdp4gvR+9NPFLktuWKl/jGYwVI X7ShLtyrVqVPxfY6mtvrN6vSwhdUKUYYgNYHH0BO5KBuuy6kiC534+4SKkpjCki+5POm n0sA== X-Gm-Message-State: APjAAAUbOgyRHcnkjLKpmThakxMO/8J30ss4aToEh4qe6grtTY8KABNb ZCRr1MTvaZKgmgRn6C2i0tIMCkgnxU8= X-Received: by 2002:a02:9143:: with SMTP id b3mr12666954jag.12.1559931792333; Fri, 07 Jun 2019 11:23:12 -0700 (PDT) Received: from ubu (2600-6c48-437f-c81d-59ab-a761-9e83-29ee.dhcp6.chtrptr.net. [2600:6c48:437f:c81d:59ab:a761:9e83:29ee]) by smtp.gmail.com with ESMTPSA id d129sm1364143ita.36.2019.06.07.11.23.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jun 2019 11:23:11 -0700 (PDT) From: Kimberly Brown To: rpeterso@redhat.com, agruenba@redhat.com, gregkh@linuxfoundation.org Cc: cluster-devel@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH] gfs2: replace ktype default_attrs with default_groups Date: Fri, 7 Jun 2019 14:23:00 -0400 Message-Id: <20190607182300.32457-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. Replace the default_attrs field in gfs2_ktype with default_groups. Use the ATTRIBUTE_GROUPS macro to create gfs2_groups. Signed-off-by: Kimberly Brown --- fs/gfs2/sys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/gfs2/sys.c b/fs/gfs2/sys.c index 348903010911..c784034d22a8 100644 --- a/fs/gfs2/sys.c +++ b/fs/gfs2/sys.c @@ -299,6 +299,7 @@ static struct attribute *gfs2_attrs[] = { &gfs2_attr_demote_rq.attr, NULL, }; +ATTRIBUTE_GROUPS(gfs2); static void gfs2_sbd_release(struct kobject *kobj) { @@ -309,7 +310,7 @@ static void gfs2_sbd_release(struct kobject *kobj) static struct kobj_type gfs2_ktype = { .release = gfs2_sbd_release, - .default_attrs = gfs2_attrs, + .default_groups = gfs2_groups, .sysfs_ops = &gfs2_attr_ops, }; -- 2.17.1