OSDN Git Service

intel: annotate the intel genx helpers as public
authorMauro Rossi <issor.oruam@gmail.com>
Wed, 17 Oct 2018 07:38:05 +0000 (09:38 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Wed, 17 Oct 2018 07:38:05 +0000 (09:38 +0200)
intel_is_genx() and intel_get_genx() which are now private
were actually being used by drm_gralloc_intel,
this patch annotates them as drm_public

intel/intel_chipset.c
intel/intel_chipset.h

index 5aa4a2f..58b8e21 100644 (file)
@@ -44,7 +44,7 @@ static const struct pci_device {
        INTEL_SKL_IDS(9),
 };
 
-drm_private bool intel_is_genx(unsigned int devid, int gen)
+drm_public bool intel_is_genx(unsigned int devid, int gen)
 {
        const struct pci_device *p,
                  *pend = pciids + sizeof(pciids) / sizeof(pciids[0]);
@@ -66,7 +66,7 @@ drm_private bool intel_is_genx(unsigned int devid, int gen)
        return false;
 }
 
-drm_private bool intel_get_genx(unsigned int devid, int *gen)
+drm_public bool intel_get_genx(unsigned int devid, int *gen)
 {
        const struct pci_device *p,
                  *pend = pciids + sizeof(pciids) / sizeof(pciids[0]);
index 8b5fe0a..5f075c5 100644 (file)
 #include <stdbool.h>
 #include <libdrm_macros.h>
 
-drm_private bool intel_is_genx(unsigned int devid, int gen);
-drm_private bool intel_get_genx(unsigned int devid, int *gen);
+drm_public bool intel_is_genx(unsigned int devid, int gen);
+drm_public bool intel_get_genx(unsigned int devid, int *gen);
 
 #define IS_GEN9(devid) intel_is_genx(devid, 9)
 #define IS_GEN10(devid) intel_is_genx(devid, 10)