vgaarb: mark vga_tryget static
This symbols isn't used anywhere outside of vgaarb.c. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20200801061713.307434-1-hch@lst.de
This commit is contained in:
Родитель
70c8b4b8ab
Коммит
f369bc3f90
|
@ -529,7 +529,7 @@ EXPORT_SYMBOL(vga_get);
|
|||
*
|
||||
* 0 on success, negative error code on failure.
|
||||
*/
|
||||
int vga_tryget(struct pci_dev *pdev, unsigned int rsrc)
|
||||
static int vga_tryget(struct pci_dev *pdev, unsigned int rsrc)
|
||||
{
|
||||
struct vga_device *vgadev;
|
||||
unsigned long flags;
|
||||
|
@ -554,7 +554,6 @@ bail:
|
|||
spin_unlock_irqrestore(&vga_lock, flags);
|
||||
return rc;
|
||||
}
|
||||
EXPORT_SYMBOL(vga_tryget);
|
||||
|
||||
/**
|
||||
* vga_put - release lock on legacy VGA resources
|
||||
|
|
|
@ -109,12 +109,6 @@ static inline int vga_get_uninterruptible(struct pci_dev *pdev,
|
|||
return vga_get(pdev, rsrc, 0);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_VGA_ARB)
|
||||
extern int vga_tryget(struct pci_dev *pdev, unsigned int rsrc);
|
||||
#else
|
||||
static inline int vga_tryget(struct pci_dev *pdev, unsigned int rsrc) { return 0; }
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_VGA_ARB)
|
||||
extern void vga_put(struct pci_dev *pdev, unsigned int rsrc);
|
||||
#else
|
||||
|
|
Загрузка…
Ссылка в новой задаче