diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /net-libs/libiscsi/files/libiscsi-1.18.0-fno-common-3.patch | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'net-libs/libiscsi/files/libiscsi-1.18.0-fno-common-3.patch')
-rw-r--r-- | net-libs/libiscsi/files/libiscsi-1.18.0-fno-common-3.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/net-libs/libiscsi/files/libiscsi-1.18.0-fno-common-3.patch b/net-libs/libiscsi/files/libiscsi-1.18.0-fno-common-3.patch new file mode 100644 index 000000000000..e3c34aa6fdbc --- /dev/null +++ b/net-libs/libiscsi/files/libiscsi-1.18.0-fno-common-3.patch @@ -0,0 +1,34 @@ +--- a/test-tool/iscsi-support.c ++++ b/test-tool/iscsi-support.c +@@ -119,7 +119,8 @@ int readonly; + int sbc3_support; + int maximum_transfer_length; + +-int (*real_iscsi_queue_pdu)(struct iscsi_context *iscsi, struct iscsi_pdu *pdu); ++static int (*real_iscsi_queue_pdu)(struct iscsi_context *iscsi, struct iscsi_pdu *pdu); ++int (*local_iscsi_queue_pdu)(struct iscsi_context *iscsi, struct iscsi_pdu *pdu); + + static const unsigned char zeroBlock[4096]; + +--- a/test-tool/iscsi-support.h ++++ b/test-tool/iscsi-support.h +@@ -779,7 +779,7 @@ struct iscsi_async_state { + void wait_until_test_finished(struct iscsi_context *iscsi, struct iscsi_async_state *test_state); + + struct iscsi_pdu; +-int (*local_iscsi_queue_pdu)(struct iscsi_context *iscsi, struct iscsi_pdu *pdu); ++extern int (*local_iscsi_queue_pdu)(struct iscsi_context *iscsi, struct iscsi_pdu *pdu); + + struct scsi_command_descriptor *get_command_descriptor(int opcode, int sa); + +--- a/test-tool/iscsi-test-cu.c ++++ b/test-tool/iscsi-test-cu.c +@@ -63,7 +63,7 @@ static unsigned int maxsectors; + * this allows us to redefine how PDU are queued, at times, for + * testing purposes + */ +-int (*real_iscsi_queue_pdu)(struct iscsi_context *iscsi, struct iscsi_pdu *pdu); ++int (*real_iscsi_queue_pdu)(struct iscsi_context *iscsi, struct iscsi_pdu *pdu) = NULL; + + /***************************************************************** + * |