Bart Van Assche
2be2a4701a
scripts/specialize-patch: Evaluate 0 && defined(...) as 0
...
Fixes: 7b375842e9 ("qla2x00t-32gbit: Fix two recently introduced build errors")
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9419 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-05-19 14:10:26 +00:00
Bart Van Assche
3a83346fba
scripts/specialize-patch: Clamp sublevel to 255
...
See also Linux kernel commit 9b82f13e7ef3 ("kbuild: clamp SUBLEVEL to 255";
v5.12-rc1).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9369 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2021-03-28 14:42:20 +00:00
Bart Van Assche
ab65209f50
scripts/run-regression-tests: Improve support for UEK kernels
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9220 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-12-20 02:40:29 +00:00
Bart Van Assche
af0b6a2895
scripts/specialize-patch: Handle _COMPAT_LINUX_MM_H correctly
...
Fixes: 5930b4db71 ("scst: Fix the MOFED build")
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9183 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-11-19 03:46:04 +00:00
Bart Van Assche
8a22ef6289
ib_srpt, iscsi-scst: Port to Linux kernel v5.8
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9060 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-07-25 14:09:23 +00:00
Bart Van Assche
ffabb52e9b
scripts/specialize-patch: Strip trailing whitespace
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9034 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-06-29 15:15:55 +00:00
Bart Van Assche
bfbc3ac6e7
scripts/specialize-patch: Improve RHEL / CentOS support
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9029 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-06-21 16:08:48 +00:00
Bart Van Assche
676b1717fb
scripts/specialize-patch: More bug fixes for RHEL / CentOS kernels
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8889 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-10 18:37:03 +00:00
Bart Van Assche
1195daa855
scripts/specialize-patch: Fix RHEL kernel version checks
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8887 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-05-09 22:56:56 +00:00
Bart Van Assche
5ca9d97b65
scst: Remove the code that depends on the SCSI_EXEC_REQ_FIFO_DEFINED macro
...
The exec_req_fifo patches have been removed some time ago. Hence also remove
the code that depends on these patches having been applied. See also commit
78d6da4517 ("scst: Remove obsolete exec_req_fifo kernel patches"; r8022).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8698 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-23 18:55:58 +00:00
Bart Van Assche
ffb1b505cc
scripts/specialize-patch: Fix expansion of HAVE_IB_SG_DMA_LEN
...
This patch fixes commit ac145e1cb6 ("ib_srpt: Detect ib_sg_dma_len()
presence at compile time"; r8655).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8691 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-23 15:37:37 +00:00
Bart Van Assche
ac145e1cb6
ib_srpt: Detect ib_sg_dma_len() presence at compile time
...
This patch makes it possible to build the ib_srpt driver against a kernel
before v5.1 + latest MOFED.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8655 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-11-08 21:28:37 +00:00
Bart Van Assche
e634e03a78
scripts/specialize-patch: Add support for HAVE_SRP_DATA_DESC_IMM
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8654 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-11-08 21:17:29 +00:00
Bart Van Assche
5d3e3e9590
scripts/specialize-patch: Port to RHEL 8
...
Signed-off-by: Ivan Orlov <orlov@soligran.ru >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8615 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-10-09 02:41:48 +00:00
Bart Van Assche
982e33160f
scripts/specialize-patch: Fix a gawk warning
...
gawk: scripts/specialize-patch:329: (FILENAME=- FNR=26) warning: regexp escape sequence `\&' is not a known regexp operator
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8597 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-09-29 23:13:49 +00:00
Bart Van Assche
ef98056164
scripts/specialize-patch: Expand HAVE_DEV_ATTR_MAX_RECV_SGE
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8407 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-02 15:48:12 +00:00
Bart Van Assche
8e862c6d9b
iscsi-scst, srpt: Restore MOFED_MAJOR and MOFED_MINOR definitions
...
This patch reverts commit bcdb25e550 (r7363).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8397 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-30 13:41:27 +00:00
Bart Van Assche
22f1132073
Makefiles: Rework build mode switching
...
Move the build_mode file from the top level into the scst directory. Write
build mode defines into scst/include/build_mode.h and include that file
directly or indirectly in all source files that depend on these #defines.
This approach has the advantage that "make clean" does no longer has to
be run when switching between build modes because the kernel build system
recognizes build_mode.h as a dependency and triggers a rebuild of all
source files that directly or indirectly include the build_mode.h header
file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8347 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 18:19:38 +00:00
Bart Van Assche
cb194c3c1b
scripts/specialize-patch: Fix handling of #endif followed by a tab
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8082 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-25 23:30:32 +00:00
Bart Van Assche
68b40638de
scripts/specialize-patch: Add support for UEK_KABI_RENAME
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8042 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-10 16:45:23 +00:00
Bart Van Assche
1b23ac9120
scripts/specialize-patch: Support specializing a patch for RHEL 6.x/7.x
...
This patch is based on a patch from <orlov@soligran.ru >.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8020 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-09 23:08:47 +00:00
Bart Van Assche
e87970d094
scripts/specialize-patch: Remove a duplicate test
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8003 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-05 02:25:33 +00:00
Bart Van Assche
e170b8dabc
ib_srpt: Port to Linux kernel v4.21
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7853 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-12-31 19:06:37 +00:00
Bart Van Assche
6619a1a6ae
scripts/specialize-patch: Follow-up for the kernel v4.19 port
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7474 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-08-28 01:36:38 +00:00
Bart Van Assche
6864e0b759
scripts/run-regression-tests: Include the qla2xxx driver
...
Make sure that not only the qla2x00tgt but also the qla2xxx_scst driver
gets built when scripts/run-regression-tests is run.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7442 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-07-23 04:32:28 +00:00
Bart Van Assche
953b86a9a2
scripts/specialize-patch: Add a comment
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7440 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-07-23 04:29:55 +00:00
Bart Van Assche
93d779dab6
scripts/specialize-patch: Add support for HAVE_DEV_ATTR_MAX_SEND_SGE and HAVE_RDMA_QUERY_GID
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7424 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-07-14 14:43:58 +00:00
Bart Van Assche
0c5875eac5
scripts/specialize-patch: Add support for HAVE_STRUCT_SRP_LOGIN_REQ_RDMA
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7384 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-03-04 19:37:36 +00:00
Bart Van Assche
bcdb25e550
iscsi-scst, srpt: Remove MOFED_MAJOR and MOFED_MINOR definitions
...
Commit r7084 removed all users of MOFED_MAJOR. Hence also remove the
code that sets that variable. Note: MOFED_MINOR was never used in any
.c file.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7363 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2018-02-05 17:24:46 +00:00
Bart Van Assche
9b33ce46bb
scripts/specialize-patch: Add support for SOCK_RECVMSG_HAS_FOUR_ARGS
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7273 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-12-19 16:45:22 +00:00
Bart Van Assche
7b5dcab494
scripts/specialize-patch: Fix #elif handling
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7255 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-12 15:03:13 +00:00
Bart Van Assche
1a82332127
scripts/specialize-patch: Process CONFIG_SCST_STRICT_SERIALIZING correctly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7238 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-03 00:05:42 +00:00
Bart Van Assche
57bc445974
scripts/specialize-patch: Process ENABLE_NPIV and FC_VPORT_CREATE_DEFINED correctly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7236 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-10-02 23:56:47 +00:00
Bart Van Assche
1b4ba27d76
scripts/specialize-patch: Add support for HAVE_RDMA_DESTROY_AH
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7223 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-08-28 01:38:30 +00:00
Bart Van Assche
6912463c2e
ib_srpt: Fix nightly build
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7081 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-12-27 20:21:53 +00:00
Bart Van Assche
d2dd61c072
isert-scst, srpt: Fix build on systems with kernel >= 4.2.0 + MOFED 3.3
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6973 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2016-08-22 04:28:52 +00:00
Bart Van Assche
837413b419
scripts/specialize-patch: Fix handling of complex #if / #elif / #else / #endif constructs
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6515 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-17 21:17:55 +00:00
Bart Van Assche
3c3590a477
scripts/specialize-patch: Simplify implementation
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6514 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-17 20:57:47 +00:00
Bart Van Assche
ead4f8c43e
scripts/specialize-patch: Simplify implementation
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6513 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-17 20:57:11 +00:00
Bart Van Assche
bd19ba30fd
scripts/specialize-patch: Add more debugging output
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6512 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-17 20:34:50 +00:00
Bart Van Assche
f1df6a389b
scripts/specialize-patch: Fix #elif handling
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6511 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-09-17 18:39:14 +00:00
Bart Van Assche
bc070bc1bc
scripts/specialize-patch: Handle #if 0 / #elif statement combinations correctly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6431 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-07-28 05:38:07 +00:00
Bart Van Assche
e01d03fe2f
scripts/specialize-patch: Recognize identifiers correctly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6237 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-11 04:18:47 +00:00
Bart Van Assche
77abedc121
scripts/generate-kernel-patch: Add support for kernel versions >= 4.0.1
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6224 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-06-09 13:33:11 +00:00
Bart Van Assche
8cb332836f
scripts/specialize-patch: Fix a bug in evaluate()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6176 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-04-01 07:17:17 +00:00
Bart Van Assche
e7e2e4e17c
scripts/specialize-patch: Reduce noise in nightly build output
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5889 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-26 19:42:10 +00:00
Bart Van Assche
a41cf8bc0a
scripts/specialize-patch: Support blanks around numbers inside parentheses
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5888 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-11-26 16:25:57 +00:00
Bart Van Assche
ead35aa554
scripts/specialize-patch: Rework r5405
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5406 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-04 05:50:52 +00:00
Bart Van Assche
366970312c
scripts/specialize-patch: Handle numbers surrounded by parentheses properly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5405 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-04-04 04:38:33 +00:00
Bart Van Assche
69b6db5f43
scripts/specialize-patch: Add support for shift operator in preprocessor expressions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4933 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-08-03 18:05:18 +00:00