Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755275AbbK0V10 (ORCPT ); Fri, 27 Nov 2015 16:27:26 -0500 Received: from mailrelay119.isp.belgacom.be ([195.238.20.146]:27588 "EHLO mailrelay119.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755220AbbK0V1F (ORCPT ); Fri, 27 Nov 2015 16:27:05 -0500 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CAAgCCyVhW/6YUtFtegmlSgUK8BYIaAQ2BZIYJBAICgT45FAEBAQEBAQGBCoQ1AQEEViMQUTkeGYgyAbJyig4BAQgjhlSJJn+EEgWWV404jzGNMB8BAUKEBT00hAiBSgEBAQ From: Fabian Frederick To: linux-kernel@vger.kernel.org Cc: Philipp Reisner , Fabian Frederick , Lars Ellenberg , drbd-dev@lists.linbit.com Subject: [PATCH 01/21] drbd: debugfs: constify drbd_version_fops Date: Fri, 27 Nov 2015 22:26:06 +0100 Message-Id: <1448659575-13485-2-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1448659575-13485-1-git-send-email-fabf@skynet.be> References: <1448659575-13485-1-git-send-email-fabf@skynet.be> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 988 Lines: 28 drbd_version_fops is used in debugfs_create_file() as const Signed-off-by: Fabian Frederick --- drivers/block/drbd/drbd_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/drbd/drbd_debugfs.c b/drivers/block/drbd/drbd_debugfs.c index 96a0107..abccffa 100644 --- a/drivers/block/drbd/drbd_debugfs.c +++ b/drivers/block/drbd/drbd_debugfs.c @@ -908,7 +908,7 @@ static int drbd_version_open(struct inode *inode, struct file *file) return single_open(file, drbd_version_show, NULL); } -static struct file_operations drbd_version_fops = { +static const struct file_operations drbd_version_fops = { .owner = THIS_MODULE, .open = drbd_version_open, .llseek = seq_lseek, -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/