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
This commit is contained in:
Bart Van Assche
2019-12-23 18:55:58 +00:00
parent 6fde88d57b
commit 5ca9d97b65
5 changed files with 5 additions and 36 deletions

View File

@@ -226,14 +226,6 @@ function evaluate(stmnt, pattern, arg, op, result) {
gsub("defined\\(UEK_KABI_RENAME\\)", "0", stmnt)
if (SCSI_EXEC_REQ_FIFO_DEFINED != "")
{
gsub("defined[[:blank:]]+SCSI_EXEC_REQ_FIFO_DEFINED",
SCSI_EXEC_REQ_FIFO_DEFINED, stmnt)
gsub("defined[[:blank:]]*\\([[:blank:]]*SCSI_EXEC_REQ_FIFO_DEFINED[[:blank:]]*\\)",
SCSI_EXEC_REQ_FIFO_DEFINED, stmnt)
}
if (SCST_IO_CONTEXT != "")
{
gsub("defined[[:blank:]]+SCST_IO_CONTEXT", SCST_IO_CONTEXT, stmnt)
@@ -428,7 +420,6 @@ function handle_if(evaluated)
&& $0 ~ "GENERATING_UPSTREAM_PATCH" \
|| $0 ~ "CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION" \
|| ($0 ~ "CONFIG_SCST_PROC" && config_scst_proc_undefined) \
|| ($0 ~ "SCSI_EXEC_REQ_FIFO_DEFINED" && SCSI_EXEC_REQ_FIFO_DEFINED!="") \
|| ($0 ~ "SCST_IO_CONTEXT" && SCST_IO_CONTEXT != ""))
{
}
@@ -523,19 +514,9 @@ function process_preprocessor_statement(evaluated, condition) {
printf "/* debug specialize-patch: (g2) %s: output = %d */\n", \
evaluated, output
}
if (evaluated ~ "^+#define SCSI_EXEC_REQ_FIFO_DEFINED$" \
&& SCSI_EXEC_REQ_FIFO_DEFINED != "" \
|| evaluated ~ "^+#define SCST_IO_CONTEXT$" \
&& SCST_IO_CONTEXT != "" \
|| (evaluated ~ "^+#define CONFIG_SCST_PROC$" \
&& config_scst_proc_undefined))
{
discard = 1
delete_next_blank_line = 1
}
else if (output && (!condition || \
decision[if_nesting_level + (evaluated ~ "^+#endif$")] \
!~ "^+#(el|)if [01]"))
if (output && (!condition || \
decision[if_nesting_level + (evaluated ~ "^+#endif$")] \
!~ "^+#(el|)if [01]"))
{
if (evaluated == "+#if undecided" \
|| (evaluated !~ "^+#if" \