diff options
author | Tom Rix <trix@redhat.com> | 2021-05-17 23:50:57 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-05-22 05:05:50 +0300 |
commit | b4de11dfb569043be2cb38b2b1031e64f8ee0ff6 (patch) | |
tree | 35b00fee923b62a9771cea8d2e0836e07f9942b7 /drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h | |
parent | 7e7606330b167a0ff483fb02caed9267bfab69ee (diff) | |
download | linux-b4de11dfb569043be2cb38b2b1031e64f8ee0ff6.tar.xz |
scsi: aic7xxx: Remove multiple definition of globals
Building aicasm with gcc 10.2 + gas 26.1 causes these errors:
multiple definition of `args';
multiple definition of `yylineno';
args came from the expansion of:
STAILQ_HEAD(macro_arg_list, macro_arg) args;
The definition of the macro_arg_list structure is needed, the global
variable 'args' is not, so delete it.
yylineno is defined by flex, so defining it in bison/*.y file is not
needed. Also delete this.
Link: https://lore.kernel.org/r/20210517205057.1850010-1-trix@redhat.com
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h')
-rw-r--r-- | drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h b/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h index 7bf7fd5953ac..ed3bdd43c297 100644 --- a/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h +++ b/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h @@ -108,7 +108,7 @@ struct macro_arg { regex_t arg_regex; char *replacement_text; }; -STAILQ_HEAD(macro_arg_list, macro_arg) args; +STAILQ_HEAD(macro_arg_list, macro_arg); struct macro_info { struct macro_arg_list args; |