All of lore.kernel.org
 help / color / mirror / Atom feed
* [dhowells-fs:rxrpc-rxgk 23/29] net/rxrpc/rxgk.c:800:3: error: non-void function 'rxgk_decode_ticket' should return a value
@ 2020-09-26 12:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-09-26 12:25 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3810 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-rxgk
head:   e673139d64f91ec1ce8f6f3aa9eb9f6548e133bf
commit: 317c45bb209b9aeba43ffea2a125c2b3795f4c1f [23/29] rxrpc: rxgk: Implement the yfs-rxgk security class (GSSAPI)
config: mips-randconfig-r021-20200925 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a83eb048cb9a75da7a07a9d5318bbdbf54885c87)
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
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=317c45bb209b9aeba43ffea2a125c2b3795f4c1f
        git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
        git fetch --no-tags dhowells-fs rxrpc-rxgk
        git checkout 317c45bb209b9aeba43ffea2a125c2b3795f4c1f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> net/rxrpc/rxgk.c:800:3: error: non-void function 'rxgk_decode_ticket' should return a value [-Wreturn-type]
                   return;
                   ^
   net/rxrpc/rxgk.c:802:2: warning: TODO [-W#warnings]
   #warning TODO
    ^
   net/rxrpc/rxgk.c:791:16: warning: unused variable 'p' [-Wunused-variable]
           __be32 *xdr, *p;
                         ^
   net/rxrpc/rxgk.c:790:14: warning: unused variable 'key' [-Wunused-variable]
           struct key *key;
                       ^
   net/rxrpc/rxgk.c:914:2: warning: TODO [-W#warnings]
   #warning TODO
    ^
   4 warnings and 1 error generated.
--
>> net/rxrpc/rxgk.c:800:3: error: non-void function 'rxgk_decode_ticket' should return a value [-Wreturn-type]
                   return;
                   ^
   net/rxrpc/rxgk.c:802:2: warning: TODO [-W#warnings]
   #warning TODO
    ^
   net/rxrpc/rxgk.c:790:14: warning: unused variable 'key' [-Wunused-variable]
           struct key *key;
                       ^
   net/rxrpc/rxgk.c:791:16: warning: unused variable 'p' [-Wunused-variable]
           __be32 *xdr, *p;
                         ^
   net/rxrpc/rxgk.c:914:2: warning: TODO [-W#warnings]
   #warning TODO
    ^
   4 warnings and 1 error generated.

vim +/rxgk_decode_ticket +800 net/rxrpc/rxgk.c

   766	
   767	/*
   768	 * Decode the ticket in a response.
   769	 *
   770	 * struct RXGK_AuthName {
   771	 *	afs_int32	kind;
   772	 *	opaque		data<AUTHDATAMAX>;
   773	 *	opaque		display<AUTHPRINTABLEMAX>;
   774	 * };
   775	 *
   776	 * struct RXGK_Token {
   777	 *	rxgk_key		K0;
   778	 *	RXGK_Level		level;
   779	 *	rxgkTime		starttime;
   780	 *	afs_int32		lifetime;
   781	 *	afs_int32		bytelife;
   782	 *	rxgkTime		expirationtime;
   783	 *	struct RXGK_AuthName	identities<>;
   784	 * };
   785	 */
   786	static int rxgk_decode_ticket(struct sk_buff *skb,
   787				      unsigned int ticket_offset, unsigned int ticket_len,
   788				      u32 *_abort_code)
   789	{
   790		struct key *key;
   791		__be32 *xdr, *p;
   792		int ret;
   793	
   794		xdr = kmalloc(ticket_len, GFP_NOFS);
   795		if (!xdr)
   796			return -ENOMEM;
   797	
   798		ret = skb_copy_bits(skb, ticket_offset, xdr, ticket_len);
   799		if (ret < 0)
 > 800			return;
   801	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27343 bytes --]

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

only message in thread, other threads:[~2020-09-26 12:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-26 12:25 [dhowells-fs:rxrpc-rxgk 23/29] net/rxrpc/rxgk.c:800:3: error: non-void function 'rxgk_decode_ticket' should return a value kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.