lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 13 Jul 2021 02:14:23 +0800
From:   kernel test robot <lkp@...el.com>
To:     Hannes Reinecke <hare@...e.de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [hare-scsi-devel:auth.v2 7/12]
 drivers/nvme/target/../target/nvmet.h:728:1: warning: type qualifiers
 ignored on function return type

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git auth.v2
head:   9107ea4a3526c6801b38b7a2345b7372278a35ba
commit: ca7a6b4cc19e4383ec693c75bb5c6f678b692a14 [7/12] nvmet: Implement basic In-Band Authentication
config: parisc-randconfig-r011-20210712 (attached as .config)
compiler: hppa64-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commit/?id=ca7a6b4cc19e4383ec693c75bb5c6f678b692a14
        git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
        git fetch --no-tags hare-scsi-devel auth.v2
        git checkout ca7a6b4cc19e4383ec693c75bb5c6f678b692a14
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/nvme/target/fcloop.c:11:
>> drivers/nvme/target/../target/nvmet.h:728:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     728 | const char nvmet_dhchap_dhgroup_name(int dhgid) { return NULL; }
         | ^~~~~
>> drivers/nvme/target/../target/nvmet.h:728:12: warning: no previous prototype for 'nvmet_dhchap_dhgroup_name' [-Wmissing-prototypes]
     728 | const char nvmet_dhchap_dhgroup_name(int dhgid) { return NULL; }
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/uapi/linux/posix_types.h:5,
                    from include/uapi/linux/types.h:14,
                    from include/linux/types.h:6,
                    from include/linux/list.h:5,
                    from include/linux/module.h:12,
                    from drivers/nvme/target/fcloop.c:6:
   drivers/nvme/target/../target/nvmet.h: In function 'nvmet_dhchap_dhgroup_name':
   include/linux/stddef.h:8:14: warning: returning 'void *' from a function with return type 'char' makes integer from pointer without a cast [-Wint-conversion]
       8 | #define NULL ((void *)0)
         |              ^
   drivers/nvme/target/../target/nvmet.h:728:58: note: in expansion of macro 'NULL'
     728 | const char nvmet_dhchap_dhgroup_name(int dhgid) { return NULL; }
         |                                                          ^~~~


vim +728 drivers/nvme/target/../target/nvmet.h

   687	
   688	#ifdef CONFIG_NVME_TARGET_AUTH
   689	void nvmet_execute_auth_send(struct nvmet_req *req);
   690	void nvmet_execute_auth_receive(struct nvmet_req *req);
   691	int nvmet_auth_set_host_key(struct nvmet_host *host, const char *secret);
   692	int nvmet_auth_set_host_hash(struct nvmet_host *host, const char *hash);
   693	int nvmet_auth_get_hash(struct nvmet_ctrl *ctrl, unsigned int *hash_len);
   694	const char *nvmet_auth_hmac_name(int hmac_id);
   695	int nvmet_auth_set_host_dhgroup(struct nvmet_host *host, const char *hash);
   696	const char *nvmet_auth_get_host_dhgroup(struct nvmet_host *host);
   697	int nvmet_setup_auth(struct nvmet_ctrl *ctrl, struct nvmet_req *req);
   698	void nvmet_reset_auth(struct nvmet_ctrl *ctrl);
   699	int nvmet_setup_dhgroup(struct nvmet_ctrl *ctrl, int dhgroup_id);
   700	bool nvmet_check_auth_status(struct nvmet_req *req);
   701	int nvmet_auth_host_hash(struct nvmet_req *req, u8 *response,
   702				 unsigned int hash_len);
   703	int nvmet_auth_ctrl_hash(struct nvmet_req *req, u8 *response,
   704				 unsigned int hash_len);
   705	static inline bool nvmet_has_auth(struct nvmet_ctrl *ctrl)
   706	{
   707		return ctrl->shash_tfm != NULL;
   708	}
   709	const char *nvmet_dhchap_dhgroup_name(int dhgid);
   710	int nvmet_auth_ctrl_exponential(struct nvmet_req *req,
   711					u8 *buf, int buf_size);
   712	int nvmet_auth_ctrl_sesskey(struct nvmet_req *req,
   713				    u8 *buf, int buf_size);
   714	#else
   715	static inline int nvmet_setup_auth(struct nvmet_ctrl *ctrl, struct nvmet_req *req)
   716	{
   717		return 0;
   718	}
   719	static inline void nvmet_reset_auth(struct nvmet_ctrl *ctrl) {};
   720	static inline bool nvmet_check_auth_status(struct nvmet_req *req)
   721	{
   722		return true;
   723	}
   724	static inline bool nvmet_has_auth(struct nvmet_ctrl *ctrl)
   725	{
   726		return false;
   727	}
 > 728	const char nvmet_dhchap_dhgroup_name(int dhgid) { return NULL; }
   729	#endif
   730	

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

Download attachment ".config.gz" of type "application/gzip" (37479 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