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

USB: dma: remove unused function prototype

usb_buffer_map_sg() and usb_buffer_unmap_sg() have no definition
since the beginning of v5.4. The rest are gone from 2.6.12.

Signed-off-by: Randy Li <ayaka@soulik.info>
Link: https://lore.kernel.org/r/20230914172336.18761-2-ayaka@soulik.info
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Randy Li and committed by
Greg Kroah-Hartman
1cf56299 03cf2af4

-16
-16
include/linux/usb.h
··· 1823 1823 void usb_free_coherent(struct usb_device *dev, size_t size, 1824 1824 void *addr, dma_addr_t dma); 1825 1825 1826 - #if 0 1827 - struct urb *usb_buffer_map(struct urb *urb); 1828 - void usb_buffer_dmasync(struct urb *urb); 1829 - void usb_buffer_unmap(struct urb *urb); 1830 - #endif 1831 - 1832 - struct scatterlist; 1833 - int usb_buffer_map_sg(const struct usb_device *dev, int is_in, 1834 - struct scatterlist *sg, int nents); 1835 - #if 0 1836 - void usb_buffer_dmasync_sg(const struct usb_device *dev, int is_in, 1837 - struct scatterlist *sg, int n_hw_ents); 1838 - #endif 1839 - void usb_buffer_unmap_sg(const struct usb_device *dev, int is_in, 1840 - struct scatterlist *sg, int n_hw_ents); 1841 - 1842 1826 /*-------------------------------------------------------------------* 1843 1827 * SYNCHRONOUS CALL SUPPORT * 1844 1828 *-------------------------------------------------------------------*/