public inbox for [email protected]
 help / color / mirror / Atom feed
* [ammarfaizi2-block:dhowells/linux-fs/pipe-list 30/30] crypto/algif_skcipher.c:197:10: error: 'struct proto_ops' has no member named 'sendpage'
@ 2023-03-10 22:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-10 22:32 UTC (permalink / raw)
  To: David Howells; +Cc: oe-kbuild-all, Ammar Faizi, GNU/Weeb Mailing List

tree:   https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/pipe-list
head:   e76345d9b0b65f673fbee4ce5c3ef8450e89638e
commit: e76345d9b0b65f673fbee4ce5c3ef8450e89638e [30/30] sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES)
config: mips-randconfig-r006-20230310 (https://download.01.org/0day-ci/archive/20230311/[email protected]/config)
compiler: mipsel-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/ammarfaizi2/linux-block/commit/e76345d9b0b65f673fbee4ce5c3ef8450e89638e
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/pipe-list
        git checkout e76345d9b0b65f673fbee4ce5c3ef8450e89638e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash crypto/ net/unix/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> crypto/algif_skcipher.c:197:10: error: 'struct proto_ops' has no member named 'sendpage'
     197 |         .sendpage       =       af_alg_sendpage,
         |          ^~~~~~~~
>> crypto/algif_skcipher.c:197:33: error: initialization of 'int (*)(struct socket *, struct msghdr *, size_t,  int)' {aka 'int (*)(struct socket *, struct msghdr *, unsigned int,  int)'} from incompatible pointer type 'ssize_t (*)(struct socket *, struct page *, int,  size_t,  int)' {aka 'int (*)(struct socket *, struct page *, int,  unsigned int,  int)'} [-Werror=incompatible-pointer-types]
     197 |         .sendpage       =       af_alg_sendpage,
         |                                 ^~~~~~~~~~~~~~~
   crypto/algif_skcipher.c:197:33: note: (near initialization for 'algif_skcipher_ops.recvmsg')
   crypto/algif_skcipher.c:198:33: warning: initialized field overwritten [-Woverride-init]
     198 |         .recvmsg        =       skcipher_recvmsg,
         |                                 ^~~~~~~~~~~~~~~~
   crypto/algif_skcipher.c:198:33: note: (near initialization for 'algif_skcipher_ops.recvmsg')
   crypto/algif_skcipher.c:288:10: error: 'struct proto_ops' has no member named 'sendpage'
     288 |         .sendpage       =       skcipher_sendpage_nokey,
         |          ^~~~~~~~
   crypto/algif_skcipher.c:288:33: error: initialization of 'int (*)(struct socket *, struct msghdr *, size_t,  int)' {aka 'int (*)(struct socket *, struct msghdr *, unsigned int,  int)'} from incompatible pointer type 'ssize_t (*)(struct socket *, struct page *, int,  size_t,  int)' {aka 'int (*)(struct socket *, struct page *, int,  unsigned int,  int)'} [-Werror=incompatible-pointer-types]
     288 |         .sendpage       =       skcipher_sendpage_nokey,
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   crypto/algif_skcipher.c:288:33: note: (near initialization for 'algif_skcipher_ops_nokey.recvmsg')
   crypto/algif_skcipher.c:289:33: warning: initialized field overwritten [-Woverride-init]
     289 |         .recvmsg        =       skcipher_recvmsg_nokey,
         |                                 ^~~~~~~~~~~~~~~~~~~~~~
   crypto/algif_skcipher.c:289:33: note: (near initialization for 'algif_skcipher_ops_nokey.recvmsg')
   cc1: some warnings being treated as errors
--
>> net/unix/af_unix.c:855:10: error: 'const struct proto_ops' has no member named 'sendpage'
     855 |         .sendpage =     unix_stream_sendpage,
         |          ^~~~~~~~
>> net/unix/af_unix.c:855:25: error: initialization of 'ssize_t (*)(struct socket *, loff_t *, struct pipe_inode_info *, size_t,  unsigned int)' {aka 'int (*)(struct socket *, long long int *, struct pipe_inode_info *, unsigned int,  unsigned int)'} from incompatible pointer type 'ssize_t (*)(struct socket *, struct page *, int,  size_t,  int)' {aka 'int (*)(struct socket *, struct page *, int,  unsigned int,  int)'} [-Werror=incompatible-pointer-types]
     855 |         .sendpage =     unix_stream_sendpage,
         |                         ^~~~~~~~~~~~~~~~~~~~
   net/unix/af_unix.c:855:25: note: (near initialization for 'unix_stream_ops.splice_read')
   net/unix/af_unix.c:856:25: warning: initialized field overwritten [-Woverride-init]
     856 |         .splice_read =  unix_stream_splice_read,
         |                         ^~~~~~~~~~~~~~~~~~~~~~~
   net/unix/af_unix.c:856:25: note: (near initialization for 'unix_stream_ops.splice_read')
   cc1: some warnings being treated as errors


vim +197 crypto/algif_skcipher.c

8ff590903d5fc7 Herbert Xu      2010-10-19  181  
8ff590903d5fc7 Herbert Xu      2010-10-19  182  static struct proto_ops algif_skcipher_ops = {
8ff590903d5fc7 Herbert Xu      2010-10-19  183  	.family		=	PF_ALG,
8ff590903d5fc7 Herbert Xu      2010-10-19  184  
8ff590903d5fc7 Herbert Xu      2010-10-19  185  	.connect	=	sock_no_connect,
8ff590903d5fc7 Herbert Xu      2010-10-19  186  	.socketpair	=	sock_no_socketpair,
8ff590903d5fc7 Herbert Xu      2010-10-19  187  	.getname	=	sock_no_getname,
8ff590903d5fc7 Herbert Xu      2010-10-19  188  	.ioctl		=	sock_no_ioctl,
8ff590903d5fc7 Herbert Xu      2010-10-19  189  	.listen		=	sock_no_listen,
8ff590903d5fc7 Herbert Xu      2010-10-19  190  	.shutdown	=	sock_no_shutdown,
8ff590903d5fc7 Herbert Xu      2010-10-19  191  	.mmap		=	sock_no_mmap,
8ff590903d5fc7 Herbert Xu      2010-10-19  192  	.bind		=	sock_no_bind,
8ff590903d5fc7 Herbert Xu      2010-10-19  193  	.accept		=	sock_no_accept,
8ff590903d5fc7 Herbert Xu      2010-10-19  194  
8ff590903d5fc7 Herbert Xu      2010-10-19  195  	.release	=	af_alg_release,
8ff590903d5fc7 Herbert Xu      2010-10-19  196  	.sendmsg	=	skcipher_sendmsg,
2d97591ef43d05 Stephan Mueller 2017-08-02 @197  	.sendpage	=	af_alg_sendpage,
8ff590903d5fc7 Herbert Xu      2010-10-19  198  	.recvmsg	=	skcipher_recvmsg,
a11e1d432b51f6 Linus Torvalds  2018-06-28  199  	.poll		=	af_alg_poll,
8ff590903d5fc7 Herbert Xu      2010-10-19  200  };
8ff590903d5fc7 Herbert Xu      2010-10-19  201  

:::::: The code at line 197 was first introduced by commit
:::::: 2d97591ef43d0587be22ad1b0d758d6df4999a0b crypto: af_alg - consolidation of duplicate code

:::::: TO: Stephan Mueller <[email protected]>
:::::: CC: Herbert Xu <[email protected]>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-10 22:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-10 22:32 [ammarfaizi2-block:dhowells/linux-fs/pipe-list 30/30] crypto/algif_skcipher.c:197:10: error: 'struct proto_ops' has no member named 'sendpage' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox