vgaarb: mark vga_tryget static
Subsystems (2)
PATCH 1/1 vgaarb: mark vga_tryget static
This symbols isn't used anywhere outside of vgaarb.c.
Signed-off-by Christoph Hellwig <[email protected]>
--- drivers/gpu/vga/vgaarb.c | 3 +-- include/linux/vgaarb.h | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-)
drivers/gpu/vga/vgaarb.c +1 -2
@@ -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 @@ int vga_tryget(struct pci_dev *pdev, unsigned int rsrc)spin_unlock_irqrestore (&vga_lock, flags);return rc; } -EXPORT_SYMBOL (vga_tryget);/** * vga_put - release lock on legacy VGA resources
include/linux/vgaarb.h +0 -6
@@ -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
Signature · 1 line
2.27.0
Quoted 3 lines · Christoph Hellwig
This symbols isn't used anywhere outside of
vgaarb.c.Signed-off-by Christoph Hellwig <[email protected]>
Nice catch, patch queued up for 5.9.
Thanks, Daniel
Quoted 46 lines
--- drivers/gpu/vga/vgaarb.c | 3 +-- include/linux/vgaarb.h | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-)drivers/gpu/vga/vgaarb.c +1
-2@@ -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 @@ int vga_tryget(struct pci_dev *pdev, unsigned int rsrc)spin_unlock_irqrestore (&vga_lock, flags);return rc; } -EXPORT_SYMBOL (vga_tryget);/** * vga_put - release lock on legacy VGA resources include/linux/vgaarb.h +0
-6@@ -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 Signature · 1 line
2.27.0
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel