From patchwork Wed May 31 22:52:44 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: 9758467 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 4CE7260360 for ; Wed, 31 May 2017 22:53:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E02C2766D for ; Wed, 31 May 2017 22:53:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32B76284D2; Wed, 31 May 2017 22:53:02 +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 B16192766D for ; Wed, 31 May 2017 22:53:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751151AbdEaWxB (ORCPT ); Wed, 31 May 2017 18:53:01 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:46591 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751108AbdEaWw7 (ORCPT ); Wed, 31 May 2017 18:52:59 -0400 X-IronPort-AV: E=Sophos;i="5.39,276,1493654400"; d="scan'208";a="21798241" Received: from mail-co1nam03lp0017.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([216.32.181.17]) by ob1.hgst.iphmx.com with ESMTP; 01 Jun 2017 06:52:58 +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=jBgkbQZOG5NaqCYWGC4Oy5aojtY8apr/v5z2WH4SWXVdX9DratS0PFprELLDH5IY/sBwgTuPBs4EVT4NlXXHRRw5bZZexQwbxQ+oFnXbR8Hsk7UEHQoOpcheOvxF1dkHLI6nk3KZA3TEJ9JTUIut7PYm4+dBcjAYxcLMp4EGACY= Received: from MWHPR04CA0034.namprd04.prod.outlook.com (10.172.163.20) by DM5PR04MB0395.namprd04.prod.outlook.com (10.173.169.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 22:52:55 +0000 Received: from SN1NAM04FT025.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::209) by MWHPR04CA0034.outlook.office365.com (2603:10b6:300:ee::20) 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; Wed, 31 May 2017 22:52:55 +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 SN1NAM04FT025.mail.protection.outlook.com (10.152.88.103) 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; Wed, 31 May 2017 22:52:54 +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 D0.05.51736.5494F295; Wed, 31 May 2017 15:52:54 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Wed, 31 May 2017 15:52:50 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-a4-592f4945dfb0 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id EF.1F.18148.1494F295; Wed, 31 May 2017 15:52:49 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Hannes Reinecke , "Omar Sandoval" , Ming Lei Subject: [PATCH v2 10/12] block: Constify disk_type Date: Wed, 31 May 2017 15:52:44 -0700 Message-ID: <20170531225246.26261-11-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170531225246.26261-1-bart.vanassche@sandisk.com> References: <20170531225246.26261-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsXCddJ5ka6bp36kweVjLBar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSvj6ofgggMcFT/bpjA2MDaydzFyckgImEh09r5i62Lk4hASWMokse7U TihnG6PEil2HWWCqruw4xASR2Mwo0btiM1iCTcBI4tv7mWC2iICCRM/vlWDdzAJXGCXWXv7O BpIQFjCWOD5hP5jNIqAqcff2a1YQm1fAQWLNvs/MEBvkJc5u2QlmcwLFV28/AXafkIC9xKYj j8GGSggsYpXY1fyIEaJZUOLkzCdgm5kFJCQOvnjBDNGgLnFyyXymCYxCs5CUzUJStoCRaRWj WG5mTnFuemqBoalecWJeSmZxtl5yfu4mRkgEZO5gvPvE+xCjAAejEg+vwEW9SCHWxLLiytxD jBIczEoivL5q+pFCvCmJlVWpRfnxRaU5qcWHGKU5WJTEec/JTI0QEkhPLEnNTk0tSC2CyTJx cEo1MOpG7ObjDf2QXHief+mVpdN3npTRL7K2ahP4861FeV+M18NLK7oajp9W1NIJVduy6rff 7tyIK9/XK8dPeXe17ZKGZFnusRnXVDbK2Of/d6jeuOYTy6bXctOvW3SwfOO5s3uPhvznB3ed b+Q0XNp6x+yX8qvFK3lC1M7cWnbww33ld1N/Z3M4TetWYinOSDTUYi4qTgQAPwTmI3wCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrBJMWRmVeSWpSXmKPExsXCtZEjRdfRUz/SYPcUWYvVd/vZLA7+bGO0 WPBmL5vFytVHmSz23tK2ODS5mcni8L2rLA7sHhOb37F7XD5b6rH7ZgObx/t9V9k8pq05z+Sx fstVFo/Pm+QC2KO4bFJSczLLUov07RK4Mq5+CC44wFHxs20KYwNjI3sXIyeHhICJxJUdh5i6 GLk4hAQ2Mko8+HSBESTBJmAk8e39TBYQW0RAQaLn90o2kCJmgRuMEnemTGUDSQgLGEscn7Af zGYRUJW4e/s1K4jNK+AgsazhCSvEBnmJs1t2MoPYnEDx1dtPgG0WErCX2HTkMdsERu4FjAyr GMVyM3OKc9MzCwyN9IoT81Iyi7P1kvNzNzGCw4Yzagfj9YnmhxiZODilGhh1f8rsiTE6mcDD 9zwsO75hT0Li94ymck0+lWVqCebXTgmmvnttwBH5Vdf5gurhFZtE92zxOvRGLebytCqDNOeT dw7G/s7U27XhfqRe/8fSG0r/PibPTal3+M+xcb0tm5KH6+q664kSFnqX7mbWSx/oetwUv0Fd kU9b+4P29sknpA/0fPx2Tl2JpTgj0VCLuag4EQC1k/O5ywEAAA== MIME-Version: 1.0 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)(39850400002)(39860400002)(39410400002)(39450400003)(39840400002)(39400400002)(2980300002)(438002)(9170700003)(8936002)(8676002)(2950100002)(6666003)(5660300001)(50986999)(47776003)(76176999)(6916009)(50226002)(81166006)(86362001)(54906002)(356003)(1076002)(53936002)(2906002)(5003940100001)(110136004)(38730400002)(77096006)(305945005)(48376002)(33646002)(72206003)(478600001)(106466001)(189998001)(36756003)(4326008)(50466002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0395; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT025; 1:MUIt8Wj5zpBScp2StOj9QG0Enn5T8Scu4sK8OBMUzc14JleM9Y2srjLSu4UhKqCWKXRv6Sr90s5gWpRlhY+jvE8AXI9konv8rMuwauUsWvOL7MbmgUy5xd7+ivJkPnLOT8cWk12EyrGixBgpxCOxRnBehxDN5ZkOF7shEHcq2yV9LuzDT+0l+S7669/7uQUDG8kWBm1LvXzOos1G6S279dKlc2xsScsl1+879osq5MX/SJ2M8Op3S2EXIlNg81EXgt079mfDE8jEBJTtUfAd5o2p5dG+7Be+UF5OK0vh4lkY6viFcVbRuM2FYzBEKJCQd67JhUd0y7kMHtIEbbFVyztG3hmTbZrOkfMcN5ohpD5v6sXo+o2ZpYtf6FsAF04PW4l1nnIj3tiWAagjmtbNOj8z8wpUfveRTYPuWpcip3PraPmVVYdvk+WSkBM5gExlEgcp2imoqyzMMo008yTY8UsELAZWVTsEOQtiXkdOyzUtuU3/8wknxmBEVyzBDihP X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0395: X-MS-Office365-Filtering-Correlation-Id: 990302f8-7915-4143-2577-08d4a877c6a8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5P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JWIEPCXyIw=; 31:Lrnx7oora8dWLZswvhc8IkAeNFLLjS46EyzntL17zlflEbJiNMgWW398Q797chilGWmnWKuKyQiW4ZchSuVjorbdALabpl8/fVmswW0lm/x0SAlGEvErxCNAmwVFLvTGr4BavekA5LVj1MoqHkUn76jyzxALnVJkAp4L+6biAt4/mErq/4x+sthtTeZTNThf30vPogrSJDm3rJlxtM8zuafwmtISKn1et8a4nHSsJK0IJuV7/MwwHdR3G70RyzZb4B+eVq59SxI98LmemHNkvw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0395; 20:9kFPaL8n6Ir38gGBcIwrVM+08RhS/FY4yr290b0h7Ag7bElpRC5qoBRCaen3Rj2jajJksNrohFg4KRRzTXaSiajkeSBBrxIPr+UvnmB7scsoLVfc3+fpqrAnKA6lDOLQojwY8VY2k/EB41HxErXKQVFJPcsf1eNYUJqAy82sgwArwLNrQD3tGjtFolrw1Pmi7mXGQI/IJaavh+eopFXLmu21wl7nhPXauUZpSTtzWLdxZwFnRFLsFCs5I1bdx6IycqMxG0kKHS3LO5cTvZPGwgKH93IglbVF1p9jJEqJQhEPxC4U5FiKhT9vJUka84cpLGqRTz+bTHu2utQyG74yGV9oFEFgGZau+cKIOczc24/ctnhfb9WpiiiNcHdYcBDVkDjbTeuOBkFz+uPSTniV7t740fJBG6/+Iy7TQI9Vd2q82bq6K6Ouu3282YImrf4tZFgBpF8Tzi7sT7YIhDEDXPMCsHd2oHBmm0Ojl2dhrYhU67Q6LEv3jc45X9xo5lLK X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(6072148); SRVR:DM5PR04MB0395; BCL:0; PCL:0; RULEID:; SRVR:DM5PR04MB0395; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0395; 4:W/d7rTYys+f/GQvhvVeG96lRG1FGcuMVO4QAMn+j8CVyt4vvhDVdDjU9aU/C2rquPkVWFnI2YM6cNYbBNGPNym1KUwuRtQi1xilleUosLDh48DPblossXNoZxGT3K42xes7/7h1EYKNxGqUTmWii6dbNEPixNLEIMQpa3Co4VpeXEcB/N98jkzptCAPqYYqhAWwz8h9IEbuyeYk0BdRC3Qo27M3XGw975e0ppc1UN7U+jGNpA/ybmoxwYhkZhOCji2cQ+4ftImQFy8r51Q62zNe/2r8UE+JK3u5O/5XsIhTQalZ3b2XHHilQ8h7Mj30r19p+Pr9BPUdh8Awn14cJj6XOYLhNFnSggujC1wzkyFgCgmRj+rvQ9133M5Xj892kpNvQ0RBbbXg022MPA2lZfkLdO0c7vM9+ch/A09M1zDLFDmPGu8L09fH86K62eVQCJvvFMU2WXOACDUoU0n40nBjcmaXAZy+dxSdUmUmRid2ZgQMneTFDsdh6ByViIo1K54D+R5diuOgE51V/kAsmXXZVviJbGxBLF+mXZVrHEd89vukz8WbS1tPPfClij4ZSP5I0tM3JWdADP1y/+x5+rAxpsjb4IJayNAejqVBIkGd+5rNk+KSWbhnRpkbVMkBacZCh8TcxNN8ZwzZhue1qCzEJNuKN1xeIg5whVDVrtbCODxuyE+PGt+ty9QZU3OcN5OAxX1E5O2PT6azO4v4E9XaUwNZJH+yJiWknbeDWzCPs3JfNzOn0XnlKevOjBz0lDWeyhVbVIl4b6JJjUNATqNFW7Ksi8WjxEfz2igCEj05FwijO41WXl2QHdBdXwDgiUpLVT6Cg83UdRq9F2lQt9KSYtk1Qq4FY3w81QiSqATlCcPBFIzwsOBObNktC23OszKN807brjLZLmhXASokoX6WDeg2i/jyQYqceBUSJ0f M= X-Forefront-PRVS: 0324C2C0E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM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10JGtC6wnQqJpJ0cUlCjQVI74CV50KEvv4/7dRscSbOhlvEofbWOisobIkW/T7k= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0395; 7:020Gh37Olrh7eu/oxcw10dxgpQpBAr1qXeyJHbcL/pS+Y5JwBW+PSwavMO7+q9RO+j9yAhg9nSeWbgq53ceuv1K1hCIq8zitncRFGkeayCgZ5Rpz/N+GEwJG9E07n2CHHcpY0bMDHOHr1qeMhIEP8t2GrBBdxiSTvDKtdsHFfAGA9LCHnhqjTbbRy9Owj24qZrVtCAaJWG7GHWeIQblzGc8sv3/GfDPp6t1ETlvsGw1TdTDMBXvYLGOIgHeunxF2D8Yl3V7gntLP+Npp/gWohCvuWYD5XN5mPNFiATvynDSPs1o2fi9H4qn8v/ID/YkKzP2iWujDmdTTzcLfzvwQRw==; 20:80n2NE54oRQqvYR0H6WK7rk61yOLnLrCrY6wQtetd8K4nByXQFBItvBwAO+BKKfXDGtw9BCf7MbPZ4AeC+T5819QBxrDjh79SkhmPhlfGCe7ISfKpOoA/FaWRjdTJpQo4rGQ9jafdWkhlTOQUosG2ZgvmBSno6FB9aXEvfbUM48= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 22:52:54.8096 (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: DM5PR04MB0395 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,