From patchwork Mon Jun 19 22:08:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9797945 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ADF0060381 for ; Mon, 19 Jun 2017 22:08:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9480226B41 for ; Mon, 19 Jun 2017 22:08:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88EE326E49; Mon, 19 Jun 2017 22:08:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5B1E26B41 for ; Mon, 19 Jun 2017 22:08:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752605AbdFSWIu (ORCPT ); Mon, 19 Jun 2017 18:08:50 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:2276 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752444AbdFSWIp (ORCPT ); Mon, 19 Jun 2017 18:08:45 -0400 X-IronPort-AV: E=Sophos;i="5.39,363,1493654400"; d="scan'208";a="123970601" Received: from mail-bn3nam01lp0183.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.183]) by ob1.hgst.iphmx.com with ESMTP; 20 Jun 2017 06:22:27 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=UyCsRpgmHc576h7lSctD6V2Wj1tN9qmzmG8UO9I0jZc=; b=YR/dsCmEz3tVKUlTEFz5+qpWOPAEw6UiQteVoxWzH7Ld1l53+eHygQ2eWtPGxJTLVNRMsozJDu9aTsi6AbckI0FU0CXkkXuKpAmKqlYinvMfq1+YACG9ByfTNbvTDnZ8YAnxZLSJ+4RIwHxg2gVTVkMfzLvNMLWqBTIkEzh1s0o= Received: from BN6PR04CA0048.namprd04.prod.outlook.com (10.174.93.165) by BLUPR04MB531.namprd04.prod.outlook.com (10.141.29.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Mon, 19 Jun 2017 22:08:18 +0000 Received: from BN3NAM04FT009.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::203) by BN6PR04CA0048.outlook.office365.com (2603:10b6:405:3b::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Mon, 19 Jun 2017 22:08:17 +0000 Authentication-Results: spf=fail (sender IP is 63.163.107.21) smtp.mailfrom=wdc.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; dmarc=none action=none header.from=wdc.com; Received-SPF: Fail (protection.outlook.com: domain of wdc.com does not designate 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN3NAM04FT009.mail.protection.outlook.com (10.152.92.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1178.14 via Frontend Transport; Mon, 19 Jun 2017 22:08:17 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 08.03.02805.F4B48495; Mon, 19 Jun 2017 15:08:15 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Mon, 19 Jun 2017 15:08:10 -0700 X-AuditID: 0ac94369-9c18398000000af5-43-59484b4ff3e8 Received: from exp-402881.sandisk.com.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 3A.4D.11415.94B48495; Mon, 19 Jun 2017 15:08:09 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Bart Van Assche , Hannes Reinecke , Omar Sandoval , Ming Lei Subject: [PATCH v4 11/12] block: Constify disk_type Date: Mon, 19 Jun 2017 15:08:00 -0700 Message-ID: <20170619220801.12557-12-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170619220801.12557-1-bart.vanassche@wdc.com> References: <20170619220801.12557-1-bart.vanassche@wdc.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsXCddJ5ka6/t0ekwaYmcYvVd/vZLBa82ctm sXL1USaLvbe0LQ5NbmayOHzvKosDm8fE5nfsHpfPlnrsvtnA5vF+31U2j/VbrrJ4fN4kF8AW xWWTkpqTWZZapG+XwJVxaP50xoJvHBXrbl5ibWBcz97FyMkhIWAiMbNxFTOILSSwlEnic1N0 FyMXkL2NUeLZ3IVMMEVvj2xhh0isZJQ4caifESTBJqAncWrePrAiEQEFiZ7fK9lAipgFmpgk Wib8ACsSFjCWWLZ0BZjNIqAq8fjuKbAGXgEbievX5jBCbJCXmPaulxXE5gSKf5+8kxHiJGuJ z+8nMIIMlRBYxyrRcvcNG0SzoMTJmU9YQGxmAQmJgy9eQP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-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39850400002)(39400400002)(39410400002)(39450400003)(39840400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(9170700003)(189998001)(50986999)(2906002)(2950100002)(86362001)(106466001)(76176999)(5003940100001)(47776003)(356003)(36756003)(50466002)(105606002)(6916009)(6666003)(8936002)(85426001)(81166006)(8676002)(4326008)(54906002)(305945005)(53936002)(38730400002)(1076002)(33646002)(77096006)(50226002)(72206003)(110136004)(5660300001)(478600001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR04MB531; H:milsmgep15.sandisk.com; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT009; 1:wRgzdF3DAkKhYakHyt0xcOk9i2uiHBnjhTvQxOzp3vWZtRY8G+ZOAV1jPA8I9XxmgsRgEV/VYWnauQOEV4T2KBiUQ6bI0oYINwhh+OHXH4Q9BkxdWQhexixML/7NxpsG2iyp/j2N7wNDtzwYT6xdaPIQ4myELz5LTESUwEeYkTbu6GP3djlGgSBfNDOfdKpsxyxSAkTqlYCfkqp+VSxrt+3fNTMge622J6bTWY4Vlco2JVh2t0h1Ra/A/VkLBSA1Rb4eLsO09MizlQc1iY6B5MAoT2IgXRJvztmZGmmupB4J7YXifeM07Bo04tP7C1tmM5VBiEzSwtdwbslKafgAINdafv7zpWqfO7JmVru5+XuXL5txYbEq0tFgKof67Nfh+LSc7HqzdaO3jOvxJ0Hs1b0+4rYmLWy4OlwXysggfSkW4ljOL25DlVJw6KHkjLdn9FFZRMXNMQQhzUXFIrYmCip7Sh/lADdvP/cBNnQ/lXQIHHkDVf4k0w3onq5Khx0a4/p+4VSQaFVt6rdb9E+lPZEu1QbgokeKhGOJpxMMO5lS1f7OURSI9njZR2JV0f5R X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e8cc0b7d-08cb-45aa-e559-08d4b75fb06c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:BLUPR04MB531; X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB531; 3:bgTKPgjMjW4Mo8ZP3p7CzbhSYMCzhmfKnGPg5Fpbl3eB8+hfTpIYo/9MS7nSU85Qgs7YvTIx7+HHeiHHMaOVhZZyRs1tMPxHkwgucUTnP+prU1ZeteXVVREd8bU11ltaFUiQLYxSYMsANc0voKc+pnHlMIhSdDnRksjjHexlkuxSDiUnA3ij5L/wPQzg1Cda33sacLTOlnFBqjpdJQZ4dW1X0QUdN9NI8EGfdBPNvazwWdt2YboXqsrtK2Z0SAygbCHHwTV7aPa9DWaG6ZxdLpoC2PWgSFQMFqOYqQNRRKUxdxdl/t9wYadzcD5Fe021fX8ap79pHgUNudHF93R7jL61rG6rCuYxe3uA8TtcpOZXDVql6p97Jah8uq65VPYEiiCWJ5bKDBlTu/NkDgxASYNWWHIm1cHDpdSuuIPKe4CSu8CS2Z72kYNxBCIEOCHlP7UXQpTDQzftFhPkiNZowQ== X-MS-TrafficTypeDiagnostic: BLUPR04MB531: X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB531; 25:8Dz8sBILwP1fguO+beWDAQHfjWsO1aG2/PILPQ/xY2nPHDwBP7tJ9owhYCoxHZxvzEsdUFo1XZ/jvUocHDtHhSqvSFGWtDFM7C6TZRXq4Mg7iBcMZ6X4hDKjVsD/j+yg0th2SLHk5TCl3onaNx8xscCcp96qYxanTKagEi+rrAD/jsIS0EhKRVZa8RW+FUtQj0W+RggezptrklkH+rm0kLXIn3cxnulFVCeQ04jXv3nUCzT5kEbN6g8G+RHE/aNuZLjzpHhKkU814e4/odgtUYF0h1A27ZyeBVrwzUUuwXWm/+LEHP3Pf9cQJQKJK/ixyxQKNxLuZ1Cp3cKzA8jsvmMkLdYZfoZG2EVdr7ek1RldC6jLBW0o8LRKQjh4h7IBP2GAKiQUhYy3qyNb7WoUdNidjVHfN5EdxsXaofvmm4FhLOABBBaX6rNkfm0NKg6s5nYXsqhg6o0ncgAiasxNSgnG+jWgGlDfqIGelLCiLJs=; 31:nN/f+c2n2jXDFekVwBTZBqBOntR6cJHmWWSsqXe+ythaVJEPq/XUT0+4+LCrM+hHhlTfPTEGR3GcR59lp30EvTaL6LNDbqtzKbd1zMsL4f5bM8NHTG/6d+uKT66sf4zFDb+8WGnwUhJtdJadUrdAO35ps+iE/ju/TCAlCUThPyhpFOlzyOTu6RYMj8bQYn7fkC09rMo0SEEP9u1h3fcvj9tSM+Dz78QeD+N7qrMxHaBtRtDjLslmivQVukl97Mdj/WGeRWAqYEJqnpxSi+uMtA== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB531; 20:hvieU2p1ekKN0zAQoIZEO8WZMXpk4zGUB5fHy6Lft94e/ohc3pPDwhooWz+ko01WswJ6ac6s8wZKQAMHraYDf4Cm7Co/e/lKU+obVr9u4FL9yV1183IXW4SNtd2MA1rBrAvMRnZTahyRh0PjZsXxMWqko40JDUV8De03Hw00UnG/MbT3K7fPStesTlZOffhpldO5BtIckZUwWLvqklNDO9RCEpQGpgSqMww7GfVe2rZyqbDlnQi99d1MQlA6ASeErrMqETJKRvniAlERZytU23I0Vu0ft5nnfYfFXHLaD3g22IiElWqoGooesaADGO2W1CTZuupFxsckUcHLkVDAyg6KB2BHkMiKEr3XqwY1pxpjXgXt2e1LkD0qbmkB+S4hmHvgeGM7BPjZTVqlyRb+B8ngw702rhAn+oa9mh6fcLmj4/KIKLhISLapdBqsjBUpMma05LoZQuIT+r4h0xKlKm7+tA3gba9AxCoBRH5mmQx19R4E6NeYAld2+H8HC2BY X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(13016025)(13018025)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93003095)(6055026)(6041248)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR04MB531; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR04MB531; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR04MB531; 4:VJaYIW/wdDRDC3mZTmOnbpuvwdz68jOnolBF5whTuAg?= =?us-ascii?Q?sVaM+OMD0NBaZuqPpA7wcSVFdPl0IfLMjSpndlGCCZ6TmVnHwWM21A6SpfQd?= =?us-ascii?Q?AmpDVPmgtDQYbfyjj6sHzcLGjYW5KxnEp7Apk1phhxlb6WtdEiN81Vwqn4GG?= =?us-ascii?Q?pmPLElklDsVD2mquV8qWu6OkgYO3maVYq3ay4OAUNtC8h00kA0zOf2dzG3ZJ?= =?us-ascii?Q?5GLnxEjlGRcygGOQc7Af8l7w7m3Pw7DqVzqdOUsnkewfQkyeQb3/kfll0ZkG?= =?us-ascii?Q?AyFWimJ6jy7LHn5dCZLJF1c05JLHhJRlll35lv7J1OVHaP0nLHGGo2Jb6xAF?= =?us-ascii?Q?vSpcwyXoX++Ov8t/KbJYwjTnCwSiieGWkg/z58EmvcOBk+2PdS4w2wovguLr?= =?us-ascii?Q?qGlrVUfeZbX+pW2PBPuak+BzCrpuxIq7Q3O7XM4bY6gWr0M+4u37+DKMQR3F?= =?us-ascii?Q?0FDnGvkyEaAwATwpJF9SXF97XvesVeyG7CsUjAdrIqblLjg1Emj+8ROZUJBS?= =?us-ascii?Q?I4+KXzgeGvHtDbp1q85kQULt72W5QainrBO/14oslRQUGC3nmSUjPDz9YKcl?= =?us-ascii?Q?7zw5/0VgIxQtkhy2gGNeBzhGikhf5RZXaDyXmcESn5GCg5eAkcQwvXzND4wY?= =?us-ascii?Q?pjzGZrwRGz8jV0wh1URpyJ3D5KmQh3io8aVAu1GxsHeMjR4GOuZgzgVOQFAr?= =?us-ascii?Q?l21lYI6c37sOpFDy024znPS8rpqxiQ6+NPtYFU61H14R8deYbjkR80De/h+j?= =?us-ascii?Q?OIAZLqZC/xueZ6aWm/jqppouLtDtoO4U5psFtQoZeFPRLrkJsBEXPhYkJmkU?= =?us-ascii?Q?8/hedz8MFMwfEKMOE9WyWrAiKfMKtiqxRbP0v2fISIAN4jsRPOhmriKGD0qv?= =?us-ascii?Q?hnZ2ZW5bm/5vnm/onE9lalHZrTETVRgoqV5goAdz2+zUi+Fpnwd9PmVrf2Ww?= =?us-ascii?Q?UUp3OLY9z7YV/N+hjkpHFeAZvRs7xIS1lF6zhLurjEnangQ+wseBTgbUXtry?= =?us-ascii?Q?rrLZoZHNAzYrHzgeZ1P0X1uZMzxpN2sdKckKB+PR9UCqlZv21f6kMQToyQw9?= =?us-ascii?Q?iNEgFcIQR5IXldo5lE1DG+yaA1HEywEoymFWyvqCMIHuNtaAm5dmBlk8qyJn?= =?us-ascii?Q?49FJsdevIJoFsNHCg8rfQ5ckvXGBG9jMucTHQA/4JHzWzHo0RczRVtxvHyX1?= =?us-ascii?Q?l7o+sKQLUqWbBwRy89hHKAZtIAOukj0U5MrrkH+uUDv0Uh+R3MvrLq+JXTD9?= =?us-ascii?Q?RprbLKpVEcgroVHQQzAb59Ecp6AaxdrZxWu3ouKJdTEO8Y2jyqP9TdzWOoQ?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0343AC1D30 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR04MB531; 23:/hTjJb+4Snlol1F6nCDaOWEXg8t94wZ/B73/xOeWFu?= =?us-ascii?Q?nV1g2vieWx5YihYIxAJx3jhge+NzyJjk/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us-ascii?Q?vp39VeUcGU1zc/newI20iexR+J5jgqhQ64K9P/b6CVknTWdVYRW1MrbX9oZw?= =?us-ascii?Q?vmEptbD30ni5RcjCaghSsTXE04iGtx58/jRPbY3w+7MxNJ/LKsyIfb3Hv0BH?= =?us-ascii?Q?RLjxcoyoTUo+GxKiK3T+E1wim9YX+VR0MpDzxAlL7Y/snezS9/EPcxapJ99g?= =?us-ascii?Q?scXuum8hd/+ErtFHOeWjI9F32me7iScSonRPs2JzBNlr+dF/+YnA=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR04MB531; 6:MZqbXPQBahJZkhMEM+e6gyWhbnPQZyoxhHWQ0miRoDL?= =?us-ascii?Q?2Y08EOq8HuBWtxRlgKmuwunuQbvTdTjfe8RfS70ZmMtm0ae7aKRKVnw602JT?= =?us-ascii?Q?01DHc6yW+f2+jLpi3//F4M1Pqkn4ZC4FGeKTGxdSpJnIKvI9OMFoO2V3KfGk?= =?us-ascii?Q?jg3x4QW2zPX6WJEXvlwvt5bvNfmT3w0eLvvByI5Yk0GC8MCiCllRKIcM3fM3?= =?us-ascii?Q?wjOSanFywacazneKp9+6izjF5XSMvh1G4sdG7Cd2MUQaK4RPU1nnTajWnYES?= =?us-ascii?Q?bm0nlVdWY7wKK2Q0bSFNCpBbsQU5K/ijaz9O9v5e+5OGKFPQrWY3wfb92bYD?= =?us-ascii?Q?mc0T2StykTDOb9FdvtZMoq9kYNQ5y9kZN2WFL24PpeY4wrYQJksEsU7dGErY?= =?us-ascii?Q?5MaaiTcSNt8vfmtUi4BOSV1WwaaehlMIzhIfZy2mvtfiKp+W30zaBMvinuWJ?= =?us-ascii?Q?FgV6obFdJU1lS50fqQtuPjQ+z9jyVDdRoki0mGpkXiURwdBPy9T5BahZrd6w?= =?us-ascii?Q?9F+MVhUTv1mvCMC9ngeFa2g2JKL8S2wcEWdQouS5Uxmz4nrty/pniWR2acDy?= =?us-ascii?Q?6wb5XCwZ4HwWCGangSuKus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Ly9MdPnO038y3lO1Z+7vFfju2J4QfkDb9FYM6vnruHOzOW4NBbwfnL1UaGMC1Th3F0IoDPTGZBwoJUMLWfTGA6t6NeFVwI4tWEXFHDpUBv1vbuyiM1x4UHmnw+cdRsfuQCyEb4FxYEg= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2017 22:08:17.0160 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR04MB531 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bart Van Assche The variable 'disk_type' is never modified so constify it. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Cc: Hannes Reinecke Cc: Omar Sandoval Cc: Ming Lei Reviewed-by: Hannes Reinecke --- block/genhd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/genhd.c b/block/genhd.c index d252d29fe837..7f520fa25d16 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -36,7 +36,7 @@ struct kobject *block_depr; static DEFINE_SPINLOCK(ext_devt_lock); static DEFINE_IDR(ext_devt_idr); -static struct device_type disk_type; +static const struct device_type disk_type; static void disk_check_events(struct disk_events *ev, unsigned int *clearing_ptr); @@ -1183,7 +1183,7 @@ static char *block_devnode(struct device *dev, umode_t *mode, return NULL; } -static struct device_type disk_type = { +static const struct device_type disk_type = { .name = "disk", .groups = disk_attr_groups, .release = disk_release,