Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp878059yba; Mon, 1 Apr 2019 19:54:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjmpihQpkUn9eDCxn36kWWVZfWB602sFNlo4DC2zcOhLnCHSx4i+p1W/uTMDreA6aiqoWX X-Received: by 2002:a62:b40b:: with SMTP id h11mr56107444pfn.133.1554173647707; Mon, 01 Apr 2019 19:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554173647; cv=none; d=google.com; s=arc-20160816; b=wzE76B6Vm/ieLDE40HOT8MtdapfxFkzN5ct0XgW3OGcpns9n5H4Qsw+N1CLjAROSzl QUrd9vz4djvRf9djdfW6Pt3zK27/NG33VJ2i+2F9iAUal+pfGBRSz4ZUpr5WFt6+ad2Z qmXz5CeFJk4fiYoN/ioQCnJe5N/3JKTNO65ZbHcOV83iXLzsH8Ux+QwaH3TG8exF443d Q7cOFIdqrptVZ6QWamtLb0VhAS2qcbQTkqcyNd78thjs9FhGNX/qs47azHn2dK1booA/ DKX4xf1WgEjcYldL929dpjOzZY2GhyLsRBRnKCafpRFSYezWG1Mvkh7xx56Q9iAqurzC Llcw== 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=xUqoY2mk21wr1bmDLvvc2Vtwm8+AKUani48Dr7S8eig=; b=aS3Tsbt6iIYEHdkheCU1EFSPxETyLKRCx94VD8BJFRfxBE9jG9Hb8meuGvDfDurW92 DGal2pw62Na5Mwn5aoW7SnxRa2J7e+eSs75dC/z5r5nI1QQDK6D+x7BcBVyqS0/i2nv4 ApgW8AdYXq+47Q60pe3R3EfbzMIkJFvLP5A6hvcpsmsjsuqeypWS1zq+Map0+vmV4jqx nhA+hLwCuZ4vAmBszBkm4f3Cb+yquUxAdv0hiR/qFtbTcG0SCDuB09hlatqR1drGfrSI yi3Erx/V76D3EU6ypKFMlOX2u09LmxwM7If/1PQQW9jX8z/tqOb51t6/yo/Wlk7KwjZg 4afQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PAuhiXAF; 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 k12si8275280pll.73.2019.04.01.19.53.52; Mon, 01 Apr 2019 19:54:07 -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=PAuhiXAF; 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 S1728970AbfDBCvp (ORCPT + 99 others); Mon, 1 Apr 2019 22:51:45 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:35705 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbfDBCvp (ORCPT ); Mon, 1 Apr 2019 22:51:45 -0400 Received: by mail-it1-f194.google.com with SMTP id w15so2769571itc.0 for ; Mon, 01 Apr 2019 19:51:44 -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=xUqoY2mk21wr1bmDLvvc2Vtwm8+AKUani48Dr7S8eig=; b=PAuhiXAFdHfSh7HImbu5gNwXKEDDvl6L9op2Rb772lyFyo8x9VPRpDrHgjDEFCUGB2 fa96LqcpRnNt3zLS04DK8Q9fg9AbWo8NV4l9nTx6tiVyEkseJ1cQ3nK72LOdXf2A7lF6 tSZqzLFfnWThXoUfv9g00x505hRva4YRsg0gtSuMQyvZgURwFTFtBc29XKnVH5Szbleo QoLcso5psH7sHyYJTOy/8usNhrwhrcVSMrIBIRsyE3msfDm90xhxZUbOBrRzbqwp4oC6 JLPmW/APoJN6ZBMhf7OArdyseVUoOLasSMIlmRrIH1a9cx3Fh++yadOktPLd+15FLO5d 6w3A== 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=xUqoY2mk21wr1bmDLvvc2Vtwm8+AKUani48Dr7S8eig=; b=OIdmdiJ+38Svz6sY9bezQ03c135tA53u/vyaOMTZ3XNMc4lwdMXTSogwhK+hTQKSqK XgK68NPqnDW1P6w3hHzuuF3vQVsfVOfOsEMtxuGrGo9JttWi16sytc91da0n8er1Nhg2 9lyoDVBRCwXDdMZFqkBd+8lxudnc3Ov7TLiGdPlIHSD4Ub4YhmFTNY/igtSQs+czpsNv dh7Kts3j4LzEoeKB5s6No+l4Qe2Bj+Omzcp4BlPqOVFUXjdsk0G6+wP2P2HZbeTr1GTe YbS/2+lamgY1BrPBiEWEIh1iSNyFv+cmCGi69JMLz9/a7JOno6kmULeBsmGeGtDNFms7 7ddw== X-Gm-Message-State: APjAAAVtB1sj5RZnnaoqaRyVz+k/k5VOI+qTMV5cBnNwfr+mK/3P2Lc0 ZoFGPX/lfMxKN8k+Q8j7I8Q= X-Received: by 2002:a02:b38f:: with SMTP id p15mr26880024jan.103.1554173504241; Mon, 01 Apr 2019 19:51:44 -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 v20sm5231204ioh.17.2019.04.01.19.51.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Apr 2019 19:51:43 -0700 (PDT) Date: Mon, 1 Apr 2019 22:51:41 -0400 From: Kimberly Brown To: Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Thomas Gleixner , linux-kernel@vger.kernel.org Subject: [PATCH v2 5/8] irqdesc: Replace irq_kobj_type's default_attrs field with groups Message-ID: <67ed609340d94538992702131e94247eee24a0fd.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 irq_kobj_type's default_attrs field with default_groups and use the ATTRIBUTE_GROUPS macro to create irq_groups. This patch was tested by verifying that the sysfs files for the attributes in the default groups were created. Signed-off-by: Kimberly Brown --- kernel/irq/irqdesc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 13539e12cd80..bbec57bda666 100644 --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c @@ -275,11 +275,12 @@ static struct attribute *irq_attrs[] = { &actions_attr.attr, NULL }; +ATTRIBUTE_GROUPS(irq); static struct kobj_type irq_kobj_type = { .release = irq_kobj_release, .sysfs_ops = &kobj_sysfs_ops, - .default_attrs = irq_attrs, + .default_groups = irq_groups, }; static void irq_sysfs_add(int irq, struct irq_desc *desc) -- 2.17.1