tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing head: 8d2fa5c352a9e0f877281c2b4486347305a380db commit: ce6e67f2ed110fdbb89bb76bca8c2b9d2ad6c736 [276/342] staging: lustre: fid: add include path to Makefile config: ia64-allyesconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout ce6e67f2ed110fdbb89bb76bca8c2b9d2ad6c736 # save the attached .config to linux build tree make.cross ARCH=ia64
All errors (new ones prefixed by >>):
In file included from
drivers/staging/lustre/lustre/include/lustre_lib.h:59:0,
from drivers/staging/lustre/lustre/include/obd.h:39,
from drivers/staging/lustre/lustre/fid/fid_request.c:44:
drivers/staging/lustre/lustre/include/lustre_net.h: In function
'ptlrpc_status_hton':
>> drivers/staging/lustre/lustre/include/lustre_net.h:2110:11: error: implicit
>> declaration of function 'lustre_errno_hton'
>> [-Werror=implicit-function-declaration]
return -lustre_errno_hton(-h);
^~~~~~~~~~~~~~~~~
drivers/staging/lustre/lustre/include/lustre_net.h: In function
'ptlrpc_status_ntoh':
>> drivers/staging/lustre/lustre/include/lustre_net.h:2121:11: error: implicit
>> declaration of function 'lustre_errno_ntoh'
>> [-Werror=implicit-function-declaration]
return -lustre_errno_ntoh(-n);
^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/lustre_errno_hton +2110 drivers/staging/lustre/lustre/include/lustre_net.h
2d58de78 Li Wei 2013-07-23 2102
2d58de78 Li Wei 2013-07-23 2103 static inline int ptlrpc_status_hton(int h)
2d58de78 Li Wei 2013-07-23 2104 {
2d58de78 Li Wei 2013-07-23 2105 /*
2d58de78 Li Wei 2013-07-23 2106 * Positive errnos must be network
errnos, such as LUSTRE_EDEADLK,
2d58de78 Li Wei 2013-07-23 2107 * ELDLM_LOCK_ABORTED, etc.
2d58de78 Li Wei 2013-07-23 2108 */
2d58de78 Li Wei 2013-07-23 2109 if (h < 0)
2d58de78 Li Wei 2013-07-23 @2110 return -lustre_errno_hton(-h);
2d58de78 Li Wei 2013-07-23 2111 else
2d58de78 Li Wei 2013-07-23 2112 return h;
2d58de78 Li Wei 2013-07-23 2113 }
2d58de78 Li Wei 2013-07-23 2114
2d58de78 Li Wei 2013-07-23 2115 static inline int ptlrpc_status_ntoh(int n)
2d58de78 Li Wei 2013-07-23 2116 {
2d58de78 Li Wei 2013-07-23 2117 /*
2d58de78 Li Wei 2013-07-23 2118 * See the comment in
ptlrpc_status_hton().
2d58de78 Li Wei 2013-07-23 2119 */
2d58de78 Li Wei 2013-07-23 2120 if (n < 0)
2d58de78 Li Wei 2013-07-23 @2121 return -lustre_errno_ntoh(-n);
2d58de78 Li Wei 2013-07-23 2122 else
2d58de78 Li Wei 2013-07-23 2123 return n;
2d58de78 Li Wei 2013-07-23 2124 }
2d58de78 Li Wei 2013-07-23 2125
:::::: The code at line 2110 was first introduced by commit
:::::: 2d58de78b2f6c53688a154b02bae3ada19ed15a9 staging/lustre/ptlrpc:
Translate between host and network errnos
:::::: TO: Li Wei <[email protected]>
:::::: CC: Greg Kroah-Hartman <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip
_______________________________________________ devel mailing list [email protected] http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
