mirror of https://gitee.com/openkylin/linux.git
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:
parent
70c8b4b8ab
commit
f369bc3f90
|
@ -529,7 +529,7 @@ EXPORT_SYMBOL(vga_get);
|
||||||
*
|
*
|
||||||
* 0 on success, negative error code on failure.
|
* 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;
|
struct vga_device *vgadev;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
@ -554,7 +554,6 @@ int vga_tryget(struct pci_dev *pdev, unsigned int rsrc)
|
||||||
spin_unlock_irqrestore(&vga_lock, flags);
|
spin_unlock_irqrestore(&vga_lock, flags);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(vga_tryget);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* vga_put - release lock on legacy VGA resources
|
* 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);
|
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)
|
#if defined(CONFIG_VGA_ARB)
|
||||||
extern void vga_put(struct pci_dev *pdev, unsigned int rsrc);
|
extern void vga_put(struct pci_dev *pdev, unsigned int rsrc);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue