+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/istgt-20150713nb2/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/istgt-20150713nb2/work.log ===> Building for istgt-20150713nb2 --- all --- for subdir in src etc doc; do (cd $subdir; /opt/pkg/bin/bmake all) || exit $?; done --- stamp-depend --- --- istgt.o --- --- istgt_iscsi.o --- --- istgt_iscsi_param.o --- --- stamp-depend --- /opt/pkg/bin/bmake depend --- depend --- if [ "x" != "x" ]; then -MM -DHAVE_CONFIG_H -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -D_POSIX_PTHREAD_SEMANTICS -I/opt/pkg/include -I.. -I. istgt.c istgt_iscsi.c istgt_iscsi_param.c istgt_lu.c istgt_lu_disk.c istgt_lu_disk_vbox.c istgt_lu_dvd.c istgt_lu_tape.c istgt_lu_pass.c istgt_lu_ctl.c istgt_log.c istgt_conf.c istgt_sock.c istgt_misc.c istgt_queue.c istgt_crc32c.c istgt_md5.c; fi touch stamp-depend --- istgt.o --- gcc -DHAVE_CONFIG_H -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -D_POSIX_PTHREAD_SEMANTICS -I/opt/pkg/include -I.. -I. -c -o istgt.o istgt.c --- istgt_iscsi.o --- gcc -DHAVE_CONFIG_H -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -D_POSIX_PTHREAD_SEMANTICS -I/opt/pkg/include -I.. -I. -c -o istgt_iscsi.o istgt_iscsi.c --- istgt_iscsi_param.o --- gcc -DHAVE_CONFIG_H -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -D_POSIX_PTHREAD_SEMANTICS -I/opt/pkg/include -I.. -I. -c -o istgt_iscsi_param.o istgt_iscsi_param.c --- istgt_lu.o --- gcc -DHAVE_CONFIG_H -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -Wall -Wextra -DDEBUG -fno-strict-aliasing -Wstrict-aliasing -Wformat=2 -Wreturn-type -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -D_POSIX_PTHREAD_SEMANTICS -I/opt/pkg/include -I.. -I. -c -o istgt_lu.o istgt_lu.c --- istgt_iscsi.o --- istgt_iscsi.c: In function 'istgt_iscsi_read_pdu': istgt_iscsi.c:708:27: error: assignment to 'caddr_t' {aka 'char *'} from incompatible pointer type 'ISCSI_AHS *' {aka 'struct iscsi_ahs_t *'} [-Wincompatible-pointer-types] 708 | iovec[0].iov_base = pdu->ahs; | ^ istgt_iscsi.c:712:27: warning: pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 'caddr_t' {aka 'char *'} differ in signedness [-Wpointer-sign] 712 | iovec[1].iov_base = pdu->header_digest; | ^ istgt_iscsi.c:744:27: warning: pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 'caddr_t' {aka 'char *'} differ in signedness [-Wpointer-sign] 744 | iovec[2].iov_base = pdu->data; | ^ istgt_iscsi.c:748:27: warning: pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 'caddr_t' {aka 'char *'} differ in signedness [-Wpointer-sign] 748 | iovec[3].iov_base = pdu->data_digest; | ^ In file included from istgt_iscsi.c:55: istgt_iscsi.c: In function 'istgt_update_pdu': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_iscsi.c:840:18: note: in expansion of macro 'BGET8W' 840 | opcode = BGET8W(&rsp[0], 5, 6); | ^~~~~~ istgt_iscsi.c: In function 'istgt_iscsi_write_pdu_internal': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' --- istgt_lu.o --- istgt_lu.c: In function 'istgt_lu_parse_size': istgt_lu.c:799:32: warning: this statement may fall through [-Wimplicit-fallthrough=] 799 | case 'Z': val1 *= (uint64_t) 1024ULL; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ istgt_lu.c:800:17: note: here 800 | case 'E': val1 *= (uint64_t) 1024ULL; | ^~~~ istgt_lu.c:800:32: warning: this statement may fall through [-Wimplicit-fallthrough=] 800 | case 'E': val1 *= (uint64_t) 1024ULL; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ istgt_lu.c:801:17: note: here 801 | case 'P': val1 *= (uint64_t) 1024ULL; | ^~~~ istgt_lu.c:801:32: warning: this statement may fall through [-Wimplicit-fallthrough=] 801 | case 'P': val1 *= (uint64_t) 1024ULL; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ istgt_lu.c:802:17: note: here 802 | case 'T': val1 *= (uint64_t) 1024ULL; --- istgt_iscsi.o --- 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_iscsi.c:1192:18: note: in expansion of macro 'BGET8W' 1192 | opcode = BGET8W(&cp[0], 5, 6); | ^~~~~~ istgt_iscsi.c:1199:27: error: assignment to 'caddr_t' {aka 'char *'} from incompatible pointer type 'ISCSI_BHS *' {aka 'struct iscsi_bhs_t *'} [-Wincompatible-pointer-types] 1199 | iovec[0].iov_base = &pdu->bhs; | ^ istgt_iscsi.c:1204:27: error: assignment to 'caddr_t' {aka 'char *'} from incompatible pointer type 'ISCSI_AHS *' {aka 'struct iscsi_ahs_t *'} [-Wincompatible-pointer-types] 1204 | iovec[1].iov_base = pdu->ahs; | ^ istgt_iscsi.c:1209:27: warning: pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 'caddr_t' {aka 'char *'} differ in signedness [-Wpointer-sign] --- istgt_lu.o --- | ^~~~ istgt_lu.c:802:32: warning: this statement may fall through [-Wimplicit-fallthrough=] 802 | case 'T': val1 *= (uint64_t) 1024ULL; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ istgt_lu.c:803:17: note: here 803 | case 'G': val1 *= (uint64_t) 1024ULL; | ^~~~ istgt_lu.c:803:32: warning: this statement may fall through [-Wimplicit-fallthrough=] 803 | case 'G': val1 *= (uint64_t) 1024ULL; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ istgt_lu.c:804:17: note: here 804 | case 'M': val1 *= (uint64_t) 1024ULL; | ^~~~ istgt_lu.c:804:32: warning: this statement may fall through [-Wimplicit-fallthrough=] 804 | case 'M': val1 *= (uint64_t) 1024ULL; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ istgt_lu.c:805:17: note: here 805 | case 'K': val1 *= (uint64_t) 1024ULL; | ^~~~ --- istgt_iscsi.o --- 1209 | iovec[2].iov_base = pdu->header_digest; | ^ istgt_iscsi.c:1235:27: warning: pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 'caddr_t' {aka 'char *'} differ in signedness [-Wpointer-sign] 1235 | iovec[3].iov_base = pdu->data; | ^ istgt_iscsi.c:1240:27: warning: pointer targets in assignment from 'uint8_t *' {aka 'unsigned char *'} to 'caddr_t' {aka 'char *'} differ in signedness [-Wpointer-sign] 1240 | iovec[4].iov_base = pdu->data_digest; | ^ --- istgt_lu.o --- istgt_lu.c:820:48: warning: this statement may fall through [-Wimplicit-fallthrough=] 820 | case 'Z': val2 *= (uint64_t) 1024ULL; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ istgt_lu.c:821:33: note: here 821 | case 'E': val2 *= (uint64_t) 1024ULL; | ^~~~ istgt_lu.c:821:48: warning: this statement may fall through [-Wimplicit-fallthrough=] 821 | case 'E': val2 *= (uint64_t) 1024ULL; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ istgt_lu.c:822:33: note: here 822 | case 'P': val2 *= (uint64_t) 1024ULL; | ^~~~ istgt_lu.c:822:48: warning: this statement may fall through [-Wimplicit-fallthrough=] 822 | case 'P': val2 *= (uint64_t) 1024ULL; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ istgt_lu.c:823:33: note: here 823 | case 'T': val2 *= (uint64_t) 1024ULL; | ^~~~ istgt_lu.c:823:48: warning: this statement may fall through [-Wimplicit-fallthrough=] 823 | case 'T': val2 *= (uint64_t) 1024ULL; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ istgt_lu.c:824:33: note: here 824 | case 'G': val2 *= (uint64_t) 1024ULL; | ^~~~ istgt_lu.c:824:48: warning: this statement may fall through [-Wimplicit-fallthrough=] 824 | case 'G': val2 *= (uint64_t) 1024ULL; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ istgt_lu.c:825:33: note: here 825 | case 'M': val2 *= (uint64_t) 1024ULL; | ^~~~ istgt_lu.c:825:48: warning: this statement may fall through [-Wimplicit-fallthrough=] 825 | case 'M': val2 *= (uint64_t) 1024ULL; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ istgt_lu.c:826:33: note: here 826 | case 'K': val2 *= (uint64_t) 1024ULL; | ^~~~ --- istgt_iscsi.o --- istgt_iscsi.c: In function 'istgt_iscsi_reject': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_iscsi.c:2167:9: note: in expansion of macro 'BDADD8W' 2167 | BDADD8W(&rsp[1], 1, 7, 1); | ^~~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_iscsi.c:2167:9: note: in expansion of macro 'BDADD8W' 2167 | BDADD8W(&rsp[1], 1, 7, 1); | ^~~~~~~ istgt_iscsi.c: In function 'istgt_iscsi_op_login': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:2362:17: note: in expansion of macro 'BGET8' 2362 | T_bit = BGET8(&cp[1], 7); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:2363:17: note: in expansion of macro 'BGET8' 2363 | C_bit = BGET8(&cp[1], 6); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_iscsi.c:2364:15: note: in expansion of macro 'BGET8W' 2364 | CSG = BGET8W(&cp[1], 3, 2); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_iscsi.c:2365:15: note: in expansion of macro 'BGET8W' 2365 | NSG = BGET8W(&cp[1], 1, 2); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:2955:9: note: in expansion of macro 'BDADD8' 2955 | BDADD8(&rsp[1], T_bit, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:2955:9: note: in expansion of macro 'BDADD8' 2955 | BDADD8(&rsp[1], T_bit, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:2956:9: note: in expansion of macro 'BDADD8' 2956 | BDADD8(&rsp[1], C_bit, 6); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:2956:9: note: in expansion of macro 'BDADD8' 2956 | BDADD8(&rsp[1], C_bit, 6); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_iscsi.c:2957:9: note: in expansion of macro 'BDADD8W' 2957 | BDADD8W(&rsp[1], CSG, 3, 2); | ^~~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_iscsi.c:2957:9: note: in expansion of macro 'BDADD8W' 2957 | BDADD8W(&rsp[1], CSG, 3, 2); | ^~~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_iscsi.c:2958:9: note: in expansion of macro 'BDADD8W' 2958 | BDADD8W(&rsp[1], NSG, 1, 2); | ^~~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_iscsi.c:2958:9: note: in expansion of macro 'BDADD8W' 2958 | BDADD8W(&rsp[1], NSG, 1, 2); | ^~~~~~~ istgt_iscsi.c: In function 'istgt_iscsi_op_text': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:3047:17: note: in expansion of macro 'BGET8' 3047 | I_bit = BGET8(&cp[0], 7); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:3048:17: note: in expansion of macro 'BGET8' 3048 | F_bit = BGET8(&cp[1], 7); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:3049:17: note: in expansion of macro 'BGET8' 3049 | C_bit = BGET8(&cp[1], 6); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3151:9: note: in expansion of macro 'BDADD8' 3151 | BDADD8(&rsp[1], F_bit, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3151:9: note: in expansion of macro 'BDADD8' 3151 | BDADD8(&rsp[1], F_bit, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3152:9: note: in expansion of macro 'BDADD8' 3152 | BDADD8(&rsp[1], C_bit, 6); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3152:9: note: in expansion of macro 'BDADD8' 3152 | BDADD8(&rsp[1], C_bit, 6); | ^~~~~~ istgt_iscsi.c:3029:21: warning: variable 'iiqn' set but not used [-Wunused-but-set-variable] 3029 | const char *iiqn; | ^~~~ istgt_iscsi.c: In function 'istgt_iscsi_op_logout': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_iscsi.c:3221:18: note: in expansion of macro 'BGET8W' 3221 | reason = BGET8W(&cp[1], 6, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_iscsi.c:3271:9: note: in expansion of macro 'BDADD8W' 3271 | BDADD8W(&rsp[1], 1, 7, 1); | ^~~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_iscsi.c:3271:9: note: in expansion of macro 'BDADD8W' 3271 | BDADD8W(&rsp[1], 1, 7, 1); | ^~~~~~~ istgt_iscsi.c: In function 'istgt_iscsi_transfer_in_internal': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3437:17: note: in expansion of macro 'BDADD8' 3437 | BDADD8(&rsp[1], F_bit, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3437:17: note: in expansion of macro 'BDADD8' 3437 | BDADD8(&rsp[1], F_bit, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3438:17: note: in expansion of macro 'BDADD8' 3438 | BDADD8(&rsp[1], 0, 6); // A_bit Acknowledge | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3438:17: note: in expansion of macro 'BDADD8' 3438 | BDADD8(&rsp[1], 0, 6); // A_bit Acknowledge | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3440:25: note: in expansion of macro 'BDADD8' 3440 | BDADD8(&rsp[1], O_bit, 2); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3440:25: note: in expansion of macro 'BDADD8' 3440 | BDADD8(&rsp[1], O_bit, 2); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3441:25: note: in expansion of macro 'BDADD8' 3441 | BDADD8(&rsp[1], U_bit, 1); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3441:25: note: in expansion of macro 'BDADD8' 3441 | BDADD8(&rsp[1], U_bit, 1); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3443:25: note: in expansion of macro 'BDADD8' 3443 | BDADD8(&rsp[1], 0, 2); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3443:25: note: in expansion of macro 'BDADD8' 3443 | BDADD8(&rsp[1], 0, 2); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3444:25: note: in expansion of macro 'BDADD8' 3444 | BDADD8(&rsp[1], 0, 1); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3444:25: note: in expansion of macro 'BDADD8' 3444 | BDADD8(&rsp[1], 0, 1); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3446:17: note: in expansion of macro 'BDADD8' 3446 | BDADD8(&rsp[1], S_bit, 0); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3446:17: note: in expansion of macro 'BDADD8' 3446 | BDADD8(&rsp[1], S_bit, 0); | ^~~~~~ istgt_iscsi.c: In function 'istgt_iscsi_op_scsi': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:3529:17: note: in expansion of macro 'BGET8' 3529 | I_bit = BGET8(&cp[0], 6); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:3530:17: note: in expansion of macro 'BGET8' 3530 | F_bit = BGET8(&cp[1], 7); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:3531:17: note: in expansion of macro 'BGET8' 3531 | R_bit = BGET8(&cp[1], 6); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:3532:17: note: in expansion of macro 'BGET8' 3532 | W_bit = BGET8(&cp[1], 5); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_iscsi.c:3533:20: note: in expansion of macro 'BGET8W' 3533 | Attr_bit = BGET8W(&cp[1], 2, 3); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3766:9: note: in expansion of macro 'BDADD8' 3766 | BDADD8(&rsp[1], 1, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3766:9: note: in expansion of macro 'BDADD8' 3766 | BDADD8(&rsp[1], 1, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3767:9: note: in expansion of macro 'BDADD8' 3767 | BDADD8(&rsp[1], o_bit, 4); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3767:9: note: in expansion of macro 'BDADD8' 3767 | BDADD8(&rsp[1], o_bit, 4); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3768:9: note: in expansion of macro 'BDADD8' 3768 | BDADD8(&rsp[1], u_bit, 3); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3768:9: note: in expansion of macro 'BDADD8' 3768 | BDADD8(&rsp[1], u_bit, 3); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3769:9: note: in expansion of macro 'BDADD8' 3769 | BDADD8(&rsp[1], O_bit, 2); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3769:9: note: in expansion of macro 'BDADD8' 3769 | BDADD8(&rsp[1], O_bit, 2); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3770:9: note: in expansion of macro 'BDADD8' 3770 | BDADD8(&rsp[1], U_bit, 1); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3770:9: note: in expansion of macro 'BDADD8' 3770 | BDADD8(&rsp[1], U_bit, 1); | ^~~~~~ istgt_iscsi.c: In function 'istgt_iscsi_task_response': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3890:9: note: in expansion of macro 'BDADD8' 3890 | BDADD8(&rsp[1], 1, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3890:9: note: in expansion of macro 'BDADD8' 3890 | BDADD8(&rsp[1], 1, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3891:9: note: in expansion of macro 'BDADD8' 3891 | BDADD8(&rsp[1], o_bit, 4); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3891:9: note: in expansion of macro 'BDADD8' 3891 | BDADD8(&rsp[1], o_bit, 4); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3892:9: note: in expansion of macro 'BDADD8' 3892 | BDADD8(&rsp[1], u_bit, 3); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3892:9: note: in expansion of macro 'BDADD8' 3892 | BDADD8(&rsp[1], u_bit, 3); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3893:9: note: in expansion of macro 'BDADD8' 3893 | BDADD8(&rsp[1], O_bit, 2); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3893:9: note: in expansion of macro 'BDADD8' 3893 | BDADD8(&rsp[1], O_bit, 2); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3894:9: note: in expansion of macro 'BDADD8' 3894 | BDADD8(&rsp[1], U_bit, 1); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:3894:9: note: in expansion of macro 'BDADD8' 3894 | BDADD8(&rsp[1], U_bit, 1); | ^~~~~~ istgt_iscsi.c: In function 'istgt_iscsi_op_task': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:3955:17: note: in expansion of macro 'BGET8' 3955 | I_bit = BGET8(&cp[0], 6); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_iscsi.c:3956:20: note: in expansion of macro 'BGET8W' 3956 | function = BGET8W(&cp[1], 6, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:4077:9: note: in expansion of macro 'BDADD8' 4077 | BDADD8(&rsp[1], 1, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:4077:9: note: in expansion of macro 'BDADD8' 4077 | BDADD8(&rsp[1], 1, 7); | ^~~~~~ istgt_iscsi.c:3943:18: warning: variable 'ExpDataSN' set but not used [-Wunused-but-set-variable] 3943 | uint32_t ExpDataSN; | ^~~~~~~~~ istgt_iscsi.c: In function 'istgt_iscsi_op_nopout': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:4137:17: note: in expansion of macro 'BGET8' 4137 | I_bit = BGET8(&cp[0], 6); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:4219:9: note: in expansion of macro 'BDADD8' 4219 | BDADD8(&rsp[1], 1, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:4219:9: note: in expansion of macro 'BDADD8' 4219 | BDADD8(&rsp[1], 1, 7); | ^~~~~~ istgt_iscsi.c: In function 'istgt_iscsi_op_data': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:4493:17: note: in expansion of macro 'BGET8' 4493 | F_bit = BGET8(&cp[1], 7); | ^~~~~ istgt_iscsi.c:4459:18: warning: variable 'current_lun' set but not used [-Wunused-but-set-variable] 4459 | uint64_t current_lun; | ^~~~~~~~~~~ istgt_iscsi.c:4458:18: warning: variable 'lun' set but not used [-Wunused-but-set-variable] 4458 | uint64_t lun; | ^~~ istgt_iscsi.c: In function 'istgt_iscsi_send_r2t': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:4569:9: note: in expansion of macro 'BDADD8' 4569 | BDADD8(&rsp[1], 1, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:4569:9: note: in expansion of macro 'BDADD8' 4569 | BDADD8(&rsp[1], 1, 7); | ^~~~~~ istgt_iscsi.c: In function 'istgt_iscsi_transfer_out': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_iscsi.c:4767:37: note: in expansion of macro 'BGET8W' 4767 | immediate = BGET8W(&data_pdu.bhs.opcode, 6, 1); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_iscsi.c:4768:34: note: in expansion of macro 'BGET8W' 4768 | opcode = BGET8W(&data_pdu.bhs.opcode, 5, 6); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:4771:33: note: in expansion of macro 'BGET8' 4771 | F_bit = BGET8(&cp[1], 7); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:4942:25: note: in expansion of macro 'BGET8' 4942 | F_bit = BGET8(&cp[1], 7); | ^~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_misc.h:140:21: note: in expansion of macro 'BGET8W' 140 | #define BGET8(B,N) (BGET8W((B),(N),1)) | ^~~~~~ istgt_iscsi.c:4949:25: note: in expansion of macro 'BGET8' 4949 | F_bit = BGET8(&cp[1], 7); | ^~~~~ istgt_iscsi.c:4627:13: warning: variable 'r2t_offset' set but not used [-Wunused-but-set-variable] 4627 | int r2t_offset; | ^~~~~~~~~~ istgt_iscsi.c:4623:13: warning: variable 'immediate' set but not used [-Wunused-but-set-variable] 4623 | int immediate, opcode; | ^~~~~~~~~ istgt_iscsi.c:4608:18: warning: variable 'lun' set but not used [-Wunused-but-set-variable] 4608 | uint64_t lun; | ^~~ istgt_iscsi.c:4607:18: warning: variable 'current_lun' set but not used [-Wunused-but-set-variable] 4607 | uint64_t current_lun; | ^~~~~~~~~~~ istgt_iscsi.c: In function 'istgt_iscsi_send_nopin': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:53: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:5001:9: note: in expansion of macro 'BDADD8' 5001 | BDADD8(&rsp[1], 1, 7); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:39:52: note: in definition of macro 'DSET8' 39 | #define DSET8(B,D) (*((uint8_t *)(B)) = (uint8_t)(D)) | ^ istgt_misc.h:131:108: note: in expansion of macro 'BMASKW' 131 | #define BDADD8W(B,D,N,W) DSET8((B),((DGET8((B)) & ~(BMASKW((W)) << BSHIFTNW((N),(W)))) | (uint8_t) (((D) & BMASKW((W))) << BSHIFTNW((N),(W))))) | ^~~~~~ istgt_misc.h:137:24: note: in expansion of macro 'BDADD8W' 137 | #define BDADD8(B,D,N) (BDADD8W((B),(D),(N),1)) | ^~~~~~~ istgt_iscsi.c:5001:9: note: in expansion of macro 'BDADD8' 5001 | BDADD8(&rsp[1], 1, 7); | ^~~~~~ istgt_iscsi.c: In function 'istgt_iscsi_execute': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_iscsi.c:5037:21: note: in expansion of macro 'BGET8W' 5037 | immediate = BGET8W(&conn->pdu.bhs.opcode, 6, 1); | ^~~~~~ istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_iscsi.c:5038:18: note: in expansion of macro 'BGET8W' 5038 | opcode = BGET8W(&conn->pdu.bhs.opcode, 5, 6); | ^~~~~~ istgt_iscsi.c:5031:13: warning: variable 'immediate' set but not used [-Wunused-but-set-variable] 5031 | int immediate, opcode; | ^~~~~~~~~ istgt_iscsi.c: In function 'worker': istgt_misc.h:128:40: warning: left shift of negative value [-Wshift-negative-value] 128 | #define BMASKW(W) (((W) > 0) ? (~((~0) << (W))) : 0) | ^~ istgt_misc.h:134:67: note: in expansion of macro 'BMASKW' 134 | #define BGET8W(B,N,W) ((*((uint8_t *)(B)) >> BSHIFTNW((N),(W))) & BMASKW((W))) | ^~~~~~ istgt_iscsi.c:5706:34: note: in expansion of macro 'BGET8W' 5706 | opcode = BGET8W(&conn->pdu.bhs.opcode, 5, 6); | ^~~~~~ *** [istgt_iscsi.o] Error code 1 bmake[1]: stopped making "all" in /home/pbulk/build/net/istgt/work/istgt-20150713/src bmake[1]: 1 error bmake[1]: stopped making "all" in /home/pbulk/build/net/istgt/work/istgt-20150713/src *** [all] Error code 2 bmake: stopped making "all" in /home/pbulk/build/net/istgt/work/istgt-20150713 bmake: 1 error bmake: stopped making "all" in /home/pbulk/build/net/istgt/work/istgt-20150713 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/istgt *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/istgt