lkml.org 
[lkml]   [2017]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] fs:orangefs:orangefs-debug, orangefs-kernel: Fixing warning issues and use ARRAY_SIZE
Hi Karim,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.11-rc7 next-20170420]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Karim-Eshapa/fs-orangefs-orangefs-debug-orangefs-kernel-Fixing-warning-issues-and-use-ARRAY_SIZE/20170420-221438
config: x86_64-randconfig-b0-04202140 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All error/warnings (new ones prefixed by >>):

In file included from fs/orangefs/orangefs-kernel.h:57,
from fs/orangefs/orangefs-debug.h:17,
from fs/orangefs/protocol.h:336,
from fs/orangefs/dcache.c:11:
fs/orangefs/protocol.h:22: error: redefinition of 'struct orangefs_khandle'
fs/orangefs/protocol.h:29: error: redefinition of 'struct orangefs_object_kref'
fs/orangefs/protocol.h:39: error: conflicting types for 'ORANGEFS_khandle_cmp'
fs/orangefs/protocol.h:39: note: previous definition of 'ORANGEFS_khandle_cmp' was here
fs/orangefs/protocol.h:54: error: conflicting types for 'ORANGEFS_khandle_to'
fs/orangefs/protocol.h:54: note: previous definition of 'ORANGEFS_khandle_to' was here
fs/orangefs/protocol.h:63: error: conflicting types for 'ORANGEFS_khandle_from'
fs/orangefs/protocol.h:63: note: previous definition of 'ORANGEFS_khandle_from' was here
>> fs/orangefs/protocol.h:72: error: redefinition of typedef 'ORANGEFS_uid'
fs/orangefs/protocol.h:72: note: previous declaration of 'ORANGEFS_uid' was here
>> fs/orangefs/protocol.h:73: error: redefinition of typedef 'ORANGEFS_gid'
fs/orangefs/protocol.h:73: note: previous declaration of 'ORANGEFS_gid' was here
>> fs/orangefs/protocol.h:74: error: redefinition of typedef 'ORANGEFS_fs_id'
fs/orangefs/protocol.h:74: note: previous declaration of 'ORANGEFS_fs_id' was here
>> fs/orangefs/protocol.h:75: error: redefinition of typedef 'ORANGEFS_permissions'
fs/orangefs/protocol.h:75: note: previous declaration of 'ORANGEFS_permissions' was here
>> fs/orangefs/protocol.h:76: error: redefinition of typedef 'ORANGEFS_time'
fs/orangefs/protocol.h:76: note: previous declaration of 'ORANGEFS_time' was here
>> fs/orangefs/protocol.h:77: error: redefinition of typedef 'ORANGEFS_size'
fs/orangefs/protocol.h:77: note: previous declaration of 'ORANGEFS_size' was here
>> fs/orangefs/protocol.h:78: error: redefinition of typedef 'ORANGEFS_flags'
fs/orangefs/protocol.h:78: note: previous declaration of 'ORANGEFS_flags' was here
>> fs/orangefs/protocol.h:79: error: redefinition of typedef 'ORANGEFS_ds_position'
fs/orangefs/protocol.h:79: note: previous declaration of 'ORANGEFS_ds_position' was here
>> fs/orangefs/protocol.h:80: error: redefinition of typedef 'ORANGEFS_error'
fs/orangefs/protocol.h:80: note: previous declaration of 'ORANGEFS_error' was here
>> fs/orangefs/protocol.h:81: error: redefinition of typedef 'ORANGEFS_offset'
fs/orangefs/protocol.h:81: note: previous declaration of 'ORANGEFS_offset' was here
fs/orangefs/protocol.h:216: error: nested redefinition of 'enum ORANGEFS_io_type'
fs/orangefs/protocol.h:216: error: redeclaration of 'enum ORANGEFS_io_type'
fs/orangefs/protocol.h:217: error: redeclaration of enumerator 'ORANGEFS_IO_READ'
fs/orangefs/protocol.h:217: note: previous definition of 'ORANGEFS_IO_READ' was here
fs/orangefs/protocol.h:219: error: redeclaration of enumerator 'ORANGEFS_IO_WRITE'
fs/orangefs/protocol.h:219: note: previous definition of 'ORANGEFS_IO_WRITE' was here
fs/orangefs/protocol.h:226: error: nested redefinition of 'enum orangefs_ds_type'
fs/orangefs/protocol.h:226: error: redeclaration of 'enum orangefs_ds_type'
fs/orangefs/protocol.h:227: error: redeclaration of enumerator 'ORANGEFS_TYPE_NONE'
fs/orangefs/protocol.h:227: note: previous definition of 'ORANGEFS_TYPE_NONE' was here
fs/orangefs/protocol.h:228: error: redeclaration of enumerator 'ORANGEFS_TYPE_METAFILE'
fs/orangefs/protocol.h:228: note: previous definition of 'ORANGEFS_TYPE_METAFILE' was here
fs/orangefs/protocol.h:229: error: redeclaration of enumerator 'ORANGEFS_TYPE_DATAFILE'
fs/orangefs/protocol.h:229: note: previous definition of 'ORANGEFS_TYPE_DATAFILE' was here
fs/orangefs/protocol.h:230: error: redeclaration of enumerator 'ORANGEFS_TYPE_DIRECTORY'
fs/orangefs/protocol.h:230: note: previous definition of 'ORANGEFS_TYPE_DIRECTORY' was here
fs/orangefs/protocol.h:231: error: redeclaration of enumerator 'ORANGEFS_TYPE_SYMLINK'
fs/orangefs/protocol.h:231: note: previous definition of 'ORANGEFS_TYPE_SYMLINK' was here
fs/orangefs/protocol.h:232: error: redeclaration of enumerator 'ORANGEFS_TYPE_DIRDATA'
fs/orangefs/protocol.h:232: note: previous definition of 'ORANGEFS_TYPE_DIRDATA' was here
fs/orangefs/protocol.h:234: error: redeclaration of enumerator 'ORANGEFS_TYPE_INTERNAL'
fs/orangefs/protocol.h:234: note: previous definition of 'ORANGEFS_TYPE_INTERNAL' was here
fs/orangefs/protocol.h:240: error: redefinition of 'struct ORANGEFS_certificate'
fs/orangefs/protocol.h:249: error: redefinition of 'struct ORANGEFS_credential'
fs/orangefs/protocol.h:266: error: redefinition of 'struct ORANGEFS_keyval_pair'
fs/orangefs/protocol.h:275: error: redefinition of 'struct ORANGEFS_sys_attr_s'
fs/orangefs/protocol.h:319: error: redefinition of 'struct dev_mask_info_s'
fs/orangefs/protocol.h:321: error: redeclaration of enumerator 'KERNEL_MASK'
fs/orangefs/protocol.h:321: note: previous definition of 'KERNEL_MASK' was here
fs/orangefs/protocol.h:322: error: redeclaration of enumerator 'CLIENT_MASK'
fs/orangefs/protocol.h:322: note: previous definition of 'CLIENT_MASK' was here
fs/orangefs/protocol.h:327: error: redefinition of 'struct dev_mask2_info_s'
In file included from fs/orangefs/orangefs-debug.h:17,
from fs/orangefs/protocol.h:336,
from fs/orangefs/dcache.c:11:
fs/orangefs/orangefs-kernel.h: In function 'is_root_handle':
fs/orangefs/orangefs-kernel.h:367: error: 'GOSSIP_DCACHE_DEBUG' undeclared (first use in this function)
fs/orangefs/orangefs-kernel.h:367: error: (Each undeclared identifier is reported only once
fs/orangefs/orangefs-kernel.h:367: error: for each function it appears in.)
fs/orangefs/orangefs-kernel.h: In function 'match_handle':
fs/orangefs/orangefs-kernel.h:383: error: 'GOSSIP_DCACHE_DEBUG' undeclared (first use in this function)
In file included from fs/orangefs/dcache.c:11:
fs/orangefs/protocol.h: At top level:
fs/orangefs/protocol.h:360: error: redeclaration of enumerator 'ORANGEFS_DEV_GET_MAGIC'
fs/orangefs/protocol.h:360: note: previous definition of 'ORANGEFS_DEV_GET_MAGIC' was here
fs/orangefs/protocol.h:362: error: redeclaration of enumerator 'ORANGEFS_DEV_GET_MAX_UPSIZE'
fs/orangefs/protocol.h:362: note: previous definition of 'ORANGEFS_DEV_GET_MAX_UPSIZE' was here
fs/orangefs/protocol.h:364: error: redeclaration of enumerator 'ORANGEFS_DEV_GET_MAX_DOWNSIZE'
fs/orangefs/protocol.h:364: note: previous definition of 'ORANGEFS_DEV_GET_MAX_DOWNSIZE' was here
fs/orangefs/protocol.h:365: error: redeclaration of enumerator 'ORANGEFS_DEV_MAP'
fs/orangefs/protocol.h:365: note: previous definition of 'ORANGEFS_DEV_MAP' was here
fs/orangefs/protocol.h:366: error: redeclaration of enumerator 'ORANGEFS_DEV_REMOUNT_ALL'
fs/orangefs/protocol.h:366: note: previous definition of 'ORANGEFS_DEV_REMOUNT_ALL' was here
fs/orangefs/protocol.h:367: error: redeclaration of enumerator 'ORANGEFS_DEV_DEBUG'
fs/orangefs/protocol.h:367: note: previous definition of 'ORANGEFS_DEV_DEBUG' was here
fs/orangefs/protocol.h:368: error: redeclaration of enumerator 'ORANGEFS_DEV_UPSTREAM'
fs/orangefs/protocol.h:368: note: previous definition of 'ORANGEFS_DEV_UPSTREAM' was here
fs/orangefs/protocol.h:369: error: redeclaration of enumerator 'ORANGEFS_DEV_CLIENT_MASK'
fs/orangefs/protocol.h:369: note: previous definition of 'ORANGEFS_DEV_CLIENT_MASK' was here
fs/orangefs/protocol.h:372: error: redeclaration of enumerator 'ORANGEFS_DEV_CLIENT_STRING'
fs/orangefs/protocol.h:372: note: previous definition of 'ORANGEFS_DEV_CLIENT_STRING' was here
fs/orangefs/protocol.h:375: error: redeclaration of enumerator 'ORANGEFS_DEV_MAXNR'
fs/orangefs/protocol.h:375: note: previous definition of 'ORANGEFS_DEV_MAXNR' was here
fs/orangefs/protocol.h:393: error: redefinition of 'struct ORANGEFS_dev_map_desc'
fs/orangefs/dcache.c: In function 'orangefs_revalidate_lookup':
fs/orangefs/dcache.c:32: error: incompatible types when assigning to type 'struct orangefs_object_kref' from type 'struct orangefs_object_kref'
fs/orangefs/dcache.c:56: error: incompatible type for argument 1 of 'match_handle'
fs/orangefs/orangefs-kernel.h:380: note: expected 'struct orangefs_khandle' but argument is of type 'struct orangefs_khandle'
--
In file included from fs/orangefs/orangefs-kernel.h:57,
from fs/orangefs/orangefs-debug.h:17,
from fs/orangefs/protocol.h:336,
from fs/orangefs/inode.c:12:
fs/orangefs/protocol.h:22: error: redefinition of 'struct orangefs_khandle'
fs/orangefs/protocol.h:29: error: redefinition of 'struct orangefs_object_kref'
fs/orangefs/protocol.h:39: error: conflicting types for 'ORANGEFS_khandle_cmp'
fs/orangefs/protocol.h:39: note: previous definition of 'ORANGEFS_khandle_cmp' was here
fs/orangefs/protocol.h:54: error: conflicting types for 'ORANGEFS_khandle_to'
fs/orangefs/protocol.h:54: note: previous definition of 'ORANGEFS_khandle_to' was here
fs/orangefs/protocol.h:63: error: conflicting types for 'ORANGEFS_khandle_from'
fs/orangefs/protocol.h:63: note: previous definition of 'ORANGEFS_khandle_from' was here
>> fs/orangefs/protocol.h:72: error: redefinition of typedef 'ORANGEFS_uid'
fs/orangefs/protocol.h:72: note: previous declaration of 'ORANGEFS_uid' was here
>> fs/orangefs/protocol.h:73: error: redefinition of typedef 'ORANGEFS_gid'
fs/orangefs/protocol.h:73: note: previous declaration of 'ORANGEFS_gid' was here
>> fs/orangefs/protocol.h:74: error: redefinition of typedef 'ORANGEFS_fs_id'
fs/orangefs/protocol.h:74: note: previous declaration of 'ORANGEFS_fs_id' was here
>> fs/orangefs/protocol.h:75: error: redefinition of typedef 'ORANGEFS_permissions'
fs/orangefs/protocol.h:75: note: previous declaration of 'ORANGEFS_permissions' was here
>> fs/orangefs/protocol.h:76: error: redefinition of typedef 'ORANGEFS_time'
fs/orangefs/protocol.h:76: note: previous declaration of 'ORANGEFS_time' was here
>> fs/orangefs/protocol.h:77: error: redefinition of typedef 'ORANGEFS_size'
fs/orangefs/protocol.h:77: note: previous declaration of 'ORANGEFS_size' was here
>> fs/orangefs/protocol.h:78: error: redefinition of typedef 'ORANGEFS_flags'
fs/orangefs/protocol.h:78: note: previous declaration of 'ORANGEFS_flags' was here
>> fs/orangefs/protocol.h:79: error: redefinition of typedef 'ORANGEFS_ds_position'
fs/orangefs/protocol.h:79: note: previous declaration of 'ORANGEFS_ds_position' was here
>> fs/orangefs/protocol.h:80: error: redefinition of typedef 'ORANGEFS_error'
fs/orangefs/protocol.h:80: note: previous declaration of 'ORANGEFS_error' was here
>> fs/orangefs/protocol.h:81: error: redefinition of typedef 'ORANGEFS_offset'
fs/orangefs/protocol.h:81: note: previous declaration of 'ORANGEFS_offset' was here
fs/orangefs/protocol.h:216: error: nested redefinition of 'enum ORANGEFS_io_type'
fs/orangefs/protocol.h:216: error: redeclaration of 'enum ORANGEFS_io_type'
fs/orangefs/protocol.h:217: error: redeclaration of enumerator 'ORANGEFS_IO_READ'
fs/orangefs/protocol.h:217: note: previous definition of 'ORANGEFS_IO_READ' was here
fs/orangefs/protocol.h:219: error: redeclaration of enumerator 'ORANGEFS_IO_WRITE'
fs/orangefs/protocol.h:219: note: previous definition of 'ORANGEFS_IO_WRITE' was here
fs/orangefs/protocol.h:226: error: nested redefinition of 'enum orangefs_ds_type'
fs/orangefs/protocol.h:226: error: redeclaration of 'enum orangefs_ds_type'
fs/orangefs/protocol.h:227: error: redeclaration of enumerator 'ORANGEFS_TYPE_NONE'
fs/orangefs/protocol.h:227: note: previous definition of 'ORANGEFS_TYPE_NONE' was here
fs/orangefs/protocol.h:228: error: redeclaration of enumerator 'ORANGEFS_TYPE_METAFILE'
fs/orangefs/protocol.h:228: note: previous definition of 'ORANGEFS_TYPE_METAFILE' was here
fs/orangefs/protocol.h:229: error: redeclaration of enumerator 'ORANGEFS_TYPE_DATAFILE'
fs/orangefs/protocol.h:229: note: previous definition of 'ORANGEFS_TYPE_DATAFILE' was here
fs/orangefs/protocol.h:230: error: redeclaration of enumerator 'ORANGEFS_TYPE_DIRECTORY'
fs/orangefs/protocol.h:230: note: previous definition of 'ORANGEFS_TYPE_DIRECTORY' was here
fs/orangefs/protocol.h:231: error: redeclaration of enumerator 'ORANGEFS_TYPE_SYMLINK'
fs/orangefs/protocol.h:231: note: previous definition of 'ORANGEFS_TYPE_SYMLINK' was here
fs/orangefs/protocol.h:232: error: redeclaration of enumerator 'ORANGEFS_TYPE_DIRDATA'
fs/orangefs/protocol.h:232: note: previous definition of 'ORANGEFS_TYPE_DIRDATA' was here
fs/orangefs/protocol.h:234: error: redeclaration of enumerator 'ORANGEFS_TYPE_INTERNAL'
fs/orangefs/protocol.h:234: note: previous definition of 'ORANGEFS_TYPE_INTERNAL' was here
fs/orangefs/protocol.h:240: error: redefinition of 'struct ORANGEFS_certificate'
fs/orangefs/protocol.h:249: error: redefinition of 'struct ORANGEFS_credential'
fs/orangefs/protocol.h:266: error: redefinition of 'struct ORANGEFS_keyval_pair'
fs/orangefs/protocol.h:275: error: redefinition of 'struct ORANGEFS_sys_attr_s'
fs/orangefs/protocol.h:319: error: redefinition of 'struct dev_mask_info_s'
fs/orangefs/protocol.h:321: error: redeclaration of enumerator 'KERNEL_MASK'
fs/orangefs/protocol.h:321: note: previous definition of 'KERNEL_MASK' was here
fs/orangefs/protocol.h:322: error: redeclaration of enumerator 'CLIENT_MASK'
fs/orangefs/protocol.h:322: note: previous definition of 'CLIENT_MASK' was here
fs/orangefs/protocol.h:327: error: redefinition of 'struct dev_mask2_info_s'
In file included from fs/orangefs/orangefs-debug.h:17,
from fs/orangefs/protocol.h:336,
from fs/orangefs/inode.c:12:
fs/orangefs/orangefs-kernel.h: In function 'is_root_handle':
fs/orangefs/orangefs-kernel.h:367: error: 'GOSSIP_DCACHE_DEBUG' undeclared (first use in this function)
fs/orangefs/orangefs-kernel.h:367: error: (Each undeclared identifier is reported only once
fs/orangefs/orangefs-kernel.h:367: error: for each function it appears in.)
fs/orangefs/orangefs-kernel.h: In function 'match_handle':
fs/orangefs/orangefs-kernel.h:383: error: 'GOSSIP_DCACHE_DEBUG' undeclared (first use in this function)
In file included from fs/orangefs/inode.c:12:
fs/orangefs/protocol.h: At top level:
fs/orangefs/protocol.h:360: error: redeclaration of enumerator 'ORANGEFS_DEV_GET_MAGIC'
fs/orangefs/protocol.h:360: note: previous definition of 'ORANGEFS_DEV_GET_MAGIC' was here
fs/orangefs/protocol.h:362: error: redeclaration of enumerator 'ORANGEFS_DEV_GET_MAX_UPSIZE'
fs/orangefs/protocol.h:362: note: previous definition of 'ORANGEFS_DEV_GET_MAX_UPSIZE' was here
fs/orangefs/protocol.h:364: error: redeclaration of enumerator 'ORANGEFS_DEV_GET_MAX_DOWNSIZE'
fs/orangefs/protocol.h:364: note: previous definition of 'ORANGEFS_DEV_GET_MAX_DOWNSIZE' was here
fs/orangefs/protocol.h:365: error: redeclaration of enumerator 'ORANGEFS_DEV_MAP'
fs/orangefs/protocol.h:365: note: previous definition of 'ORANGEFS_DEV_MAP' was here
fs/orangefs/protocol.h:366: error: redeclaration of enumerator 'ORANGEFS_DEV_REMOUNT_ALL'
fs/orangefs/protocol.h:366: note: previous definition of 'ORANGEFS_DEV_REMOUNT_ALL' was here
fs/orangefs/protocol.h:367: error: redeclaration of enumerator 'ORANGEFS_DEV_DEBUG'
fs/orangefs/protocol.h:367: note: previous definition of 'ORANGEFS_DEV_DEBUG' was here
fs/orangefs/protocol.h:368: error: redeclaration of enumerator 'ORANGEFS_DEV_UPSTREAM'
fs/orangefs/protocol.h:368: note: previous definition of 'ORANGEFS_DEV_UPSTREAM' was here
fs/orangefs/protocol.h:369: error: redeclaration of enumerator 'ORANGEFS_DEV_CLIENT_MASK'
fs/orangefs/protocol.h:369: note: previous definition of 'ORANGEFS_DEV_CLIENT_MASK' was here
fs/orangefs/protocol.h:372: error: redeclaration of enumerator 'ORANGEFS_DEV_CLIENT_STRING'
fs/orangefs/protocol.h:372: note: previous definition of 'ORANGEFS_DEV_CLIENT_STRING' was here
fs/orangefs/protocol.h:375: error: redeclaration of enumerator 'ORANGEFS_DEV_MAXNR'
fs/orangefs/protocol.h:375: note: previous definition of 'ORANGEFS_DEV_MAXNR' was here
fs/orangefs/protocol.h:393: error: redefinition of 'struct ORANGEFS_dev_map_desc'
fs/orangefs/inode.c: In function 'orangefs_setattr_size':
fs/orangefs/inode.c:180: error: incompatible types when assigning to type 'struct orangefs_object_kref' from type 'struct orangefs_object_kref'
--
In file included from fs/orangefs/orangefs-kernel.h:57,
from fs/orangefs/orangefs-debug.h:17,
from fs/orangefs/protocol.h:336,
from fs/orangefs/orangefs-sysfs.c:137:
fs/orangefs/protocol.h:22: error: redefinition of 'struct orangefs_khandle'
fs/orangefs/protocol.h:29: error: redefinition of 'struct orangefs_object_kref'
fs/orangefs/protocol.h:39: error: conflicting types for 'ORANGEFS_khandle_cmp'
fs/orangefs/protocol.h:39: note: previous definition of 'ORANGEFS_khandle_cmp' was here
fs/orangefs/protocol.h:54: error: conflicting types for 'ORANGEFS_khandle_to'
fs/orangefs/protocol.h:54: note: previous definition of 'ORANGEFS_khandle_to' was here
fs/orangefs/protocol.h:63: error: conflicting types for 'ORANGEFS_khandle_from'
fs/orangefs/protocol.h:63: note: previous definition of 'ORANGEFS_khandle_from' was here
>> fs/orangefs/protocol.h:72: error: redefinition of typedef 'ORANGEFS_uid'
fs/orangefs/protocol.h:72: note: previous declaration of 'ORANGEFS_uid' was here
>> fs/orangefs/protocol.h:73: error: redefinition of typedef 'ORANGEFS_gid'
fs/orangefs/protocol.h:73: note: previous declaration of 'ORANGEFS_gid' was here
>> fs/orangefs/protocol.h:74: error: redefinition of typedef 'ORANGEFS_fs_id'
fs/orangefs/protocol.h:74: note: previous declaration of 'ORANGEFS_fs_id' was here
>> fs/orangefs/protocol.h:75: error: redefinition of typedef 'ORANGEFS_permissions'
fs/orangefs/protocol.h:75: note: previous declaration of 'ORANGEFS_permissions' was here
>> fs/orangefs/protocol.h:76: error: redefinition of typedef 'ORANGEFS_time'
fs/orangefs/protocol.h:76: note: previous declaration of 'ORANGEFS_time' was here
>> fs/orangefs/protocol.h:77: error: redefinition of typedef 'ORANGEFS_size'
fs/orangefs/protocol.h:77: note: previous declaration of 'ORANGEFS_size' was here
>> fs/orangefs/protocol.h:78: error: redefinition of typedef 'ORANGEFS_flags'
fs/orangefs/protocol.h:78: note: previous declaration of 'ORANGEFS_flags' was here
>> fs/orangefs/protocol.h:79: error: redefinition of typedef 'ORANGEFS_ds_position'
fs/orangefs/protocol.h:79: note: previous declaration of 'ORANGEFS_ds_position' was here
>> fs/orangefs/protocol.h:80: error: redefinition of typedef 'ORANGEFS_error'
fs/orangefs/protocol.h:80: note: previous declaration of 'ORANGEFS_error' was here
>> fs/orangefs/protocol.h:81: error: redefinition of typedef 'ORANGEFS_offset'
fs/orangefs/protocol.h:81: note: previous declaration of 'ORANGEFS_offset' was here
fs/orangefs/protocol.h:216: error: nested redefinition of 'enum ORANGEFS_io_type'
fs/orangefs/protocol.h:216: error: redeclaration of 'enum ORANGEFS_io_type'
fs/orangefs/protocol.h:217: error: redeclaration of enumerator 'ORANGEFS_IO_READ'
fs/orangefs/protocol.h:217: note: previous definition of 'ORANGEFS_IO_READ' was here
fs/orangefs/protocol.h:219: error: redeclaration of enumerator 'ORANGEFS_IO_WRITE'
fs/orangefs/protocol.h:219: note: previous definition of 'ORANGEFS_IO_WRITE' was here
fs/orangefs/protocol.h:226: error: nested redefinition of 'enum orangefs_ds_type'
fs/orangefs/protocol.h:226: error: redeclaration of 'enum orangefs_ds_type'
fs/orangefs/protocol.h:227: error: redeclaration of enumerator 'ORANGEFS_TYPE_NONE'
fs/orangefs/protocol.h:227: note: previous definition of 'ORANGEFS_TYPE_NONE' was here
fs/orangefs/protocol.h:228: error: redeclaration of enumerator 'ORANGEFS_TYPE_METAFILE'
fs/orangefs/protocol.h:228: note: previous definition of 'ORANGEFS_TYPE_METAFILE' was here
fs/orangefs/protocol.h:229: error: redeclaration of enumerator 'ORANGEFS_TYPE_DATAFILE'
fs/orangefs/protocol.h:229: note: previous definition of 'ORANGEFS_TYPE_DATAFILE' was here
fs/orangefs/protocol.h:230: error: redeclaration of enumerator 'ORANGEFS_TYPE_DIRECTORY'
fs/orangefs/protocol.h:230: note: previous definition of 'ORANGEFS_TYPE_DIRECTORY' was here
fs/orangefs/protocol.h:231: error: redeclaration of enumerator 'ORANGEFS_TYPE_SYMLINK'
fs/orangefs/protocol.h:231: note: previous definition of 'ORANGEFS_TYPE_SYMLINK' was here
fs/orangefs/protocol.h:232: error: redeclaration of enumerator 'ORANGEFS_TYPE_DIRDATA'
fs/orangefs/protocol.h:232: note: previous definition of 'ORANGEFS_TYPE_DIRDATA' was here
fs/orangefs/protocol.h:234: error: redeclaration of enumerator 'ORANGEFS_TYPE_INTERNAL'
fs/orangefs/protocol.h:234: note: previous definition of 'ORANGEFS_TYPE_INTERNAL' was here
fs/orangefs/protocol.h:240: error: redefinition of 'struct ORANGEFS_certificate'
fs/orangefs/protocol.h:249: error: redefinition of 'struct ORANGEFS_credential'
fs/orangefs/protocol.h:266: error: redefinition of 'struct ORANGEFS_keyval_pair'
fs/orangefs/protocol.h:275: error: redefinition of 'struct ORANGEFS_sys_attr_s'
fs/orangefs/protocol.h:319: error: redefinition of 'struct dev_mask_info_s'
fs/orangefs/protocol.h:321: error: redeclaration of enumerator 'KERNEL_MASK'
fs/orangefs/protocol.h:321: note: previous definition of 'KERNEL_MASK' was here
fs/orangefs/protocol.h:322: error: redeclaration of enumerator 'CLIENT_MASK'
fs/orangefs/protocol.h:322: note: previous definition of 'CLIENT_MASK' was here
fs/orangefs/protocol.h:327: error: redefinition of 'struct dev_mask2_info_s'
In file included from fs/orangefs/orangefs-debug.h:17,
from fs/orangefs/protocol.h:336,
from fs/orangefs/orangefs-sysfs.c:137:
fs/orangefs/orangefs-kernel.h: In function 'is_root_handle':
fs/orangefs/orangefs-kernel.h:367: error: 'GOSSIP_DCACHE_DEBUG' undeclared (first use in this function)
fs/orangefs/orangefs-kernel.h:367: error: (Each undeclared identifier is reported only once
fs/orangefs/orangefs-kernel.h:367: error: for each function it appears in.)
fs/orangefs/orangefs-kernel.h: In function 'match_handle':
fs/orangefs/orangefs-kernel.h:383: error: 'GOSSIP_DCACHE_DEBUG' undeclared (first use in this function)
In file included from fs/orangefs/orangefs-sysfs.c:137:
fs/orangefs/protocol.h: At top level:
fs/orangefs/protocol.h:360: error: redeclaration of enumerator 'ORANGEFS_DEV_GET_MAGIC'
fs/orangefs/protocol.h:360: note: previous definition of 'ORANGEFS_DEV_GET_MAGIC' was here
fs/orangefs/protocol.h:362: error: redeclaration of enumerator 'ORANGEFS_DEV_GET_MAX_UPSIZE'
fs/orangefs/protocol.h:362: note: previous definition of 'ORANGEFS_DEV_GET_MAX_UPSIZE' was here
fs/orangefs/protocol.h:364: error: redeclaration of enumerator 'ORANGEFS_DEV_GET_MAX_DOWNSIZE'
fs/orangefs/protocol.h:364: note: previous definition of 'ORANGEFS_DEV_GET_MAX_DOWNSIZE' was here
fs/orangefs/protocol.h:365: error: redeclaration of enumerator 'ORANGEFS_DEV_MAP'
fs/orangefs/protocol.h:365: note: previous definition of 'ORANGEFS_DEV_MAP' was here
fs/orangefs/protocol.h:366: error: redeclaration of enumerator 'ORANGEFS_DEV_REMOUNT_ALL'
fs/orangefs/protocol.h:366: note: previous definition of 'ORANGEFS_DEV_REMOUNT_ALL' was here
fs/orangefs/protocol.h:367: error: redeclaration of enumerator 'ORANGEFS_DEV_DEBUG'
fs/orangefs/protocol.h:367: note: previous definition of 'ORANGEFS_DEV_DEBUG' was here
fs/orangefs/protocol.h:368: error: redeclaration of enumerator 'ORANGEFS_DEV_UPSTREAM'
fs/orangefs/protocol.h:368: note: previous definition of 'ORANGEFS_DEV_UPSTREAM' was here
fs/orangefs/protocol.h:369: error: redeclaration of enumerator 'ORANGEFS_DEV_CLIENT_MASK'
fs/orangefs/protocol.h:369: note: previous definition of 'ORANGEFS_DEV_CLIENT_MASK' was here
fs/orangefs/protocol.h:372: error: redeclaration of enumerator 'ORANGEFS_DEV_CLIENT_STRING'
fs/orangefs/protocol.h:372: note: previous definition of 'ORANGEFS_DEV_CLIENT_STRING' was here
fs/orangefs/protocol.h:375: error: redeclaration of enumerator 'ORANGEFS_DEV_MAXNR'
fs/orangefs/protocol.h:375: note: previous definition of 'ORANGEFS_DEV_MAXNR' was here
fs/orangefs/protocol.h:393: error: redefinition of 'struct ORANGEFS_dev_map_desc'
--
In file included from fs/orangefs/orangefs-kernel.h:57,
from fs/orangefs/orangefs-debug.h:17,
from fs/orangefs/protocol.h:336,
from fs/orangefs/file.c:11:
fs/orangefs/protocol.h:22: error: redefinition of 'struct orangefs_khandle'
fs/orangefs/protocol.h:29: error: redefinition of 'struct orangefs_object_kref'
fs/orangefs/protocol.h:39: error: conflicting types for 'ORANGEFS_khandle_cmp'
fs/orangefs/protocol.h:39: note: previous definition of 'ORANGEFS_khandle_cmp' was here
fs/orangefs/protocol.h:54: error: conflicting types for 'ORANGEFS_khandle_to'
fs/orangefs/protocol.h:54: note: previous definition of 'ORANGEFS_khandle_to' was here
fs/orangefs/protocol.h:63: error: conflicting types for 'ORANGEFS_khandle_from'
fs/orangefs/protocol.h:63: note: previous definition of 'ORANGEFS_khandle_from' was here
>> fs/orangefs/protocol.h:72: error: redefinition of typedef 'ORANGEFS_uid'
fs/orangefs/protocol.h:72: note: previous declaration of 'ORANGEFS_uid' was here
>> fs/orangefs/protocol.h:73: error: redefinition of typedef 'ORANGEFS_gid'
fs/orangefs/protocol.h:73: note: previous declaration of 'ORANGEFS_gid' was here
>> fs/orangefs/protocol.h:74: error: redefinition of typedef 'ORANGEFS_fs_id'
fs/orangefs/protocol.h:74: note: previous declaration of 'ORANGEFS_fs_id' was here
>> fs/orangefs/protocol.h:75: error: redefinition of typedef 'ORANGEFS_permissions'
fs/orangefs/protocol.h:75: note: previous declaration of 'ORANGEFS_permissions' was here
>> fs/orangefs/protocol.h:76: error: redefinition of typedef 'ORANGEFS_time'
fs/orangefs/protocol.h:76: note: previous declaration of 'ORANGEFS_time' was here
>> fs/orangefs/protocol.h:77: error: redefinition of typedef 'ORANGEFS_size'
fs/orangefs/protocol.h:77: note: previous declaration of 'ORANGEFS_size' was here
>> fs/orangefs/protocol.h:78: error: redefinition of typedef 'ORANGEFS_flags'
fs/orangefs/protocol.h:78: note: previous declaration of 'ORANGEFS_flags' was here
>> fs/orangefs/protocol.h:79: error: redefinition of typedef 'ORANGEFS_ds_position'
fs/orangefs/protocol.h:79: note: previous declaration of 'ORANGEFS_ds_position' was here
>> fs/orangefs/protocol.h:80: error: redefinition of typedef 'ORANGEFS_error'
fs/orangefs/protocol.h:80: note: previous declaration of 'ORANGEFS_error' was here
>> fs/orangefs/protocol.h:81: error: redefinition of typedef 'ORANGEFS_offset'
fs/orangefs/protocol.h:81: note: previous declaration of 'ORANGEFS_offset' was here
fs/orangefs/protocol.h:216: error: nested redefinition of 'enum ORANGEFS_io_type'
fs/orangefs/protocol.h:216: error: redeclaration of 'enum ORANGEFS_io_type'
fs/orangefs/protocol.h:217: error: redeclaration of enumerator 'ORANGEFS_IO_READ'
fs/orangefs/protocol.h:217: note: previous definition of 'ORANGEFS_IO_READ' was here
fs/orangefs/protocol.h:219: error: redeclaration of enumerator 'ORANGEFS_IO_WRITE'
fs/orangefs/protocol.h:219: note: previous definition of 'ORANGEFS_IO_WRITE' was here
fs/orangefs/protocol.h:226: error: nested redefinition of 'enum orangefs_ds_type'
fs/orangefs/protocol.h:226: error: redeclaration of 'enum orangefs_ds_type'
fs/orangefs/protocol.h:227: error: redeclaration of enumerator 'ORANGEFS_TYPE_NONE'
fs/orangefs/protocol.h:227: note: previous definition of 'ORANGEFS_TYPE_NONE' was here
fs/orangefs/protocol.h:228: error: redeclaration of enumerator 'ORANGEFS_TYPE_METAFILE'
fs/orangefs/protocol.h:228: note: previous definition of 'ORANGEFS_TYPE_METAFILE' was here
fs/orangefs/protocol.h:229: error: redeclaration of enumerator 'ORANGEFS_TYPE_DATAFILE'
fs/orangefs/protocol.h:229: note: previous definition of 'ORANGEFS_TYPE_DATAFILE' was here
fs/orangefs/protocol.h:230: error: redeclaration of enumerator 'ORANGEFS_TYPE_DIRECTORY'
fs/orangefs/protocol.h:230: note: previous definition of 'ORANGEFS_TYPE_DIRECTORY' was here
fs/orangefs/protocol.h:231: error: redeclaration of enumerator 'ORANGEFS_TYPE_SYMLINK'
fs/orangefs/protocol.h:231: note: previous definition of 'ORANGEFS_TYPE_SYMLINK' was here
fs/orangefs/protocol.h:232: error: redeclaration of enumerator 'ORANGEFS_TYPE_DIRDATA'
fs/orangefs/protocol.h:232: note: previous definition of 'ORANGEFS_TYPE_DIRDATA' was here
fs/orangefs/protocol.h:234: error: redeclaration of enumerator 'ORANGEFS_TYPE_INTERNAL'
fs/orangefs/protocol.h:234: note: previous definition of 'ORANGEFS_TYPE_INTERNAL' was here
fs/orangefs/protocol.h:240: error: redefinition of 'struct ORANGEFS_certificate'
fs/orangefs/protocol.h:249: error: redefinition of 'struct ORANGEFS_credential'
fs/orangefs/protocol.h:266: error: redefinition of 'struct ORANGEFS_keyval_pair'
fs/orangefs/protocol.h:275: error: redefinition of 'struct ORANGEFS_sys_attr_s'
fs/orangefs/protocol.h:319: error: redefinition of 'struct dev_mask_info_s'
fs/orangefs/protocol.h:321: error: redeclaration of enumerator 'KERNEL_MASK'
fs/orangefs/protocol.h:321: note: previous definition of 'KERNEL_MASK' was here
fs/orangefs/protocol.h:322: error: redeclaration of enumerator 'CLIENT_MASK'
fs/orangefs/protocol.h:322: note: previous definition of 'CLIENT_MASK' was here
fs/orangefs/protocol.h:327: error: redefinition of 'struct dev_mask2_info_s'
In file included from fs/orangefs/orangefs-debug.h:17,
from fs/orangefs/protocol.h:336,
from fs/orangefs/file.c:11:
fs/orangefs/orangefs-kernel.h: In function 'is_root_handle':
fs/orangefs/orangefs-kernel.h:367: error: 'GOSSIP_DCACHE_DEBUG' undeclared (first use in this function)
fs/orangefs/orangefs-kernel.h:367: error: (Each undeclared identifier is reported only once
fs/orangefs/orangefs-kernel.h:367: error: for each function it appears in.)
fs/orangefs/orangefs-kernel.h: In function 'match_handle':
fs/orangefs/orangefs-kernel.h:383: error: 'GOSSIP_DCACHE_DEBUG' undeclared (first use in this function)
In file included from fs/orangefs/file.c:11:
fs/orangefs/protocol.h: At top level:
fs/orangefs/protocol.h:360: error: redeclaration of enumerator 'ORANGEFS_DEV_GET_MAGIC'
fs/orangefs/protocol.h:360: note: previous definition of 'ORANGEFS_DEV_GET_MAGIC' was here
fs/orangefs/protocol.h:362: error: redeclaration of enumerator 'ORANGEFS_DEV_GET_MAX_UPSIZE'
fs/orangefs/protocol.h:362: note: previous definition of 'ORANGEFS_DEV_GET_MAX_UPSIZE' was here
fs/orangefs/protocol.h:364: error: redeclaration of enumerator 'ORANGEFS_DEV_GET_MAX_DOWNSIZE'
fs/orangefs/protocol.h:364: note: previous definition of 'ORANGEFS_DEV_GET_MAX_DOWNSIZE' was here
fs/orangefs/protocol.h:365: error: redeclaration of enumerator 'ORANGEFS_DEV_MAP'
fs/orangefs/protocol.h:365: note: previous definition of 'ORANGEFS_DEV_MAP' was here
fs/orangefs/protocol.h:366: error: redeclaration of enumerator 'ORANGEFS_DEV_REMOUNT_ALL'
fs/orangefs/protocol.h:366: note: previous definition of 'ORANGEFS_DEV_REMOUNT_ALL' was here
fs/orangefs/protocol.h:367: error: redeclaration of enumerator 'ORANGEFS_DEV_DEBUG'
fs/orangefs/protocol.h:367: note: previous definition of 'ORANGEFS_DEV_DEBUG' was here
fs/orangefs/protocol.h:368: error: redeclaration of enumerator 'ORANGEFS_DEV_UPSTREAM'
fs/orangefs/protocol.h:368: note: previous definition of 'ORANGEFS_DEV_UPSTREAM' was here
fs/orangefs/protocol.h:369: error: redeclaration of enumerator 'ORANGEFS_DEV_CLIENT_MASK'
fs/orangefs/protocol.h:369: note: previous definition of 'ORANGEFS_DEV_CLIENT_MASK' was here
fs/orangefs/protocol.h:372: error: redeclaration of enumerator 'ORANGEFS_DEV_CLIENT_STRING'
fs/orangefs/protocol.h:372: note: previous definition of 'ORANGEFS_DEV_CLIENT_STRING' was here
fs/orangefs/protocol.h:375: error: redeclaration of enumerator 'ORANGEFS_DEV_MAXNR'
fs/orangefs/protocol.h:375: note: previous definition of 'ORANGEFS_DEV_MAXNR' was here
fs/orangefs/protocol.h:393: error: redefinition of 'struct ORANGEFS_dev_map_desc'
fs/orangefs/file.c: In function 'flush_racache':
fs/orangefs/file.c:31: error: incompatible types when assigning to type 'struct orangefs_object_kref' from type 'struct orangefs_object_kref'
fs/orangefs/file.c: In function 'wait_for_direct_io':
fs/orangefs/file.c:128: error: incompatible types when assigning to type 'struct orangefs_object_kref' from type 'struct orangefs_object_kref'
fs/orangefs/file.c: In function 'orangefs_fsync':
fs/orangefs/file.c:660: error: incompatible types when assigning to type 'struct orangefs_object_kref' from type 'struct orangefs_object_kref'
..

