From patchwork Thu Jun 8 17:33:54 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: 9776159 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 2E0AF603B4 for ; Thu, 8 Jun 2017 17:34:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16BC02521E for ; Thu, 8 Jun 2017 17:34:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0BBF626E4D; Thu, 8 Jun 2017 17:34:35 +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 6714B28390 for ; Thu, 8 Jun 2017 17:34:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751428AbdFHReQ (ORCPT ); Thu, 8 Jun 2017 13:34:16 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:16400 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751501AbdFHReH (ORCPT ); Thu, 8 Jun 2017 13:34:07 -0400 X-IronPort-AV: E=Sophos;i="5.39,315,1493654400"; d="scan'208";a="120985533" Received: from mail-bl2nam02lp0080.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([207.46.163.80]) by ob1.hgst.iphmx.com with ESMTP; 09 Jun 2017 01:50:23 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=gX6i2GDYNXmIi4rZvEg4xOU0e4vm+36uwZIfj/YpHNY=; b=T1forStRLjvT/zlNstWVK27wmomQPjo4p7I2odS7P9kGncSFE3Wq0b+zfpXVa1DyM5bB5dgHrfhQbfvMUn3Z9We2aMzfi9G2eMn7lWTdQaI2nqBAtMX/LQlLvzFARxf/ifY50ubYFYEkYlZRdpWifbxTm9SKNgpsLk4+NFiRaLE= Received: from DM5PR04CA0066.namprd04.prod.outlook.com (10.172.183.156) by DM5PR04MB0410.namprd04.prod.outlook.com (10.173.169.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Thu, 8 Jun 2017 17:34:05 +0000 Received: from BN3NAM04FT023.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::204) by DM5PR04CA0066.outlook.office365.com (2603:10b6:3:ef::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Thu, 8 Jun 2017 17:34:05 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 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 BN3NAM04FT023.mail.protection.outlook.com (10.152.92.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1143.11 via Frontend Transport; Thu, 8 Jun 2017 17:34:04 +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 E1.69.51736.A8A89395; Thu, 8 Jun 2017 10:34:02 -0700 (PDT) Received: from milsmgip12.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; Thu, 8 Jun 2017 10:33:59 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-15-59398a8ada0e Received: from exp-402881.sandisk.com.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 6D.E7.18148.68A89395; Thu, 8 Jun 2017 10:33:59 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Hannes Reinecke , "Omar Sandoval" , Ming Lei Subject: [PATCH v3 11/12] block: Constify disk_type Date: Thu, 8 Jun 2017 10:33:54 -0700 Message-ID: <20170608173355.25898-12-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170608173355.25898-1-bart.vanassche@sandisk.com> References: <20170608173355.25898-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsXCddJ5kW5Xl2WkwZP5Bhar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSvj6ofgggMcFT/bpjA2MDaydzFyckgImEjM/tPA0sXIxSEksJRJ4u7z F6wQzlZGiU37u4GqOMCqtp4sg4gvZ5RYtPg8WDebgJHEt/czWUBsEQEFiZ7fK9lAipgFrjBK rL38nQ0kISxgLLGwYSYriM0ioCJx/cQ7sGZeAQeJiS+nsECcIS9xdstOZhCbEyh+becSsF4h AXuJvQ3fwYZKCCxilViy+DFUs6DEyZlPwJqZ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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)(39450400003)(39410400002)(39840400002)(39400400002)(39860400002)(39850400002)(2980300002)(438002)(189002)(199003)(9170700003)(2950100002)(38730400002)(6916009)(54906002)(48376002)(47776003)(478600001)(5003940100001)(110136004)(86362001)(77096006)(36756003)(50226002)(8676002)(72206003)(8936002)(53936002)(33646002)(6666003)(356003)(305945005)(189998001)(81166006)(5660300001)(4326008)(1076002)(2906002)(76176999)(50986999); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0410; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT023; 1:J7R9Iou91iU/VWzSnoVZJVIatW9HXGb5mEe1kzkaJhskB1EpkVa9WxMde8Ibqs3MaDY9n0eqdYdokLWeOVarRpg3vt+tfpP6KuvxC7PuoVKCRAZpm+B3HONohicXnb5ue3ao262fuav39qxP+FIa9I9HuozKsKdIYhn+WYEmdrCa+1MvgSa5bel8EoOhudshhqde+RIYvPoWQtggsxh8eplyuVPrbG4EfEOz8WElZQmj3zCF7yy63kBAm1ezwULdpzJ3vkTcYnQ/Pxn4u+wtx5jWWsq5SseCQcNe+0KD6BfCXJsbeDxP0uugJChDND4NmvKqrUXzYBv0dm/84X4zs40uV2aQ4cuRRiRXFRn0kauyW+nWX3K0WBCz58cDrUZT+WAKikwDQozgRBB/Ji13kZZqZadUCScPwhIZMgyA69CrEWqFt6udfbnUn+osyz/dUDIJH9DIDaQLRAe6XfsKYYfhqSAnK5eVD6sqA5A1BW4ZXdG3zovbCU3XC51LJuTViRchCIMMLQoMDriZ1sqAXQ== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0410: X-MS-Office365-Filtering-Correlation-Id: 54f283fc-7341-47a6-0383-08d4ae948f7e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0410; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0410; 3:D8ILvJx1U3QeP2tm8zWUGp7JiFY9eBDpjplyef3MPgijJ/b4VYiM0cZeKMwwV8/FYQnlHms8khwHfhFEzzV5c7Nurm0BPUDFMDm+pv7TIlDJyecO3Vo4M7hpZIHHq/m+F3kgEIdK/Uod2TuqQlWUuj+C+dD8PBm/Hk/GCMMKDYmqDuSXgujBGrtqsv2UwqOIz6WL91fcBQtYmiHD3qhkrQe/zjA6QtC4GB/7dETOFxTr1AvgoTt7joNVgC6JaqTdYO/ZSVX1nJKeXSde4cRQ3Cp+kSoSNOz3SXIgdpF6UIgf4dPtB/yw2hnSvslDHwGZUHQqlwV7Kno886SmwUK8PmHnkr7YW5OpDwNq1VKgSO1i5Qjc2/93pOSn5CcQguofBQv0Ldwza3X3zoZyhg8yuJV9zZCN6VVIZ1Ptox7fSe5BBG/XvswaKCQKbng1qxSiw78qApUDBLJULk3rzgQhNUOnzaOfDWposhRwnKsKtj+LxjXdy5hTFJAh2bocqp7w X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0410; 25:fi/V5sdtYMfV2Sq10dKoAfq9K0MKsKDIXitQ8eSDHTvHqb+eyE+wGlPqYKFapKbeW5OavnZBiLI3GZQ5eSyc35M6vj8BV9UP7QVMpxcB5UN2zmwxWidl4wOfAkFrXZfCnHPqhHgYPyIMl6fQxUlDNI00YVqacjb6MEjkUbR8pv3CzEZ2HktijKqzh+B3Hcg5eWdQ9R0TDuVV0nmXrfXyE4LCh9qN/gvpLpdKGD0L/7qNTXiUI/DCCsODCVi6L4QI+4Gm4zcvdbvlp2EX+t7xbwEE0ElYKA16A66dSKchehBIsB44908sP8LuvFunSDN2LpxULbxfpmbbykRZT1wIZoXt3PYyza4QsjFJgunbD7G1t5t8GRMt6Qty9F6RVyPlQt/jzods5xUtlaBmqFI0lp6i0sxioicI1nlW8icZU+On+ib/umurAswL4k5e43CYYyOusDmQAXfivUGBeVMdYkj7AGsPEJFl22tVGfZMkr4=; 31:hlxNNTAQQW9oxgM5ruSIljfpdhj3Sx1uUl7MSP9jyrh8q3Ch7P6ZZp4H3zIhrTz9q3Q8Dq7tVMuTF0QmBcLLpLR6y8+l5okh7D8NrpDzxL5FYz0sEB67MS4UcG/oAt7j4iRbXAWoNVwg1v/d3QBRLIQM3Y0jM0CeBojuMwmEu9aONPMo29YAQ2dQDofAUoBAE6Mhr6YfeTQBdOI9uMfaDZoILxOEJwAxQ5otnDQuwoTJHepLUTG4NC63+M6R3ew0iu6BOpXBwCUE1/GQUUDbMw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0410; 20:g2UtY+uwCQ/jZOvjEDywUoaLwFIA+DeyDhUJoOGsikyYLuewMiOT2xagjDVTJIZ99VlEgqN4oyxM+TUew1Bs/+s7iuHLpwusZAhnRjqVXVG2bmKASCTQ7H72lZ9OEthmh+pulbE1BMgdDrKyDA22Layg/yHiAnUhpuHSxd2Hzg43m8kcsHivIFSNJU/8pqwgutwD3N8nODyp3opw+JIBbtswFXRPLwpjXWvPbZ1xMVrY3oSy+Awn4WHL80+GWnL9shdVFcA4/xKH0uKQHiZc4KiiQzHNZA4PDsiXristkGbDyPX1vtRWe5HFDjAAHcr6bQfRIsBQyhFKlojsAmB/4RnjUaGeyW0r7fBQrvgx4hby3ptlmYO2sbNwUeTVtrwO1jq2PjiQOKh97anA80LzeDFYxIllFk9/nj8EFV7dBihiWWVt4TRMs8IQHgQ3U3oH2r7kPwzjeslUHVBbElH4Fj2/SDU7koS5doeN2ROmJTncza8Bjb5DGJt/6Pxseu4n 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)(8121501046)(5005006)(13018025)(13016025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93004095)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR04MB0410; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR04MB0410; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0410; 4:MqQaJW15Oqxr+sbyxdekchdc9c1/tmgO2T7FXXqahX?= =?us-ascii?Q?rKOWvS2YdpVrUbfQNjxo+hxTuEw4/rF1rEv1KBw9yw1Jt0tRRJwQiCQVoy7O?= =?us-ascii?Q?PssO8Ukx6GSwKPi2BeKTuTWhRBPF7ShPZitIwXVaKfUEYNPsbvuMea12Yxwt?= =?us-ascii?Q?Yr4qKGc1qweR/mrUXFmTqmWjMXfr8q7Gk09XtyP24FH2wXp9FoPfU9mz1rXu?= =?us-ascii?Q?/wRp7IqoDMrEO5tCPrnHwBJCGmK7EYTXXF3jFDfsG7GSd5kiZ1HoAVTzaDAo?= =?us-ascii?Q?wQXujItoityA2hxIYIn7scThDLdTpTVNnRRW6otbjb+K+4MIdpXUo38OSide?= =?us-ascii?Q?NMWT8O3E1p572cG99hCveUsUCSfaY+ffm/2yD7owUy7fYfQVAueIeOQGsclo?= =?us-ascii?Q?AJ4VuVji+g+PXnYCiaLcYsQNZEc3jb5KdxuPf2wuQQcCTqr+87rZQdZZirL+?= =?us-ascii?Q?w5/ohzmQT1zBNNBfLSKWyojFAS2pWIPis6QjQKqI9fBlv/O7LpJfWQODjSM7?= =?us-ascii?Q?R6KyOjbVdb+fSl9tU/kIFOZbacw0uq926lYGU+G2Kjrjm1dFZl/xEnvflnbq?= =?us-ascii?Q?UQXgIL/mIwtRz34IwQu3hmEBotiLZePiaDGtTVal/F4J+53AY/5RC5Onvoqu?= =?us-ascii?Q?nnc7twkNz9KaPaLjYP1/Xm+fJCPhEAxEiWBf0xC2ikXsVIPtJixobWzj6dpc?= =?us-ascii?Q?fUW94voB89YngiK9ouq+YV7MwGM+lC6DmrRWnvkeEbRLvsTpAphnaSJYrLPU?= =?us-ascii?Q?kKTrGTdKffwj96G0bXuXj3N3AEGcxTj485eZ+gBvUO+1gN3YZ4dao1WRf6bl?= =?us-ascii?Q?caWsrGDxvzFK/EVbA1qaxlAKEyalMrSRXP7ZF7wTD8db+hfuk9DKkrSMPFId?= =?us-ascii?Q?/3kQRb5WgJWH3a+05bUD4/RDZG8QAcIq0OSGrDu8KsAn/FTPF8QQmlzl2ZTK?= =?us-ascii?Q?74oHwmzXDOIbNAP9qKbaQEx4P0asWIH0HyR09gqnJbwoEj8fhhiJuiATpwEt?= =?us-ascii?Q?2XXpF0zECEBUYcWojBxA2O3RJZfuNNP06qSdAICa/7tv5p640nZOJSGXAkTA?= =?us-ascii?Q?rk8I3F/qpnKMsp08LVONqBlIPdd4hh4SUK3rMlU0Et6m/pVo68s3thovnmts?= =?us-ascii?Q?rNC+kVBCtX5HOs6k0z+IB0qbtRyMXxlSDpoVihgNQSdB0C3F8GcV5WM8IN7d?= =?us-ascii?Q?o4ZyrtQ+zObHz8Qm7chly0gRw+QAse02e8DzgXk3zcDWi/+IHvpeSvAPuEj6?= =?us-ascii?Q?0erJjwOwFDsD700a6cnBkteZriidUs5oijyRPF8JcPLzeJw5v6D2i+3UfcIg?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0332AACBC3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0410; 23:lIe3sOQZ+war4kLvCzprwGiglCi13ZO8PeLpIkqAb?= =?us-ascii?Q?UiHLi7CHluzxCGLY8WaalqGP2oZo1ujS8f28n6+SP38xrVBznRtcfEDv4j1d?=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wnsG9JUAEa6c1G23HgqTWl9WXETxkaZxxVIIKmqVpt10KKB1oUICKwrOp0Zpko3Jlpnx++H0njp/fgT+rlPVD8uSsQjKIYLuZQPXlMToNts36KsZZf+X7ThgAoch7aAruLdmtAsWnZy1Aa1iDQrSNzbeTRti6ICz3C0HZSQJ+cwfIR3Np04c8LG9gIXyu1r; 24:QAfuKH18JE/3noqr3py3RtxV5R0a+IXkXUNNlX+49yi0ePUafsEAS9c4AnNjdYqXV8Nj5iR3+zUDkYd7+AzZMXqKOU4qFamis8IjZ5jwcfg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0410; 7:gURk8Z73npn+zhkrdfUeItMBG25JnciLnw9EY4wwUEakjWqyU+zasAelpQof5gFN9QGIbjxXaNNlRWtidOFGC7qZGZS7dzedYQ7CAh9wNoVUgtNCq2izJu/zEj9JoAPJHK9dCAy2XQMt45KbmUKxabnmooOZj839X29qq9tjdSoc3K8YsfLbotHXQ2a1uYjVebNINzpd5HE3X4IVs/spsD4qiW97U3St81n1x7L+Nmy+52kFRIO8Rr8q6hs197x50UKUWiyB+GHmcM+PXK+3cZQ0ON2uUEnFEXeXP+GvtrskTbUQxHyesqc1akrrh5LKyV7zpbe+LFIbR/Qz0prBxg==; 20:O3LbJnRlwsfpmCt3iNCSkfl55lR2LvY+7Ne3pMRPN075aW4OPH/MipmdBCe1pgwl4TZOz9x44FGW5gTzJNrovPL7YO/MXFdb7OK4d6d91Pbq/ZMXGqmzGezBAwxQlJsIwrSoGnI7npZSjW3zw/rt0KMD/Tdt305f/lmJiW6Y/Qg= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2017 17:34:04.6094 (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: DM5PR04MB0410 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 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 --- 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,