From patchwork Tue Jun 20 18:15:48 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: 9800065 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 D430A60328 for ; Tue, 20 Jun 2017 18:16:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6B5D2624A for ; Tue, 20 Jun 2017 18:16:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB12C281E1; Tue, 20 Jun 2017 18:16:14 +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 555AD2624A for ; Tue, 20 Jun 2017 18:16:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751874AbdFTSQN (ORCPT ); Tue, 20 Jun 2017 14:16:13 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:18374 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751590AbdFTSQF (ORCPT ); Tue, 20 Jun 2017 14:16:05 -0400 X-IronPort-AV: E=Sophos;i="5.39,364,1493654400"; d="scan'208";a="28426663" Received: from mail-bn3nam01lp0180.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.180]) by ob1.hgst.iphmx.com with ESMTP; 21 Jun 2017 02:16:05 +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=VgJVjXMwfsx4GDvHU2vRY3W8rwGG8+rPmviQ7mWN98wZgCDbl76PL8UenUKmaaCqf+oN2+Y3mQWZs8G+rcCHpa0/kM5Ttf9zrF3pYPFXYUx5ZIdcRWc2+DPmhi9zBxfRH/PY3zxf+HYMyy+NUkO+NLdoiIEEWYnXB/2DGQ3EQ+Y= Received: from DM5PR04CA0065.namprd04.prod.outlook.com (2603:10b6:3:ef::27) by DM2PR04MB544.namprd04.prod.outlook.com (2a01:111:e400:2430::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Tue, 20 Jun 2017 18:16:02 +0000 Received: from CO1NAM04FT022.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::207) by DM5PR04CA0065.outlook.office365.com (2603:10b6:3:ef::27) 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; Tue, 20 Jun 2017 18:16:01 +0000 Authentication-Results: spf=fail (sender IP is 63.163.107.225) smtp.mailfrom=wdc.com; kernel.dk; dkim=none (message not signed) header.d=none; kernel.dk; dmarc=none action=none header.from=wdc.com; Received-SPF: Fail (protection.outlook.com: domain of wdc.com does not designate 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by CO1NAM04FT022.mail.protection.outlook.com (10.152.90.167) 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; Tue, 20 Jun 2017 18:16:01 +0000 Received: from MILHUBIP04.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 67.50.03809.F5669495; Tue, 20 Jun 2017 11:15:59 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 20 Jun 2017 11:15:13 -0700 X-AuditID: 0ac94371-d7fff70000000ee1-61-5949665f48fe Received: from exp-402881.sandisk.com.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id A5.5D.11415.85669495; Tue, 20 Jun 2017 11:15:53 -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 v5 11/12] block: Constify disk_type Date: Tue, 20 Jun 2017 11:15:48 -0700 Message-ID: <20170620181549.24903-12-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170620181549.24903-1-bart.vanassche@wdc.com> References: <20170620181549.24903-1-bart.vanassche@wdc.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFLMWRmVeSWpSXmKPExsXCddJ5kW58mmekwcr/Whar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSvj0PzpjAXfOCrW3bzE2sC4nr2LkZNDQsBE4vyzfyxdjFwcQgJLmST+ XHnNCuHsYJRoP7iaBaZq3sIVzBCJ5YwSD1u2gyXYBPQkTs3bxwRiiwgoSPT8XskGUsQs0MQk 0TLhByNIQljAWOL85xVgNouAqsTn5b/AdvMK2Eg8/HSUEWKDvMS0d72sIDYnUPz9ktNgC4QE rCW+fr8PNlRCYB2rxNHnp5ggmgUlT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 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39450400003)(39840400002)(39400400002)(39410400002)(39850400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(76176999)(110136004)(47776003)(50466002)(77096006)(5660300001)(38730400002)(72206003)(6666003)(1076002)(36756003)(305945005)(50986999)(54906002)(2906002)(106466001)(5003940100001)(105606002)(86362001)(33646002)(8676002)(8936002)(189998001)(6916009)(478600001)(81166006)(53936002)(85426001)(4326008)(50226002)(2950100002)(356003); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR04MB544; H:milsmgep14.sandisk.com; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT022; 1:hLcaJKeLnbslRKbAhwsAWfuXPUYS4OFnvP2yKhXryOq8OozLx1jZjKTUNAGM4KJw02F2fZFIM2MacjEqDk9xwV098dGfz+YjZl5mNsbv8ai7kUhxr2RMG3QAhOG5fH5B8dj9PSJiIyFHPsBWN4MpIdLyJ7BLPhUh8KXJCKwB2BiI2hLnL1hVi2u9wuhmqBMa88WorBV2SUt25ocmnhIy9qYhhjItdSl+z22LFBxgFAg/dTGHWy1lDKK0I+kSGzymjlfaA+SWw6R/gkDoe8AjSN/DMO5TRRVAZWCz8OOzrqmMH1r2PBd4JRXAS+ALXU4R2nVttT+yWfwFbN4rfd+edBRF/YOlJTHmbmua86yDqQxN7jr+PU8ATYQgheIVDOk1U3Fh2GbDPoYhQOB1CDFfYQhzp4VdDwGp9LLTmCzFm1GT/Az0FOVQW3OA4ZVWQ2b+h7yfGmF3Pxje/6S5pUCyy+BzKD9IdDFYTvXMwezxk+IgMJ0XYoH37D//hlvBk2mNBixu0lESCSRwQbml0hTL7TW03asYsIIt/r6qEH75FTSaI7VZuRqL0uSOTgz2PF44JmmJMZlzfP7NSawyDKhWOt4hBJrWdz7jWLcHSf0D8ZPbJOuuGIjGbiDctDnWqyR64hI4rCDwZoyLuBFuozcARddm+WLmaHnjIqIuvfm5/MCMnkmnLb0/12Q+LOcW77CP+Dcr8ZDzR4ZxkixphgaYJQ== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR04MB544: X-MS-Office365-Filtering-Correlation-Id: da43aa7e-c838-4014-a6db-08d4b8086897 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:DM2PR04MB544; X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB544; 3:wLIqodVNU2hzjyFbrmnhWI1U2ZHwCvy/AEhz7l/Dsf6Kttx9mn31HZh6TuuMRL1Rko43ZJ/NHx8h57NLEJ/qntkFR3A3mVlex4Z1glHgVOB70Bg69qnIOVAuaIQXJjhf3XKwKUgLb4q78VWq0pEbWNOdmcAxRwn/Nm76zuRpJk7Nbpyn3LafTdRhZ9pdY/SvNvIYzvZMQlPHA9EEvPenqw8JMKHIWso93QjW9oo0r3pKBF1SDn30vaeoYHpNC6jMTdddaNPboedvahPJIlPwgqDQ17vJJ8W71+vKY5Wba2q4vwMPFgR69c9OSdTXG482r87phe2C80TgnBXTweMVZnif8HdpER57Qs/E4+VbiOdwFhpfQbI11kym2BieJeWJ0pJ8MBCsITkfU9hMXDhADowgDugMsX+CYuIE50RY5uiV3/BL25pufwvzJCbq7Sa7FtjWuUrCyigdh8AF9Zopuq/KZ9qy8cnp9qU1lF1Pocc= X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB544; 25:qs+K5TMS6ostmMLN9kC6mTMiNWrpgSbaHKiMXn2DsaqC+JeEIglL5KofkCRij5DuGvpe+rIafPQFvKr5CLdROq97BbudAutx/J1bJlLzIaOJ8+LBlngd7E3Lr7+S6/mOq3s/Y5DXyxf+vIlqZ31InMs8S37m/EpOrTivF2wcDIC8q5s/+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/3JZh2Rso5GTtARfVBRZ9M4VxS+LT6HHN12xD0nVtZnFBxnm6EKx8fz4Q/i7ovNFB4JI/3Si8VcoPZswkS3cv5/GsnuSZdKMHMFPWgfxvZJeAA9Xx+jA0Bg00snPPPvIGC82uVmtzt3qknIJ6GmoJsYVV0v0RXwkBMnUbrYYu3k8jPULcqGs7bE8zb0vmU/s2lg9fxVPMaTseZrgsyoKf2+sQIzEil3iUZ1lwwX44gaJNBKfok0uzhirMWfGtcg9PjK2m2wBW25oaDvcup6kD4/GApfeMgBsWZVaIWMiwCm8vLHEQVwqTOwhaPgMf1vXt1jXDKf+NJpLPfxY5UZUkkfAAqtjgE6t5OylhsytuMUg5FyOMPFtLnHbWR6cH0xvoghkGkqOCLPubho5kPCH4znLiWmYgtX/fpM+zSGO9fjvY7AIFxB0MdADTWJXaw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB544; 20:OlA8O5XUPgTX6CKGmQoXanZJLSAcm15fN9qR9By8pTkxcF0iN/FC4aQtJFC53revvkWssLopjYwdhzdFkkC0mQtNn0EvySZF8vjYuU9M7e8b3Ej5BiEpCsP2UGdp+l1tmTAwXwNkblbagXs7PihPlW6tLXlhtXFxpSsHZWtcjZA/WuieMxRCPeen+9VSlEKY3+oz95NTfBG9QlNRNQEVruTb8hzaeqLZfAoLdvI9BAXkeRH5EjL9BzjH9cBVCR5utxPXeGxb4AM/78GuQKVPKezRbQ5ThP3TfrCE6KY8MtMZzkcgboAs1NssJfbm525IIdv4dsEuhbvcHKVJqDY2+ek7ptoFW0c3ixyvsfBbdYSL2uW4Ub8BNCkjH9kgJM0rTNl6CsAnffXiQuNZYzCjMbLGTYZmjX7Pmh27xvc97QBBMANwyr29IzyNqgAQnC5k1kADsf9+qtoKd9MIycQmJYpmLIT6fA7nYBhGESPG5zREWfzw7FZJbf7I629w2X4U 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)(13018025)(13016025)(8121501046)(5005006)(93006095)(93003095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123558100)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR04MB544; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR04MB544; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR04MB544; 4:4PszjUUhG7IBSZmo5B0n+CjZV4zv8NJaeveyZsNP1TZ?= =?us-ascii?Q?EVoU40xUUgBvmLr0qtPqmnWGYLtFAU+FRxlvvDcbCPKR+VtWoWwV9t9B7mZ1?= =?us-ascii?Q?jwVA0FIAPXPzDF61+fhA8n3XcRQJDZvE4DzhQcJ/sssQOs/wmgi4D2NoL09E?= =?us-ascii?Q?FrlAJjdiX/4rkPYFqZaHll8+p8MquLOpIzm2JC/tsgVD1T4wTD2f+Gkil1HH?= =?us-ascii?Q?Wj0PuAOJW0MzcYElw0qLivWn9MvsGvSvmBwRG7rPJaMW6S3g9GSSfcaPWrSr?= =?us-ascii?Q?5FolKUSN0uoIsbQ8r95VvV9hrM860CQ4ZLPhx9VCKroeaxO516TLm/H5T6WE?= =?us-ascii?Q?B2ZYpRP1cIg4GZPNENbfHN5mpq7/DjhCLLVpu8KbwnsV6eQolydUvf+aP5nx?= =?us-ascii?Q?FgAEaIdRHLLx5ug2A3Y5alM7W4u7VZ/ptqHwLPG3RsvHvYwmynIiwB6+Kjs4?= =?us-ascii?Q?oWJ1V0s6RFxP/PtscLYFNXaxbu1xbLUh8vNHKVHSYXbhTY/Yn52URNrFTduo?= =?us-ascii?Q?u3121Ius/eZAZ16AmGA8PC6CxH772+vzqJDwPv9D9DU62ldUtg8OGnD2Gqv/?= =?us-ascii?Q?UFa3Ll2YjLPR8ALxt6pv2lM+W1luD6wc5sX3jaCSOql9XplLs1JfIU5mCdVs?= =?us-ascii?Q?UkDODoCPzAJCVsQfRVoxGIwEAV7Z9Bu5c0vzhVsz8tsGh/hvqrzebAYmhNX4?= =?us-ascii?Q?1g2+R/cHvKcOC0Y+3hnC0O0GtyA4k+hBulRIqAuifIP6Ry/pixdtrlSjv2yd?= =?us-ascii?Q?JiXHA/vGuUUrlDvzskJp3PxitBplKtV23CYA6ouaoJYdlNE3a50PLK4Qs4UE?= =?us-ascii?Q?5YCWZd9ER1x53pAlpUSXPbAszmZ36aA8DOF0yYVYEGZ1uUQNWZE6Qd4UMK90?= =?us-ascii?Q?OevvmFfpYyJPi9MH8y9NKTF7MLeKDpuOjRsrG5SL390z/WfVqByKVEGcI8KY?= =?us-ascii?Q?FBx5FweFwKPqn8mY5z1q1SfBPFq2TbfxAOofGY6WfiY5xK4SlDfEg+EO+Dr4?= =?us-ascii?Q?thXkC/ALnYdPbTKGQe/QafBIZe5TqrHk8CI7KHBVF1zOYaznAP9/iD+6n6mj?= =?us-ascii?Q?plrw8BD/tTJ8C4vaWflPJdxpVbBXsGHPeZIwsA11c3I4OtX1O0kVSvnQqcGf?= =?us-ascii?Q?5Vze61IBqaVEtuXNR368uGP8FIAqAui7yf1rM+AySc7c7mmEO36UA6jdYxHo?= =?us-ascii?Q?Fqq6PpkVPkh4HaVXxNFIGmUdgYpq6q6wm3/9b03XUUmidzHNtOgZCOBp/Sfn?= =?us-ascii?Q?eCD7H6GyxioCCm0dVvIicIeQEEJyyIG1ocwlnK71vA35WawYtFT6EXsMWZg?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 03449D5DD1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR04MB544; 23:UHJKYvLSu8pa+Mu4vvyL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u2neDAdSqXB4XIAA/GQb71D5wFmXoMw7fnad4CWFO/9eY9IX2Syf0?= =?us-ascii?Q?CzjYlMceWo6/jBMDggVACj20A+XFOl7PNaZBYnAYEVslbf4kQVY4YkBxvd/2?= =?us-ascii?Q?dvFM0S+E9nJhf0Tr0WmvFU+izopy+um3EjX8y0KgW3/6L6yIt2P/obw31NR2?= =?us-ascii?Q?IALRLm6x5xhsOGHevj+c+X0foOq4stBWZwnj2rcjH1FLXs93TNWTo94Mh+ZT?= =?us-ascii?Q?p3KM5/rnprEoVJHzM8He2WpbRipieSMQzYQE9AQTRnzVDN0HhvtA=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR04MB544; 6:/lZFJwJobO+1wcJHqnx0fhNJKptfMRlXwzmttA9ef3v?= =?us-ascii?Q?+N7jVkoq71ibFawW9+smRcCV7JMti2kmvr0ec/dXWQcaAZwXqwtwXyRi/iyt?= =?us-ascii?Q?ZvvJIRVCNOr4mbf4cEUMEmUs9rIkurr5gOAU82tD/9zCtoFt4ZkT2NbhTWD7?= =?us-ascii?Q?NlIVmCmpG9mOlXEihUeeIvyeryPvevjPU9K61InGObpng64Lq0iLYcRNPOa4?= =?us-ascii?Q?dRaLi+eIcD+rFZChpd5znOvYPes9pUQGm6id97TKN4qM8WnVcZ/ZHAMVYI+N?= =?us-ascii?Q?tn94bjWLQrFLd/bGRyZH/usL2WXEH45aZuYiFAUd8C05YS9xln3X1KnAmZKL?= =?us-ascii?Q?dp0/fZwD6Kf99CGJ5lK826cxnHZb8Okbh5gwrNFDlHWrOLSppvyxAVtTtH8v?= =?us-ascii?Q?is7kopJ9CzvVnAJSTKVyl3+qGYxVe3tVVdeKbrV1Tq7ErziLHw1OVCD5G/3m?= =?us-ascii?Q?w+xMWt1R5NCTBs9gxCfF0BTxHazLjfCP+s+kYRvzNGwsdGrE6BavEnN0u+zL?= =?us-ascii?Q?gb2vqrnL0okZ1I4mQ6HiZUOjB0hyR3le+60p+Zgx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iB5ENwUSAnwYouuTnXYTGv4MEDygF+FohcQ; 24:qORFcabTMOc69mTVrRWLDB1YaO975jROqeV014qRnBdF1X64eVjBeZIL+4TKMnOknL0rPj/SiFS1PcgN55rJF54HDwGhiI2+/BzhHsm2ir0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB544; 7:2Yp4mhzsiN/+8s9wxvvZyhllyufZmjazb8si9LRJZrTUpHwRCFBcRHEq6wlm/qlwD1LXozD1YS/TLMbTXGsDDgwqixxtQ8RRwz9M26nQc4WXqw2+ArpmRcfKGgfxHV4n6JUpiiiVo5CB7PbJdEmcUv6csBZ1wQUhpU948DXxADS5V9atgI6uexWf5IsJv6Z99EVt94Afk+vkH0WbXeVej40RES06kpRPP/KyC0AWycbfK40g7jrz8xQFKdGKnbRKQwoFJTRXbmeiH6rJ3CDZ4Z+Anq8laKN406o7+0t0CvcVsoSjeg3Nhq2VMjxR/+bzFSUDuyG3ncx1+/W0aJIe94cwAYmmwHOzrb6bCmQuL8En9BDcntWDBXAhfuaHpNaE9V0M1O2n1Hige/v2kttGhX0yo/fjOhYLrZth8aCSDdfLc2jdR9OYXeehYGELX7n3Ql5ChG3ou3b+weWptATZo0PcrPvOGL/T7Ji7yYOIYl+NzIwK40ojr57/1tsd4Hvvc82AdQCeCN3SvEP9apxsYvv+beMyjpHIezIup3wGV+ExLU90h9EgFZouUyA2GUfW/k4RAG3sHCNM3EVgWA/mknfGkWB6X22qnZS21HEInlSL+/NqwkFQZiOPmYdhLCpnrP8Zti+bTeR5qattbdBbsOIzlVogXZafnxI8/Hp3z560CCPBjhSqEYqixzEx2R9LAIxqW+Zt/YuHXPPgE1TqX0eUZ8uaOvn5/jGub0UKVP1rZHssKfmYs2WDd/GdzE9xfDR/IcUT7Ut8UuDL/GnSxxgJFyfWsIkkYuPhh/gCZpM= X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB544; 20:wIybUMevaqeX4oMRKXs8ODCDYnAAhYWIleQKzsg0ScEbt3qZkdGqYRje4Xa2GTOaU6UUATzO3rP1ydgKXZ8Zrm/6T36EIAcuWdE1HvWWCB1P7mC5skgpN1uXhS+NROlC1w5YAtRHQoS4XSvX7+2IHMEvTiq8wCFsS6IzBxXzei8= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2017 18:16:01.3538 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR04MB544 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,