]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit8d196afad3bacee8ebea97d5747070dc21b92208
treecbd020e0d4e9911afc88dbfc725f66139fb30129
parentb7ede7e9a4d1d1a2d6d5f0e2a2af6c8cbae8bff8
[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