Skip to contentSkip to conversation

./usr/include/rdma/ib_user_verbs.h:436:34: warning: field 'base' with variable sized type 'struct ib_uverbs_create_cq_resp' not at the end of a struct or class is a GNU extension

PATCH Philip Li 1 participant 1 message Feb 21, 2020 1 message not in the archive

lore
Share & tools
lore

Philip Li

author
#1 lore raw
In reply to a message not in the archive
Quoted 11 lines · Gustavo A. R. Silva
Quoted 3 lines · Nathan Chancellor

+ Gustavo, since I assume the point of that patch is to see what kind of warnings crop up?

Precisely! Thanks, Nathan. :)

I would have expected to get this e-mail automatically... could someone help me with that? I'd really appreciate it.

Hi Gustavo, 0-day ci is working on this to send clang build report directly to author in a few weeks.

Quoted 42 lines

Thanks
--
Gustavo

Quoted 36 lines · kbuild test robot
Quoted 35 lines

CC: kbuild-all(a)lists.01.org
TO: "Gustavo A. R. Silva" <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git for-next/testing
head:   2d94fd162464e8b126227a996eaffa9e0442a1be
commit: 2d94fd162464e8b126227a996eaffa9e0442a1be [1/1] treewide: Replace zero-length array with flexible-array member
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (git://gitmirror/llvm_project 9d37f5afac4a3b9194b9001bed84f58ca8bd6c02)
reproduce:
        git checkout 2d94fd162464e8b126227a996eaffa9e0442a1be
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag

All warnings (new ones prefixed by >>):

In file included from <built-in>:1:
In file included from ./usr/include/rdma/rdma_user_cm.h:40:

Quoted 1 line
Quoted 1 line

./usr/include/rdma/ib_user_verbs.h:436:34: warning: field 'base' with variable sized type 'struct ib_uverbs_create_cq_resp' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]

           struct ib_uverbs_create_cq_resp base;
                                           ^
Quoted 1 line
Quoted 1 line

./usr/include/rdma/ib_user_verbs.h:647:34: warning: field 'base' with variable sized type 'struct ib_uverbs_create_qp_resp' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]

           struct ib_uverbs_create_qp_resp base;
                                           ^
Quoted 1 line
Quoted 1 line

./usr/include/rdma/ib_user_verbs.h:743:29: warning: field 'base' with variable sized type 'struct ib_uverbs_modify_qp' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]

           struct ib_uverbs_modify_qp base;
                                      ^

3 warnings generated.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org