[SCSI] aic7xxx: teach aicasm to not emit unused debug code/data
authorHannes Reinecke <hare@suse.de>
Fri, 25 Apr 2008 13:01:41 +0000 (15:01 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 27 Apr 2008 17:20:00 +0000 (12:20 -0500)
commit3dbd10f3d8b00dad35d3fac95e91c066ae71d9a8
treecbd020e0d4e9911afc88dbfc725f66139fb30129
parenta198c3d0393faa1fa9f0e6e917ce980d3638f8df
[SCSI] aic7xxx: teach aicasm to not emit unused debug code/data

Add a 'count' variable to each symbol which gets increased every time
the symbol is referenced.  And then modify the register definition to
include counts for symbols which are referenced from the source code
only and not from the sequencer code.

This will give us an automatic usage count for the symbols with only
minimal hand-crafting.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/aic7xxx/aic79xx.reg
drivers/scsi/aic7xxx/aic7xxx.reg
drivers/scsi/aic7xxx/aicasm/aicasm.c
drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
drivers/scsi/aic7xxx/aicasm/aicasm_scan.l
drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c
drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h