Re: [PATCHv4 2/3] IB/core: added support to use rdma cgroup controller

From: kbuild test robot
Date: Sat Jan 30 2016 - 20:18:55 EST


Hi Parav,

[auto build test ERROR on cgroup/for-next]
[cannot apply to v4.5-rc1 next-20160129]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Parav-Pandit/rdmacg-IB-core-rdma-controller-support/20160131-063313
base: https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-next
config: i386-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

In file included from include/linux/cgroup_rdma.h:5:0,
from include/rdma/ib_verbs.h:58,
from include/rdma/ib_cache.h:38,
from drivers/infiniband/ulp/srp/ib_srp.c:43:
>> include/linux/parser.h:12:8: error: redefinition of 'struct match_token'
struct match_token {
^
In file included from drivers/infiniband/ulp/srp/ib_srp.c:40:0:
include/linux/parser.h:12:8: note: originally defined here
struct match_token {
^
In file included from include/linux/cgroup_rdma.h:5:0,
from include/rdma/ib_verbs.h:58,
from include/rdma/ib_cache.h:38,
from drivers/infiniband/ulp/srp/ib_srp.c:43:
>> include/linux/parser.h:17:28: error: conflicting types for 'match_table_t'
typedef struct match_token match_table_t[];
^
In file included from drivers/infiniband/ulp/srp/ib_srp.c:40:0:
include/linux/parser.h:17:28: note: previous declaration of 'match_table_t' was here
typedef struct match_token match_table_t[];
^
In file included from include/linux/cgroup_rdma.h:5:0,
from include/rdma/ib_verbs.h:58,
from include/rdma/ib_cache.h:38,
from drivers/infiniband/ulp/srp/ib_srp.c:43:
>> include/linux/parser.h:20:7: error: redeclaration of enumerator 'MAX_OPT_ARGS'
enum {MAX_OPT_ARGS = 3};
^
In file included from drivers/infiniband/ulp/srp/ib_srp.c:40:0:
include/linux/parser.h:20:7: note: previous definition of 'MAX_OPT_ARGS' was here
enum {MAX_OPT_ARGS = 3};
^
In file included from include/linux/cgroup_rdma.h:5:0,
from include/rdma/ib_verbs.h:58,
from include/rdma/ib_cache.h:38,
from drivers/infiniband/ulp/srp/ib_srp.c:43:
>> include/linux/parser.h:26:3: error: conflicting types for 'substring_t'
} substring_t;
^
In file included from drivers/infiniband/ulp/srp/ib_srp.c:40:0:
include/linux/parser.h:26:3: note: previous declaration of 'substring_t' was here
} substring_t;
^
In file included from include/linux/cgroup_rdma.h:5:0,
from include/rdma/ib_verbs.h:58,
from include/rdma/ib_cache.h:38,
from drivers/infiniband/ulp/srp/ib_srp.c:43:
>> include/linux/parser.h:28:5: error: conflicting types for 'match_token'
int match_token(char *, const match_table_t table, substring_t args[]);
^
In file included from drivers/infiniband/ulp/srp/ib_srp.c:40:0:
include/linux/parser.h:28:5: note: previous declaration of 'match_token' was here
int match_token(char *, const match_table_t table, substring_t args[]);
^
In file included from include/linux/cgroup_rdma.h:5:0,
from include/rdma/ib_verbs.h:58,
from include/rdma/ib_cache.h:38,
from drivers/infiniband/ulp/srp/ib_srp.c:43:
>> include/linux/parser.h:29:5: error: conflicting types for 'match_int'
int match_int(substring_t *, int *result);
^
In file included from drivers/infiniband/ulp/srp/ib_srp.c:40:0:
include/linux/parser.h:29:5: note: previous declaration of 'match_int' was here
int match_int(substring_t *, int *result);
^
In file included from include/linux/cgroup_rdma.h:5:0,
from include/rdma/ib_verbs.h:58,
from include/rdma/ib_cache.h:38,
from drivers/infiniband/ulp/srp/ib_srp.c:43:
>> include/linux/parser.h:30:5: error: conflicting types for 'match_octal'
int match_octal(substring_t *, int *result);
^
In file included from drivers/infiniband/ulp/srp/ib_srp.c:40:0:
include/linux/parser.h:30:5: note: previous declaration of 'match_octal' was here
int match_octal(substring_t *, int *result);
^
In file included from include/linux/cgroup_rdma.h:5:0,
from include/rdma/ib_verbs.h:58,
from include/rdma/ib_cache.h:38,
from drivers/infiniband/ulp/srp/ib_srp.c:43:
>> include/linux/parser.h:31:5: error: conflicting types for 'match_hex'
int match_hex(substring_t *, int *result);
^
In file included from drivers/infiniband/ulp/srp/ib_srp.c:40:0:
include/linux/parser.h:31:5: note: previous declaration of 'match_hex' was here
int match_hex(substring_t *, int *result);
^
In file included from include/linux/cgroup_rdma.h:5:0,
from include/rdma/ib_verbs.h:58,
from include/rdma/ib_cache.h:38,
from drivers/infiniband/ulp/srp/ib_srp.c:43:
>> include/linux/parser.h:33:8: error: conflicting types for 'match_strlcpy'
size_t match_strlcpy(char *, const substring_t *, size_t);
^
In file included from drivers/infiniband/ulp/srp/ib_srp.c:40:0:
include/linux/parser.h:33:8: note: previous declaration of 'match_strlcpy' was here
size_t match_strlcpy(char *, const substring_t *, size_t);
^
In file included from include/linux/cgroup_rdma.h:5:0,
from include/rdma/ib_verbs.h:58,
from include/rdma/ib_cache.h:38,
from drivers/infiniband/ulp/srp/ib_srp.c:43:
>> include/linux/parser.h:34:7: error: conflicting types for 'match_strdup'
char *match_strdup(const substring_t *);
^
In file included from drivers/infiniband/ulp/srp/ib_srp.c:40:0:
include/linux/parser.h:34:7: note: previous declaration of 'match_strdup' was here
char *match_strdup(const substring_t *);
^

