drm/i915: Drop extern qualifiers from header function prototypes
Follow dim checkpatch recommendation so it doesn't complain on that now and again on header file modifications. v2: drop testing leftover (Chris) Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190712112429.740-2-janusz.krzysztofik@linux.intel.com
This commit is contained in:
parent
6239901c57
commit
b5893ffc27
|
@ -81,7 +81,7 @@ i915_gem_object_lookup(struct drm_file *file, u32 handle)
|
|||
}
|
||||
|
||||
__deprecated
|
||||
extern struct drm_gem_object *
|
||||
struct drm_gem_object *
|
||||
drm_gem_object_lookup(struct drm_file *file, u32 handle);
|
||||
|
||||
__attribute__((nonnull))
|
||||
|
|
|
@ -205,17 +205,18 @@ struct intel_vgpu_gtt {
|
|||
struct intel_vgpu_scratch_pt scratch_pt[GTT_TYPE_MAX];
|
||||
};
|
||||
|
||||
extern int intel_vgpu_init_gtt(struct intel_vgpu *vgpu);
|
||||
extern void intel_vgpu_clean_gtt(struct intel_vgpu *vgpu);
|
||||
int intel_vgpu_init_gtt(struct intel_vgpu *vgpu);
|
||||
void intel_vgpu_clean_gtt(struct intel_vgpu *vgpu);
|
||||
void intel_vgpu_reset_ggtt(struct intel_vgpu *vgpu, bool invalidate_old);
|
||||
void intel_vgpu_invalidate_ppgtt(struct intel_vgpu *vgpu);
|
||||
|
||||
extern int intel_gvt_init_gtt(struct intel_gvt *gvt);
|
||||
int intel_gvt_init_gtt(struct intel_gvt *gvt);
|
||||
void intel_vgpu_reset_gtt(struct intel_vgpu *vgpu);
|
||||
extern void intel_gvt_clean_gtt(struct intel_gvt *gvt);
|
||||
void intel_gvt_clean_gtt(struct intel_gvt *gvt);
|
||||
|
||||
extern struct intel_vgpu_mm *intel_gvt_find_ppgtt_mm(struct intel_vgpu *vgpu,
|
||||
int page_table_level, void *root_entry);
|
||||
struct intel_vgpu_mm *intel_gvt_find_ppgtt_mm(struct intel_vgpu *vgpu,
|
||||
int page_table_level,
|
||||
void *root_entry);
|
||||
|
||||
struct intel_vgpu_oos_page {
|
||||
struct intel_vgpu_ppgtt_spt *spt;
|
||||
|
|
|
@ -2390,19 +2390,17 @@ __i915_printk(struct drm_i915_private *dev_priv, const char *level,
|
|||
__i915_printk(dev_priv, KERN_ERR, fmt, ##__VA_ARGS__)
|
||||
|
||||
#ifdef CONFIG_COMPAT
|
||||
extern long i915_compat_ioctl(struct file *filp, unsigned int cmd,
|
||||
unsigned long arg);
|
||||
long i915_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
|
||||
#else
|
||||
#define i915_compat_ioctl NULL
|
||||
#endif
|
||||
extern const struct dev_pm_ops i915_pm_ops;
|
||||
|
||||
extern int i915_driver_load(struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent);
|
||||
extern void i915_driver_unload(struct drm_device *dev);
|
||||
int i915_driver_load(struct pci_dev *pdev, const struct pci_device_id *ent);
|
||||
void i915_driver_unload(struct drm_device *dev);
|
||||
|
||||
extern void intel_engine_init_hangcheck(struct intel_engine_cs *engine);
|
||||
extern void intel_hangcheck_init(struct drm_i915_private *dev_priv);
|
||||
void intel_engine_init_hangcheck(struct intel_engine_cs *engine);
|
||||
void intel_hangcheck_init(struct drm_i915_private *dev_priv);
|
||||
int vlv_force_gfx_clock(struct drm_i915_private *dev_priv, bool on);
|
||||
|
||||
u32 intel_calculate_mcr_s_ss_select(struct drm_i915_private *dev_priv);
|
||||
|
@ -2672,14 +2670,14 @@ int intel_engine_cmd_parser(struct intel_engine_cs *engine,
|
|||
bool is_master);
|
||||
|
||||
/* i915_perf.c */
|
||||
extern void i915_perf_init(struct drm_i915_private *dev_priv);
|
||||
extern void i915_perf_fini(struct drm_i915_private *dev_priv);
|
||||
extern void i915_perf_register(struct drm_i915_private *dev_priv);
|
||||
extern void i915_perf_unregister(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_init(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_fini(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_register(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_unregister(struct drm_i915_private *dev_priv);
|
||||
|
||||
/* i915_suspend.c */
|
||||
extern int i915_save_state(struct drm_i915_private *dev_priv);
|
||||
extern int i915_restore_state(struct drm_i915_private *dev_priv);
|
||||
int i915_save_state(struct drm_i915_private *dev_priv);
|
||||
int i915_restore_state(struct drm_i915_private *dev_priv);
|
||||
|
||||
/* i915_sysfs.c */
|
||||
void i915_setup_sysfs(struct drm_i915_private *dev_priv);
|
||||
|
@ -2693,23 +2691,22 @@ mkwrite_device_info(struct drm_i915_private *dev_priv)
|
|||
}
|
||||
|
||||
/* modesetting */
|
||||
extern void intel_modeset_init_hw(struct drm_device *dev);
|
||||
extern int intel_modeset_init(struct drm_device *dev);
|
||||
extern void intel_modeset_cleanup(struct drm_device *dev);
|
||||
extern int intel_modeset_vga_set_state(struct drm_i915_private *dev_priv,
|
||||
bool state);
|
||||
extern void intel_display_resume(struct drm_device *dev);
|
||||
extern void i915_redisable_vga(struct drm_i915_private *dev_priv);
|
||||
extern void i915_redisable_vga_power_on(struct drm_i915_private *dev_priv);
|
||||
extern void intel_init_pch_refclk(struct drm_i915_private *dev_priv);
|
||||
void intel_modeset_init_hw(struct drm_device *dev);
|
||||
int intel_modeset_init(struct drm_device *dev);
|
||||
void intel_modeset_cleanup(struct drm_device *dev);
|
||||
int intel_modeset_vga_set_state(struct drm_i915_private *dev_priv, bool state);
|
||||
void intel_display_resume(struct drm_device *dev);
|
||||
void i915_redisable_vga(struct drm_i915_private *dev_priv);
|
||||
void i915_redisable_vga_power_on(struct drm_i915_private *dev_priv);
|
||||
void intel_init_pch_refclk(struct drm_i915_private *dev_priv);
|
||||
|
||||
int i915_reg_read_ioctl(struct drm_device *dev, void *data,
|
||||
struct drm_file *file);
|
||||
|
||||
extern struct intel_display_error_state *
|
||||
struct intel_display_error_state *
|
||||
intel_display_capture_error_state(struct drm_i915_private *dev_priv);
|
||||
extern void intel_display_print_error_state(struct drm_i915_error_state_buf *e,
|
||||
struct intel_display_error_state *error);
|
||||
void intel_display_print_error_state(struct drm_i915_error_state_buf *e,
|
||||
struct intel_display_error_state *error);
|
||||
|
||||
#define __I915_REG_OP(op__, dev_priv__, ...) \
|
||||
intel_uncore_##op__(&(dev_priv__)->uncore, __VA_ARGS__)
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
struct drm_i915_private;
|
||||
struct intel_crtc;
|
||||
|
||||
extern void intel_irq_init(struct drm_i915_private *dev_priv);
|
||||
extern void intel_irq_fini(struct drm_i915_private *dev_priv);
|
||||
void intel_irq_init(struct drm_i915_private *dev_priv);
|
||||
void intel_irq_fini(struct drm_i915_private *dev_priv);
|
||||
int intel_irq_install(struct drm_i915_private *dev_priv);
|
||||
void intel_irq_uninstall(struct drm_i915_private *dev_priv);
|
||||
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_BDW_H__
|
||||
#define __I915_OA_BDW_H__
|
||||
|
||||
extern void i915_perf_load_test_config_bdw(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_bdw(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_BXT_H__
|
||||
#define __I915_OA_BXT_H__
|
||||
|
||||
extern void i915_perf_load_test_config_bxt(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_bxt(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_CFLGT2_H__
|
||||
#define __I915_OA_CFLGT2_H__
|
||||
|
||||
extern void i915_perf_load_test_config_cflgt2(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_cflgt2(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_CFLGT3_H__
|
||||
#define __I915_OA_CFLGT3_H__
|
||||
|
||||
extern void i915_perf_load_test_config_cflgt3(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_cflgt3(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_CHV_H__
|
||||
#define __I915_OA_CHV_H__
|
||||
|
||||
extern void i915_perf_load_test_config_chv(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_chv(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_CNL_H__
|
||||
#define __I915_OA_CNL_H__
|
||||
|
||||
extern void i915_perf_load_test_config_cnl(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_cnl(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_GLK_H__
|
||||
#define __I915_OA_GLK_H__
|
||||
|
||||
extern void i915_perf_load_test_config_glk(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_glk(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_HSW_H__
|
||||
#define __I915_OA_HSW_H__
|
||||
|
||||
extern void i915_perf_load_test_config_hsw(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_hsw(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_ICL_H__
|
||||
#define __I915_OA_ICL_H__
|
||||
|
||||
extern void i915_perf_load_test_config_icl(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_icl(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_KBLGT2_H__
|
||||
#define __I915_OA_KBLGT2_H__
|
||||
|
||||
extern void i915_perf_load_test_config_kblgt2(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_kblgt2(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_KBLGT3_H__
|
||||
#define __I915_OA_KBLGT3_H__
|
||||
|
||||
extern void i915_perf_load_test_config_kblgt3(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_kblgt3(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_SKLGT2_H__
|
||||
#define __I915_OA_SKLGT2_H__
|
||||
|
||||
extern void i915_perf_load_test_config_sklgt2(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_sklgt2(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_SKLGT3_H__
|
||||
#define __I915_OA_SKLGT3_H__
|
||||
|
||||
extern void i915_perf_load_test_config_sklgt3(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_sklgt3(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
#ifndef __I915_OA_SKLGT4_H__
|
||||
#define __I915_OA_SKLGT4_H__
|
||||
|
||||
extern void i915_perf_load_test_config_sklgt4(struct drm_i915_private *dev_priv);
|
||||
void i915_perf_load_test_config_sklgt4(struct drm_i915_private *dev_priv);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
#include <uapi/drm/i915_drm.h>
|
||||
|
||||
/* For use by IPS driver */
|
||||
extern unsigned long i915_read_mch_val(void);
|
||||
extern bool i915_gpu_raise(void);
|
||||
extern bool i915_gpu_lower(void);
|
||||
extern bool i915_gpu_busy(void);
|
||||
extern bool i915_gpu_turbo_disable(void);
|
||||
unsigned long i915_read_mch_val(void);
|
||||
bool i915_gpu_raise(void);
|
||||
bool i915_gpu_lower(void);
|
||||
bool i915_gpu_busy(void);
|
||||
bool i915_gpu_turbo_disable(void);
|
||||
|
||||
/* Exported from arch/x86/kernel/early-quirks.c */
|
||||
extern struct resource intel_graphics_stolen_res;
|
||||
|
|
Loading…
Reference in New Issue
Block a user