blob: 481c0f0ab4bd2c3aaa788247f3f5743c138ad90a [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001// SPDX-License-Identifier: GPL-2.0-or-later
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/* 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)
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00006 */
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,
18 .llseek = noop_llseek,
19};