1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-or-later 2*4882a593Smuzhiyun /* no-block.c: implementation of routines required for non-BLOCK configuration 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. 5*4882a593Smuzhiyun * Written by David Howells (dhowells@redhat.com) 6*4882a593Smuzhiyun */ 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun #include <linux/kernel.h> 9*4882a593Smuzhiyun #include <linux/fs.h> 10*4882a593Smuzhiyun no_blkdev_open(struct inode * inode,struct file * filp)11*4882a593Smuzhiyunstatic int no_blkdev_open(struct inode * inode, struct file * filp) 12*4882a593Smuzhiyun { 13*4882a593Smuzhiyun return -ENODEV; 14*4882a593Smuzhiyun } 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun const struct file_operations def_blk_fops = { 17*4882a593Smuzhiyun .open = no_blkdev_open, 18*4882a593Smuzhiyun .llseek = noop_llseek, 19*4882a593Smuzhiyun }; 20