Re: [PATCH] fcntl: allow to set O_DIRECT flag on pipe

From: kbuild test robot
Date: Tue Dec 15 2015 - 11:15:31 EST


Hi Stanislav,

[auto build test ERROR on v4.4-rc5]
[also build test ERROR on next-20151215]

url: https://github.com/0day-ci/linux/commits/Stanislav-Kinsburskiy/fcntl-allow-to-set-O_DIRECT-flag-on-pipe/20151216-000234
config: x86_64-randconfig-x011-12141150 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

fs/fcntl.c: In function 'setfl':
>> fs/fcntl.c:55:7: error: implicit declaration of function 'IS_FIFO' [-Werror=implicit-function-declaration]
if (!IS_FIFO(f->f_mode) && (arg & O_DIRECT)) {
^
>> fs/fcntl.c:55:15: error: 'f' undeclared (first use in this function)
if (!IS_FIFO(f->f_mode) && (arg & O_DIRECT)) {
^
fs/fcntl.c:55:15: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors

vim +/IS_FIFO +55 fs/fcntl.c

49 /* required for strict SunOS emulation */
50 if (O_NONBLOCK != O_NDELAY)
51 if (arg & O_NDELAY)
52 arg |= O_NONBLOCK;
53
54 /* Pipe packetized mode is controlled by O_DIRECT flag */
> 55 if (!IS_FIFO(f->f_mode) && (arg & O_DIRECT)) {
56 if (!filp->f_mapping || !filp->f_mapping->a_ops ||
57 !filp->f_mapping->a_ops->direct_IO)
58 return -EINVAL;

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

Attachment: .config.gz
Description: Binary data