18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later
28c2ecf20Sopenharmony_ci/* no-block.c: implementation of routines required for non-BLOCK configuration
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
58c2ecf20Sopenharmony_ci * Written by David Howells (dhowells@redhat.com)
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#include <linux/kernel.h>
98c2ecf20Sopenharmony_ci#include <linux/fs.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_cistatic int no_blkdev_open(struct inode * inode, struct file * filp)
128c2ecf20Sopenharmony_ci{
138c2ecf20Sopenharmony_ci	return -ENODEV;
148c2ecf20Sopenharmony_ci}
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciconst struct file_operations def_blk_fops = {
178c2ecf20Sopenharmony_ci	.open		= no_blkdev_open,
188c2ecf20Sopenharmony_ci	.llseek		= noop_llseek,
198c2ecf20Sopenharmony_ci};
20