Skip to content

Commit f369bc3

Browse files
Christoph Hellwigdanvet
authored andcommitted
vgaarb: mark vga_tryget static
This symbols isn't used anywhere outside of vgaarb.c. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 70c8b4b commit f369bc3

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

drivers/gpu/vga/vgaarb.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ EXPORT_SYMBOL(vga_get);
529529
*
530530
* 0 on success, negative error code on failure.
531531
*/
532-
int vga_tryget(struct pci_dev *pdev, unsigned int rsrc)
532+
static int vga_tryget(struct pci_dev *pdev, unsigned int rsrc)
533533
{
534534
struct vga_device *vgadev;
535535
unsigned long flags;
@@ -554,7 +554,6 @@ int vga_tryget(struct pci_dev *pdev, unsigned int rsrc)
554554
spin_unlock_irqrestore(&vga_lock, flags);
555555
return rc;
556556
}
557-
EXPORT_SYMBOL(vga_tryget);
558557

559558
/**
560559
* vga_put - release lock on legacy VGA resources

include/linux/vgaarb.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,6 @@ static inline int vga_get_uninterruptible(struct pci_dev *pdev,
109109
return vga_get(pdev, rsrc, 0);
110110
}
111111

112-
#if defined(CONFIG_VGA_ARB)
113-
extern int vga_tryget(struct pci_dev *pdev, unsigned int rsrc);
114-
#else
115-
static inline int vga_tryget(struct pci_dev *pdev, unsigned int rsrc) { return 0; }
116-
#endif
117-
118112
#if defined(CONFIG_VGA_ARB)
119113
extern void vga_put(struct pci_dev *pdev, unsigned int rsrc);
120114
#else

0 commit comments

Comments
 (0)