···155155 * @mode: the mode with which the new file will be opened156156 * @fop: the 'struct file_operations' for the new file157157 */158158-struct file *alloc_file(struct path *path, fmode_t mode,158158+struct file *alloc_file(const struct path *path, fmode_t mode,159159 const struct file_operations *fop)160160{161161 struct file *file;