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

mISDN: remove unused vpm_read_address and cpld_read_reg functions

clang with W=1 reports
drivers/isdn/hardware/mISDN/hfcmulti.c:667:1: error: unused function
'vpm_read_address' [-Werror,-Wunused-function]
vpm_read_address(struct hfc_multi *c)
^

drivers/isdn/hardware/mISDN/hfcmulti.c:643:1: error: unused function
'cpld_read_reg' [-Werror,-Wunused-function]
cpld_read_reg(struct hfc_multi *hc, unsigned char reg)
^

These functions are not used, so remove them.

Reported-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230323161343.2633836-1-trix@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Tom Rix and committed by
Jakub Kicinski
2d08f3e1 dc0a7b52

-31
-31
drivers/isdn/hardware/mISDN/hfcmulti.c
··· 639 639 return; 640 640 } 641 641 642 - static inline unsigned char 643 - cpld_read_reg(struct hfc_multi *hc, unsigned char reg) 644 - { 645 - unsigned char bytein; 646 - 647 - cpld_set_reg(hc, reg); 648 - 649 - /* Do data pin read low byte */ 650 - HFC_outb(hc, R_GPIO_OUT1, reg); 651 - 652 - enablepcibridge(hc); 653 - bytein = readpcibridge(hc, 1); 654 - disablepcibridge(hc); 655 - 656 - return bytein; 657 - } 658 - 659 642 static inline void 660 643 vpm_write_address(struct hfc_multi *hc, unsigned short addr) 661 644 { 662 645 cpld_write_reg(hc, 0, 0xff & addr); 663 646 cpld_write_reg(hc, 1, 0x01 & (addr >> 8)); 664 - } 665 - 666 - static inline unsigned short 667 - vpm_read_address(struct hfc_multi *c) 668 - { 669 - unsigned short addr; 670 - unsigned short highbit; 671 - 672 - addr = cpld_read_reg(c, 0); 673 - highbit = cpld_read_reg(c, 1); 674 - 675 - addr = addr | (highbit << 8); 676 - 677 - return addr & 0x1ff; 678 647 } 679 648 680 649 static inline unsigned char