vim +12 include/linux/parser.h

^1da177e Linus Torvalds 2005-04-16 6 * but could potentially be used anywhere else that simple option=arg
^1da177e Linus Torvalds 2005-04-16 7 * parsing is required.
^1da177e Linus Torvalds 2005-04-16 8 */
^1da177e Linus Torvalds 2005-04-16 9
^1da177e Linus Torvalds 2005-04-16 10
^1da177e Linus Torvalds 2005-04-16 11 /* associates an integer enumerator with a pattern string. */
^1da177e Linus Torvalds 2005-04-16 @12 struct match_token {
^1da177e Linus Torvalds 2005-04-16 13 int token;
ef4533f8 David Howells 2007-05-03 14 const char *pattern;
^1da177e Linus Torvalds 2005-04-16 15 };
^1da177e Linus Torvalds 2005-04-16 16
1a3f7d98 Linus Torvalds 2008-08-04 @17 typedef struct match_token match_table_t[];
^1da177e Linus Torvalds 2005-04-16 18
^1da177e Linus Torvalds 2005-04-16 19 /* Maximum number of arguments that match_token will find in a pattern */
^1da177e Linus Torvalds 2005-04-16 @20 enum {MAX_OPT_ARGS = 3};
^1da177e Linus Torvalds 2005-04-16 21
^1da177e Linus Torvalds 2005-04-16 22 /* Describe the location within a string of a substring */
^1da177e Linus Torvalds 2005-04-16 23 typedef struct {
^1da177e Linus Torvalds 2005-04-16 24 char *from;
^1da177e Linus Torvalds 2005-04-16 25 char *to;
^1da177e Linus Torvalds 2005-04-16 @26 } substring_t;
^1da177e Linus Torvalds 2005-04-16 27
a447c093 Steven Whitehouse 2008-10-13 @28 int match_token(char *, const match_table_t table, substring_t args[]);
^1da177e Linus Torvalds 2005-04-16 @29 int match_int(substring_t *, int *result);
^1da177e Linus Torvalds 2005-04-16 @30 int match_octal(substring_t *, int *result);
^1da177e Linus Torvalds 2005-04-16 @31 int match_hex(substring_t *, int *result);
aace0509 Du, Changbin 2014-01-23 32 bool match_wildcard(const char *pattern, const char *str);
b32a09db Markus Armbruster 2008-02-26 @33 size_t match_strlcpy(char *, const substring_t *, size_t);
ef4533f8 David Howells 2007-05-03 @34 char *match_strdup(const substring_t *);

:::::: The code at line 12 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data