blob: 481c0f0ab4bd2c3aaa788247f3f5743c138ad90a [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001// SPDX-License-Identifier: GPL-2.0-or-later
David Howells93614012006-09-30 20:45:40 +02002/* no-block.c: implementation of routines required for non-BLOCK configuration
3 *
4 * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
5 * Written by David Howells (dhowells@redhat.com)
David Howells93614012006-09-30 20:45:40 +02006 */
7
8#include <linux/kernel.h>
9#include <linux/fs.h>
10
11static int no_blkdev_open(struct inode * inode, struct file * filp)
12{
13 return -ENODEV;
14}
15
16const struct file_operations def_blk_fops = {
17 .open = no_blkdev_open,
Arnd Bergmann6038f372010-08-15 18:52:59 +020018 .llseek = noop_llseek,
David Howells93614012006-09-30 20:45:40 +020019};