The attached patch does the following. 1. Clean up some ifdef confusion in do_mount 2. Clean up the scsi code to make ppa.c work. 3. Clean up some unneccessary unneeded globals from scsi code. 4. Make a bit more sure, that the minor() and friends end up in unsigned int's.