Message ID | 20170525184327.23570-19-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> 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 97AC260209 for <patchwork-linux-block@patchwork.kernel.org>; Thu, 25 May 2017 18:44:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E5BB269DA for <patchwork-linux-block@patchwork.kernel.org>; Thu, 25 May 2017 18:44:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 833022836F; Thu, 25 May 2017 18:44:01 +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 F3205269DA for <patchwork-linux-block@patchwork.kernel.org>; Thu, 25 May 2017 18:44:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969147AbdEYSoA (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Thu, 25 May 2017 14:44:00 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:52996 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1036487AbdEYSnm (ORCPT <rfc822;linux-block@vger.kernel.org>); Thu, 25 May 2017 14:43:42 -0400 X-IronPort-AV: E=Sophos;i="5.38,393,1491235200"; d="scan'208";a="21570886" Received: from mail-sn1nam01lp0115.outbound.protection.outlook.com (HELO NAM01-SN1-obe.outbound.protection.outlook.com) ([207.46.163.115]) by ob1.hgst.iphmx.com with ESMTP; 26 May 2017 02:43:36 +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=V9VaxNCq6JrkGNkYEb8wU1dRUXdQFwvZT8rvsc5g9Go=; b=N6srKLwU6iSR2eMpYZ3jc6gGu6HIed7lYuzZa1k5OhyryvLL5oCva8Vqz8KoNoQQrnjLJNGYOpbvAdsxLX/vPErLdZ/EMwZIlamJUQJyFnsDWCAHei/xrjzUR6ZYKS/qsxJ9RLJxywG7dLZJ1FPqJudhVbzAGWxzhJL+VAWPQrk= Received: from MWHPR04CA0080.namprd04.prod.outlook.com (10.174.173.21) by BN6PR04MB0354.namprd04.prod.outlook.com (10.173.198.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Thu, 25 May 2017 18:43:34 +0000 Received: from CO1NAM04FT046.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::208) by MWHPR04CA0080.outlook.office365.com (2603:10b6:301:3a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Thu, 25 May 2017 18:43:33 +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 CO1NAM04FT046.mail.protection.outlook.com (10.152.91.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Thu, 25 May 2017 18:43:33 +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 B8.BC.45291.4D527295; Thu, 25 May 2017 11:43:32 -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; Thu, 25 May 2017 11:43:28 -0700 X-AuditID: 0ac94369-166ac9800001b0eb-1a-592725d4f91d Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 40.F8.11415.0D527295; Thu, 25 May 2017 11:43:28 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Jens Axboe <axboe@kernel.dk> CC: <linux-block@vger.kernel.org>, Christoph Hellwig <hch@lst.de>, "Bart Van Assche" <bart.vanassche@sandisk.com>, Hannes Reinecke <hare@suse.com>, "Omar Sandoval" <osandov@fb.com>, Ming Lei <ming.lei@redhat.com> Subject: [PATCH 18/19] block: Constify disk_type Date: Thu, 25 May 2017 11:43:26 -0700 Message-ID: <20170525184327.23570-19-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170525184327.23570-1-bart.vanassche@sandisk.com> References: <20170525184327.23570-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOLMWRmVeSWpSXmKPExsXCddJ5ke4VVfVIgwsnTS1W3+1ns1jwZi+b xcrVR5ks9t7Stjg0uZnJ4vC9qywObB4Tm9+xe1w+W+qx+2YDm8f7fVfZPNZvucri8XmTXABb FJdNSmpOZllqkb5dAlfGjZWv2Qq2c1R8PXuOqYHxB1sXIyeHhICJROPLGcxdjFwcQgJLmSQW 397FAuFsY5SYM+UBM0z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9Q3NP3q8OrK t81Pdr3VfxZ1sSNw8ftAb96N092sYgoydxlKhLq9XD/hvVHipxXBEqYMzUXpZxKOa9p0fspe s/+01C8xF+Puh/u/T2lv3q3EUpyRaKjFXFScCADZOCMFyQEAAA== MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39410400002)(39840400002)(39400400002)(39450400003)(39850400002)(39860400002)(2980300002)(438002)(199003)(189002)(9170700003)(86362001)(47776003)(110136004)(5003940100001)(305945005)(6916009)(76176999)(2950100002)(50466002)(48376002)(189998001)(50986999)(53936002)(72206003)(1076002)(38730400002)(54906002)(36756003)(5660300001)(356003)(8676002)(2906002)(106466001)(77096006)(81166006)(4326008)(50226002)(478600001)(33646002)(8936002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR04MB0354; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT046; 1:4RV6ktiyCbhIyqWbjENz2y2iETN6ce13nT8KWt5hhvCNe+0CqjayKjzO7JmNkeb6t6nF9atjeCueEmS3grCHwgDoCYfY8WpmHm3c8nmhSzzTejkmQxp6HnKJdA+V3YCKTW27Zhepz6ESYWbGZCviI+DkVPVaBmnxhc4Qm6wCb0VZt0KBwX7S40NFSl/VZwk5BjK8fh5lXGPLzQhZogwJ8wctU+kWOPKV5eXmWPOL0/gsmVFzPAmnFEZ1hkuEODa0GFzlKzhmh6RjzIr7CqE24qGgwGiW7oY2mi3mAHkedMwwbluATKGGlxXhtdw5C8rhaUJAJV5xHJ7EBpvfeXQh2bryJ3rbnPcNm7rkNohYVHwZhubq7tuH/Agz+aj3J0DGCg+1TneVh6ucTtD9+JTiGiqZTUV1TRS0EXPwkb6hoPN8E3oLTzswYNIIhkPGGEvXj9d26ag72wLjX3NLRZ0asfLpwDNebEZAx4wseuiw7pLFB2whSbaSH4OWN9E5uf8h X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN6PR04MB0354: X-MS-Office365-Filtering-Correlation-Id: 7c3f402e-75ee-400c-f756-08d4a39df273 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN6PR04MB0354; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 3:EC80BSQfRAbCkjNyEnQ7I4yNR6GPKdExVA6/eub9H3KXPr8KOaCicPYvmsM1Jcj8/qbXQeZkTiLsJNQHr0EiH2aldgXl4YQeIYb2xS8FoUH8eNL5pI6tN/p+6UmhUzJwfj8IaI1RMWEqS/555t+bjrgH9jLmJ1FrfSX+4YcRy3Rbx+p8bBV+1bBB914TzAI0PFc/CItznGM7l9rCpDiN+YpKbydnsQuzdBEFquYu6uP29jGtkCKHvBbRzTsTW0uEDZTJkIneEXUkYaLv7iSEXy1M/XSxukb58jW+t0nHOY9ucSVtOIVxSHHPmdvFTg5oANzmXS0hLfCggHMdHKkoNjxGnhAGzB6RXaRlKoIRXYYB3Ddk4uK58daBsXvRXqbcEhxWOfZEOb7OKcmvZUo71EdOX1Dv37wVt6eK9o9t2bXEvfs36/tuU0auzndHDjP/IGV37+CP0hxpVOiZNkAMYUTEFjlYVYtPTYA94u/5Glc3pW8yRZ4MdDko9ex4mL2k X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 25:MDibrXTPIFYJkklRjdncwhOOnhrszv6bhlSURwcFQzo7ONNLdKcaSrcj5iweW/VwJZ4UsH77+ey5aOQox2MsQoiNP3Faw26bxdOaIvLBhVfZPWeQFzqkJUdznjBQfqodKh4YZ4uPA0TFL59zmUOrknvo3ZRXfnEVZTKnq59g/7Mf25I6GI4HEIhFWTd2ORoS7GB0+C8rZsy8YMevZbuseDb60jxpRtgJTmr8Fg2+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WDoRES301NC96LvEVO/ySiYaY4tgQz4hmkPdlm3WYGSxFGgph5WFRkWMINt/u2 X-Microsoft-Antispam-PRVS: <BN6PR04MB0354BAEFAE792376ED32D08E81FF0@BN6PR04MB0354.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(6072148); SRVR:BN6PR04MB0354; BCL:0; PCL:0; RULEID:; SRVR:BN6PR04MB0354; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 4:UzHzqCeH614uM6aAjsm3wNw6ECNJEKvpgWlNT9J285n4VU7Hj0F5mSIKms/pRZxm1FaCF1tlxajqb7KjeyY0vP+dVoUBrdB0qQHoHHhxs6WuK0+waq9UGoXCwkIIp0MTP8wj20Ey+xE6KQhxzjKDQOc6uA2uf4bVpUvWtNHwALRVd/Df8WjX7qO4ovDWNaY8r+O84MrQ4qvGUniSLlcSSPgbLgMNHTYwZrWcs9nTdfm8NIGK7xJsJcxVY95wAWARA96vFhCpmt4RVLilCn/RzFhSGETxPbAei6nD4qjJHBmL1ZBoAG5E4JKtLMU3WskkJEKXYPqzCRbQ1XrgizXVhfrCvqGOIYWROBfPLuxuy1lHDOBhUFMNYNJyAGIhyYNPvbpZrqFr7+c+fXu8/fOfOpFZh25ndMS+CuiZMTD3KjFyD0PsmqVcHA8eWwcYsBDWp56x7oAHph5TgZ36WqxJNeaFlMiKWhQHgFcc95xEj8AHZtA0BR39W0IXpkyy405Q0FBFttEOm+BQwR6q/7tIUWIpiL1FQwXLpM18ugWGn2U5qdT40gNxt79MWfx+sYCrI20xPUllY1cEyuiR99UIrDQXOKAvUhosfhsMvr6EaEZ1P4Qptv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bXkLyLIs2tQHf5K/t+YL/HpwsY415mhQ6gIDPPXU7SPvdD9gDJjCkSaHE7vAgCYq2++Kbkt1QWvMtBdx9NuiOVEOoMa8goYd3JdVWW0qA98VCJaQqR9h5AzdBqDCtsYWkPwKGYHXJjEhLBPE7KyS55I/akA5XDMkGVLJBak5rnmAwz47qKA=; 5:X+FpNFCbzVOPKUqovTfr0BDitOuJRAHxLUG3djFjNpGhBpjP48QSTEgPtLrgY3QH1sUFauQO++rcPZps0HCdFA8e19mNvUYqRK+A5g+WGf3TCDh1rDsweCxrsB+LlsscjI9nBSRh0w/eKfBoN5Hbd+k4J9ya97kXLXWcKvffSRw=; 24:Ext0wKPudChSAouHr539SzCaCCZh7nS3ir5QeSROpzuaCasswlXogy3Uj8/GjngJdKairBu2BmVEmqd7oqehjPAII5NBgCOhJGTCTmJwwTU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0354; 7:n8ETSWvP9G3FndWStE8p/yXFVQ39s7695oC7uNbqO/EjbSdEun9IEkbB97QY7Mf7e5pQwpTNAi0rvELncVe8U5rI6ra3cMrQZd5lX8V95WnqvybgaV4UudJ9WvDpGqnTdY2UcoWrnYMKhjSsEf1tGcPkPY+V45jSVlrN2vuDWNoNs23GM1Fe/PqVGIOJQGEnoAc+EvNydjoDRAUoPQJkaQEJBfPbkHIEEG1/MEIW7RBhz1cHqG+k0DEW9bheb44wT+BasYMEVAQP1tIrDwofn77lacJUfLbRk+o0PBP6d3Kdi0tFtZhYiMW+sZuPm5qy83rOBfrgkMcZMcL3sYjagg==; 20:Ixx/ZHE6CeiT8sl0h1mtOfBlP+I3uJSS8WBXiQfB3hSrgkIwak8oMyn+jWuslSBO6l+bv5oOemIjD+jdqD3xW5N6G+aNMbVeFmAot56wLOEGG+RXAI68fbA92wUGeT0bSuQQ+Wb94KqV6Qj+IX15SjcGE7YWA/gU361t+9t9Zog= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2017 18:43:33.5211 (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: BN6PR04MB0354 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Looks fine,
Reviewed-by: Christoph Hellwig <hch@lst.de>
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,
The variable 'disk_type' is never modified so constify it. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.com> Cc: Omar Sandoval <osandov@fb.com> Cc: Ming Lei <ming.lei@redhat.com> --- block/genhd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)