vim +/ORANGEFS_uid +72 fs/orangefs/protocol.h

f7ab093f Mike Marshall 2015-07-17 16 * 1234 0000 0000 5678
f7ab093f Mike Marshall 2015-07-17 17 * The 3.0 and beyond cores will put 128 bit handles in here like this:
f7ab093f Mike Marshall 2015-07-17 18 * 1234 5678 90AB CDEF
f7ab093f Mike Marshall 2015-07-17 19 * The kernel module will always use the first four bytes and
f7ab093f Mike Marshall 2015-07-17 20 * the last four bytes as an inum.
f7ab093f Mike Marshall 2015-07-17 21 */
8bb8aefd Yi Liu 2015-11-24 @22 struct orangefs_khandle {
f7ab093f Mike Marshall 2015-07-17 23 unsigned char u[16];
f7ab093f Mike Marshall 2015-07-17 24 } __aligned(8);
f7ab093f Mike Marshall 2015-07-17 25
f7ab093f Mike Marshall 2015-07-17 26 /*
f7ab093f Mike Marshall 2015-07-17 27 * kernel version of an object ref.
f7ab093f Mike Marshall 2015-07-17 28 */
8bb8aefd Yi Liu 2015-11-24 @29 struct orangefs_object_kref {
8bb8aefd Yi Liu 2015-11-24 30 struct orangefs_khandle khandle;
f7ab093f Mike Marshall 2015-07-17 31 __s32 fs_id;
f7ab093f Mike Marshall 2015-07-17 32 __s32 __pad1;
f7ab093f Mike Marshall 2015-07-17 33 };
f7ab093f Mike Marshall 2015-07-17 34
f7ab093f Mike Marshall 2015-07-17 35 /*
f7ab093f Mike Marshall 2015-07-17 36 * compare 2 khandles assumes little endian thus from large address to
f7ab093f Mike Marshall 2015-07-17 37 * small address
f7ab093f Mike Marshall 2015-07-17 38 */
8bb8aefd Yi Liu 2015-11-24 @39 static inline int ORANGEFS_khandle_cmp(const struct orangefs_khandle *kh1,
8bb8aefd Yi Liu 2015-11-24 40 const struct orangefs_khandle *kh2)
f7ab093f Mike Marshall 2015-07-17 41 {
f7ab093f Mike Marshall 2015-07-17 42 int i;
f7ab093f Mike Marshall 2015-07-17 43
f7ab093f Mike Marshall 2015-07-17 44 for (i = 15; i >= 0; i--) {
f7ab093f Mike Marshall 2015-07-17 45 if (kh1->u[i] > kh2->u[i])
f7ab093f Mike Marshall 2015-07-17 46 return 1;
f7ab093f Mike Marshall 2015-07-17 47 if (kh1->u[i] < kh2->u[i])
f7ab093f Mike Marshall 2015-07-17 48 return -1;
f7ab093f Mike Marshall 2015-07-17 49 }
f7ab093f Mike Marshall 2015-07-17 50
f7ab093f Mike Marshall 2015-07-17 51 return 0;
f7ab093f Mike Marshall 2015-07-17 52 }
f7ab093f Mike Marshall 2015-07-17 53
8bb8aefd Yi Liu 2015-11-24 @54 static inline void ORANGEFS_khandle_to(const struct orangefs_khandle *kh,
f7ab093f Mike Marshall 2015-07-17 55 void *p, int size)
f7ab093f Mike Marshall 2015-07-17 56 {
f7ab093f Mike Marshall 2015-07-17 57
50e01586 Mike Marshall 2015-09-29 58 memcpy(p, kh->u, 16);
a9bb3ba8 Mike Marshall 2016-04-06 59 memset(p + 16, 0, size - 16);
f7ab093f Mike Marshall 2015-07-17 60
f7ab093f Mike Marshall 2015-07-17 61 }
f7ab093f Mike Marshall 2015-07-17 62
8bb8aefd Yi Liu 2015-11-24 @63 static inline void ORANGEFS_khandle_from(struct orangefs_khandle *kh,
f7ab093f Mike Marshall 2015-07-17 64 void *p, int size)
f7ab093f Mike Marshall 2015-07-17 65 {
f7ab093f Mike Marshall 2015-07-17 66 memset(kh, 0, 16);
50e01586 Mike Marshall 2015-09-29 67 memcpy(kh->u, p, 16);
f7ab093f Mike Marshall 2015-07-17 68
f7ab093f Mike Marshall 2015-07-17 69 }
f7ab093f Mike Marshall 2015-07-17 70
f7ab093f Mike Marshall 2015-07-17 71 /* pvfs2-types.h ************************************************************/
8bb8aefd Yi Liu 2015-11-24 @72 typedef __u32 ORANGEFS_uid;
8bb8aefd Yi Liu 2015-11-24 @73 typedef __u32 ORANGEFS_gid;
8bb8aefd Yi Liu 2015-11-24 @74 typedef __s32 ORANGEFS_fs_id;
8bb8aefd Yi Liu 2015-11-24 @75 typedef __u32 ORANGEFS_permissions;
8bb8aefd Yi Liu 2015-11-24 @76 typedef __u64 ORANGEFS_time;
8bb8aefd Yi Liu 2015-11-24 @77 typedef __s64 ORANGEFS_size;
8bb8aefd Yi Liu 2015-11-24 @78 typedef __u64 ORANGEFS_flags;
8bb8aefd Yi Liu 2015-11-24 @79 typedef __u64 ORANGEFS_ds_position;
8bb8aefd Yi Liu 2015-11-24 @80 typedef __s32 ORANGEFS_error;
8bb8aefd Yi Liu 2015-11-24 @81 typedef __s64 ORANGEFS_offset;
8bb8aefd Yi Liu 2015-11-24 82
8bb8aefd Yi Liu 2015-11-24 83 #define ORANGEFS_SUPER_MAGIC 0x20030528
f7ab093f Mike Marshall 2015-07-17 84

:::::: The code at line 72 was first introduced by commit
:::::: 8bb8aefd5afb54a25a002feb4ec70011812d06a0 OrangeFS: Change almost all instances of the string PVFS2 to OrangeFS.

:::::: TO: Yi Liu <yi9@clemson.edu>
:::::: CC: Mike Marshall <hubcap@omnibond.com>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2017-04-20 19:26    [W:0.111 / U:0.824 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site