Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b358d0a6 authored by Hannes Eder's avatar Hannes Eder Committed by Dave Airlie
Browse files

drm/i915: fix sparse warnings: make symbols static



Signed-off-by: default avatarHannes Eder <hannes@hanneseder.net>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 95281e35
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -821,7 +821,7 @@ static int i915_set_status_page(struct drm_device *dev, void *data,
 * some RAM for the framebuffer at early boot.  This code figures out
 * how much was set aside so we can use it for our own purposes.
 */
int i915_probe_agp(struct drm_device *dev, unsigned long *aperture_size,
static int i915_probe_agp(struct drm_device *dev, unsigned long *aperture_size,
			  unsigned long *preallocated_size)
{
	struct pci_dev *bridge_dev;
@@ -1007,7 +1007,7 @@ void i915_master_destroy(struct drm_device *dev, struct drm_master *master)
}


int i915_driver_firstopen(struct drm_device *dev)
static int i915_driver_firstopen(struct drm_device *dev)
{
	if (drm_core_check_feature(dev, DRIVER_MODESET))
		return 0;
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@
#include "drm_pciids.h"
#include <linux/console.h>

unsigned int i915_modeset = -1;
static unsigned int i915_modeset = -1;
module_param_named(modeset, i915_modeset, int, 0400);

unsigned int i915_fbpercrtc = 0;
+2 −2
Original line number Diff line number Diff line
@@ -257,8 +257,8 @@ void opregion_enable_asle(struct drm_device *dev)

static struct intel_opregion *system_opregion;

int intel_opregion_video_event(struct notifier_block *nb, unsigned long val,
			       void *data)
static int intel_opregion_video_event(struct notifier_block *nb,
				      unsigned long val, void *data)
{
	/* The only video events relevant to opregion are 0x80. These indicate
	   either a docking event, lid switch or display switch request. In
+1 −1
Original line number Diff line number Diff line
@@ -237,7 +237,7 @@ static const struct drm_connector_helper_funcs intel_crt_connector_helper_funcs
	.best_encoder = intel_best_encoder,
};

void intel_crt_enc_destroy(struct drm_encoder *encoder)
static void intel_crt_enc_destroy(struct drm_encoder *encoder)
{
	drm_encoder_cleanup(encoder);
}
+3 −3
Original line number Diff line number Diff line
@@ -343,7 +343,7 @@ intel_wait_for_vblank(struct drm_device *dev)
	udelay(20000);
}

void
static void
intel_pipe_set_base(struct drm_crtc *crtc, int x, int y)
{
	struct drm_device *dev = crtc->dev;
@@ -1329,7 +1329,7 @@ static const struct drm_crtc_funcs intel_crtc_funcs = {
};


void intel_crtc_init(struct drm_device *dev, int pipe)
static void intel_crtc_init(struct drm_device *dev, int pipe)
{
	struct intel_crtc *intel_crtc;
	int i;
@@ -1375,7 +1375,7 @@ struct drm_crtc *intel_get_crtc_from_pipe(struct drm_device *dev, int pipe)
	return crtc;
}

int intel_connector_clones(struct drm_device *dev, int type_mask)
static int intel_connector_clones(struct drm_device *dev, int type_mask)
{
	int index_mask = 0;
	struct drm_connector *connector;
Loading