[Intel-gfx] [drm-intel:for-linux-next 190/192] drivers/gpu/drm/i915/intel_pm.c:6929:5: sparse: symbol 'byt_gpu_freq' was not declared. Should it be static?

Daniel Vetter daniel at ffwll.ch
Sat Jul 12 11:22:19 CEST 2014


On Sat, Jul 12, 2014 at 01:54:34AM +0800, kbuild test robot wrote:
> tree:   git://anongit.freedesktop.org/drm-intel for-linux-next
> head:   7707df4ad6c73e005098c4b4db2f86494e9d404d
> commit: 22b1b2f866b2089d8264e367121c9c9ee0689da4 [190/192] drm/i915: CHV GPU frequency to opcode functions
> reproduce: make C=1 CF=-D__CHECK_ENDIAN__
> 
> 
> sparse warnings: (new ones prefixed by >>)
> 
> >> drivers/gpu/drm/i915/intel_pm.c:6929:5: sparse: symbol 'byt_gpu_freq' was not declared. Should it be static?
> >> drivers/gpu/drm/i915/intel_pm.c:6951:5: sparse: symbol 'byt_freq_opcode' was not declared. Should it be static?
> >> drivers/gpu/drm/i915/intel_pm.c:6973:5: sparse: symbol 'chv_gpu_freq' was not declared. Should it be static?
> >> drivers/gpu/drm/i915/intel_pm.c:6998:5: sparse: symbol 'chv_freq_opcode' was not declared. Should it be static?
> 
> Please consider folding the attached diff :-)

Oh, missed that when fixing up missing static from this series.

Queued for -next, thanks for the patch.
-Daniel

> 
> ---
> 0-DAY kernel build testing backend              Open Source Technology Center
> http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation

> From: Fengguang Wu <fengguang.wu at intel.com>
> Subject: [PATCH drm-intel] drm/i915: byt_gpu_freq() can be static
> TO: Deepak S <deepak.s at linux.intel.com>
> CC: Daniel Vetter <daniel.vetter at ffwll.ch>
> CC: intel-gfx at lists.freedesktop.org 
> CC: dri-devel at lists.freedesktop.org 
> CC: linux-kernel at vger.kernel.org 
> 
> CC: Deepak S <deepak.s at linux.intel.com>
> CC: Daniel Vetter <daniel.vetter at ffwll.ch>
> Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
> ---
>  intel_pm.c |    8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 1ec777a..656f951 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -6926,7 +6926,7 @@ int sandybridge_pcode_write(struct drm_i915_private *dev_priv, u8 mbox, u32 val)
>  	return 0;
>  }
>  
> -int byt_gpu_freq(struct drm_i915_private *dev_priv, int val)
> +static int byt_gpu_freq(struct drm_i915_private *dev_priv, int val)
>  {
>  	int div;
>  
> @@ -6948,7 +6948,7 @@ int byt_gpu_freq(struct drm_i915_private *dev_priv, int val)
>  	return DIV_ROUND_CLOSEST(dev_priv->mem_freq * (val + 6 - 0xbd), 4 * div);
>  }
>  
> -int byt_freq_opcode(struct drm_i915_private *dev_priv, int val)
> +static int byt_freq_opcode(struct drm_i915_private *dev_priv, int val)
>  {
>  	int mul;
>  
> @@ -6970,7 +6970,7 @@ int byt_freq_opcode(struct drm_i915_private *dev_priv, int val)
>  	return DIV_ROUND_CLOSEST(4 * mul * val, dev_priv->mem_freq) + 0xbd - 6;
>  }
>  
> -int chv_gpu_freq(struct drm_i915_private *dev_priv, int val)
> +static int chv_gpu_freq(struct drm_i915_private *dev_priv, int val)
>  {
>  	int div, freq;
>  
> @@ -6995,7 +6995,7 @@ int chv_gpu_freq(struct drm_i915_private *dev_priv, int val)
>  	return freq;
>  }
>  
> -int chv_freq_opcode(struct drm_i915_private *dev_priv, int val)
> +static int chv_freq_opcode(struct drm_i915_private *dev_priv, int val)
>  {
>  	int mul, opcode;
>  


-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list