linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [vfs:work.open3 37/44] fs/pipe.c:764:23: error: 'path' undeclared
@ 2018-07-11 21:41 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-07-11 21:41 UTC (permalink / raw)
  To: Al Viro; +Cc: kbuild-all, linux-fsdevel

[-- Attachment #1: Type: text/plain, Size: 3495 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.open3
head:   c94be0673577f7373cf67bba317cef2db9094530
commit: 335331bef622bd232800d50c85b54056fa02d808 [37/44] create_pipe_files(): switch the first allocation to alloc_file_pseudo()
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout 335331bef622bd232800d50c85b54056fa02d808
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: the vfs/work.open3 HEAD c94be0673577f7373cf67bba317cef2db9094530 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   fs/pipe.c: In function 'create_pipe_files':
>> fs/pipe.c:764:23: error: 'path' undeclared (first use in this function)
     res[0] = alloc_file(&path, O_RDONLY | (flags & O_NONBLOCK),
                          ^~~~
   fs/pipe.c:764:23: note: each undeclared identifier is reported only once for each function it appears in

vim +/path +764 fs/pipe.c

^1da177e Linus Torvalds 2005-04-16  744  
e4fad8e5 Al Viro        2012-07-21  745  int create_pipe_files(struct file **res, int flags)
^1da177e Linus Torvalds 2005-04-16  746  {
e4fad8e5 Al Viro        2012-07-21  747  	struct inode *inode = get_pipe_inode();
d6cbd281 Andi Kleen     2006-09-30  748  	struct file *f;
^1da177e Linus Torvalds 2005-04-16  749  
^1da177e Linus Torvalds 2005-04-16  750  	if (!inode)
e4fad8e5 Al Viro        2012-07-21  751  		return -ENFILE;
^1da177e Linus Torvalds 2005-04-16  752  
335331be Al Viro        2018-06-09  753  	f = alloc_file_pseudo(inode, pipe_mnt, "",
335331be Al Viro        2018-06-09  754  				O_WRONLY | (flags & (O_NONBLOCK | O_DIRECT)),
12ec508a Al Viro        2018-07-11  755  				&pipefifo_fops);
e9bb1f9b Eric Biggers   2015-10-17  756  	if (IS_ERR(f)) {
335331be Al Viro        2018-06-09  757  		free_pipe_info(inode->i_pipe);
335331be Al Viro        2018-06-09  758  		iput(inode);
335331be Al Viro        2018-06-09  759  		return PTR_ERR(f);
e9bb1f9b Eric Biggers   2015-10-17  760  	}
341b446b Ingo Molnar    2006-04-11  761  
de32ec4c Al Viro        2013-03-21  762  	f->private_data = inode->i_pipe;
^1da177e Linus Torvalds 2005-04-16  763  
12ec508a Al Viro        2018-07-11 @764  	res[0] = alloc_file(&path, O_RDONLY | (flags & O_NONBLOCK),
12ec508a Al Viro        2018-07-11  765  			&pipefifo_fops);
e9bb1f9b Eric Biggers   2015-10-17  766  	if (IS_ERR(res[0])) {
b10a4a9f Al Viro        2018-07-09  767  		put_pipe_info(inode, inode->i_pipe);
b10a4a9f Al Viro        2018-07-09  768  		fput(f);
b10a4a9f Al Viro        2018-07-09  769  		return PTR_ERR(res[0]);
e9bb1f9b Eric Biggers   2015-10-17  770  	}
e4fad8e5 Al Viro        2012-07-21  771  
335331be Al Viro        2018-06-09  772  	path_get(&f->f_path);
de32ec4c Al Viro        2013-03-21  773  	res[0]->private_data = inode->i_pipe;
e4fad8e5 Al Viro        2012-07-21  774  	res[1] = f;
e4fad8e5 Al Viro        2012-07-21  775  	return 0;
d6cbd281 Andi Kleen     2006-09-30  776  }
d6cbd281 Andi Kleen     2006-09-30  777  

:::::: The code at line 764 was first introduced by commit
:::::: 12ec508a2586dcb99a9ec383b1b98057acb9fc02 alloc_file(): switch to passing O_... flags instead of FMODE_... mode

:::::: TO: Al Viro <viro@zeniv.linux.org.uk>
:::::: CC: Al Viro <viro@zeniv.linux.org.uk>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 6370 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-11 21:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-11 21:41 [vfs:work.open3 37/44] fs/pipe.c:764:23: error: 'path' undeclared kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).