[ofa-general] SDP compile error...

Arthur Jones arthur.jones at qlogic.com
Tue Nov 20 10:21:59 PST 2007


hi vlad, all, i'm unable to compile SDP against the
current ofed_kernel (no backports, but fixes applied --
though i get about the same errors without fixes
applied).  i'm guessing this is supposed to work,
i get:

]$ make M=drivers/infiniband/ulp/sdp

  CC [M]  drivers/infiniband/ulp/sdp/sdp_main.o
drivers/infiniband/ulp/sdp/sdp_main.c: In function `sdp_create_socket':
drivers/infiniband/ulp/sdp/sdp_main.c:2144: warning: passing arg 1 of `sk_alloc' makes pointer from integer without a cast
drivers/infiniband/ulp/sdp/sdp_main.c:2144: warning: passing arg 3 of `sk_alloc' makes integer from pointer without a cast
drivers/infiniband/ulp/sdp/sdp_main.c:2144: warning: passing arg 4 of `sk_alloc' makes pointer from integer without a cast
drivers/infiniband/ulp/sdp/sdp_main.c: In function `sdp_proc_init':
drivers/infiniband/ulp/sdp/sdp_main.c:2328: warning: passing arg 1 of `proc_net_fops_create' from incompatible pointer type
drivers/infiniband/ulp/sdp/sdp_main.c:2328: warning: passing arg 2 of `proc_net_fops_create' makes pointer from integer without a cast
drivers/infiniband/ulp/sdp/sdp_main.c:2328: warning: passing arg 3 of `proc_net_fops_create' makes integer from pointer without a cast
drivers/infiniband/ulp/sdp/sdp_main.c:2328: error: too few arguments to function `proc_net_fops_create'
drivers/infiniband/ulp/sdp/sdp_main.c:2331: warning: passing arg 1 of `proc_net_fops_create' from incompatible pointer type
drivers/infiniband/ulp/sdp/sdp_main.c:2331: warning: passing arg 2 of `proc_net_fops_create' makes pointer from integer without a cast
drivers/infiniband/ulp/sdp/sdp_main.c:2331: warning: passing arg 3 of `proc_net_fops_create' makes integer from pointer without a cast
drivers/infiniband/ulp/sdp/sdp_main.c:2331: error: too few arguments to function `proc_net_fops_create'
drivers/infiniband/ulp/sdp/sdp_main.c: In function `sdp_proc_unregister':
drivers/infiniband/ulp/sdp/sdp_main.c:2342: warning: passing arg 1 of `proc_net_remove' from incompatible pointer type
drivers/infiniband/ulp/sdp/sdp_main.c:2342: error: too few arguments to function `proc_net_remove'
drivers/infiniband/ulp/sdp/sdp_main.c: At top level:
drivers/infiniband/ulp/sdp/sdp_main.c:2409: warning: initialization from incompatible pointer type
make[1]: *** [drivers/infiniband/ulp/sdp/sdp_main.o] Error 1
make: *** [_module_drivers/infiniband/ulp/sdp] Error 2

arthur



More information about the general mailing list