]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: aic7xxx: Fix compiler warnings triggered by user space code
authorBart Van Assche <bvanassche@acm.org>
Thu, 2 Apr 2026 15:33:33 +0000 (08:33 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 3 Apr 2026 01:18:12 +0000 (21:18 -0400)
commit1821f77fdaec87b31bea950ca465a96601d78ab7
tree7b12e92c63cd8490a20617a75f2c1303c9c90ad3
parent23c29ca113e3838e9c8473c65dbc147bd058d757
scsi: aic7xxx: Fix compiler warnings triggered by user space code

Fix the following compiler warnings:

aicasm_gram.y:1107:24: warning: comparison of different enumeration types
      ('scope_type' and 'enum yytokentype') [-Wenum-compare]
 1107 |                  || last_scope->type == T_ELSE) {
      |                     ~~~~~~~~~~~~~~~~ ^  ~~~~~~
aicasm_scan.l:392:14: warning: using the result of an assignment as a condition
      without parentheses [-Wparentheses]
  392 |                                 while (c = *yptr++) {
      |                                        ~~^~~~~~~~~
aicasm_macro_scan.l:153:1: warning: non-void function does not return a value
      [-Wreturn-type]
  153 | }
      | ^

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260402153341.2909184-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic7xxx/aicasm/aicasm.h
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
drivers/scsi/aic7xxx/aicasm/aicasm_scan.l