Re: [linux-next:master 6765/11208] unix_connect.c:115:55: error:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: kernel test robot <lkp@xxxxxxxxx>
Date: Mon, 18 Jul 2022 22:32:11 +0800
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   036ad6daa8f0fd357af7f50f9da58539eaa6f68c
> commit: e95ab1d852897a0b697cd0fb609d496ce97fff3a [6765/11208] selftests: net: af_unix: Test connect() with different netns.
> reproduce: make O=/tmp/kselftest -C tools/testing/selftests
> 
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> 
> Note: the linux-next/master HEAD 036ad6daa8f0fd357af7f50f9da58539eaa6f68c builds fine.
>       It may have been fixed somewhere.
> 
> All errors (new ones prefixed by >>):
> 
>    unix_connect.c: In function 'unix_connect_test':
> >> unix_connect.c:115:55: error: expected identifier before '(' token
>      115 | #define offsetof(type, member) ((size_t)&((type *)0)->(member))
>          |                                                       ^

I'll fix this.
The change suggested by checkpatch seems to be the root cause.

Best regards,
Kuniyuki


>    unix_connect.c:128:19: note: in expansion of macro 'offsetof'
>      128 |         addrlen = offsetof(struct sockaddr_un, sun_path) + variant->len;
>          |                   ^~~~~~~~
> 
> -- 
> 0-DAY CI Kernel Test Service
> https://01.org/lkp




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux