Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: wd33c93: Remove dead code related to the long-gone config WD33C93_PIO

The historical commit 5e018f7e60c9 ("Remove PC9800 support") from 2004 in
linux's history.git removed the config WD33C93_PIO to tweak the scsi
wd33c93 driver for the PC9800.

Some dead code in drivers/scsi/wd33c93.[ch] under an ifdef WD33C93_PIO
continued to remain in the repository until now.

Remove this dead code.

This issue was discovered with ./scripts/checkkconfigsymbols.py.

Link: https://lore.kernel.org/r/20220920112921.25275-1-lukas.bulwahn@gmail.com
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Lukas Bulwahn and committed by
Martin K. Petersen
d4a0a0f2 48517eef

-65
-60
drivers/scsi/wd33c93.c
··· 162 162 163 163 static void wd33c93_execute(struct Scsi_Host *instance); 164 164 165 - #ifdef CONFIG_WD33C93_PIO 166 - static inline uchar 167 - read_wd33c93(const wd33c93_regs regs, uchar reg_num) 168 - { 169 - uchar data; 170 - 171 - outb(reg_num, regs.SASR); 172 - data = inb(regs.SCMD); 173 - return data; 174 - } 175 - 176 - static inline unsigned long 177 - read_wd33c93_count(const wd33c93_regs regs) 178 - { 179 - unsigned long value; 180 - 181 - outb(WD_TRANSFER_COUNT_MSB, regs.SASR); 182 - value = inb(regs.SCMD) << 16; 183 - value |= inb(regs.SCMD) << 8; 184 - value |= inb(regs.SCMD); 185 - return value; 186 - } 187 - 188 - static inline uchar 189 - read_aux_stat(const wd33c93_regs regs) 190 - { 191 - return inb(regs.SASR); 192 - } 193 - 194 - static inline void 195 - write_wd33c93(const wd33c93_regs regs, uchar reg_num, uchar value) 196 - { 197 - outb(reg_num, regs.SASR); 198 - outb(value, regs.SCMD); 199 - } 200 - 201 - static inline void 202 - write_wd33c93_count(const wd33c93_regs regs, unsigned long value) 203 - { 204 - outb(WD_TRANSFER_COUNT_MSB, regs.SASR); 205 - outb((value >> 16) & 0xff, regs.SCMD); 206 - outb((value >> 8) & 0xff, regs.SCMD); 207 - outb( value & 0xff, regs.SCMD); 208 - } 209 - 210 - #define write_wd33c93_cmd(regs, cmd) \ 211 - write_wd33c93((regs), WD_COMMAND, (cmd)) 212 - 213 - static inline void 214 - write_wd33c93_cdb(const wd33c93_regs regs, uint len, uchar cmnd[]) 215 - { 216 - int i; 217 - 218 - outb(WD_CDB_1, regs.SASR); 219 - for (i=0; i<len; i++) 220 - outb(cmnd[i], regs.SCMD); 221 - } 222 - 223 - #else /* CONFIG_WD33C93_PIO */ 224 165 static inline uchar 225 166 read_wd33c93(const wd33c93_regs regs, uchar reg_num) 226 167 { ··· 228 287 for (i = 0; i < len; i++) 229 288 *regs.SCMD = cmnd[i]; 230 289 } 231 - #endif /* CONFIG_WD33C93_PIO */ 232 290 233 291 static inline uchar 234 292 read_1_byte(const wd33c93_regs regs)
-5
drivers/scsi/wd33c93.h
··· 180 180 181 181 /* This is what the 3393 chip looks like to us */ 182 182 typedef struct { 183 - #ifdef CONFIG_WD33C93_PIO 184 - unsigned int SASR; 185 - unsigned int SCMD; 186 - #else 187 183 volatile unsigned char *SASR; 188 184 volatile unsigned char *SCMD; 189 - #endif 190 185 } wd33c93_regs; 191 186 192 187