lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZtyOuDQtWHU4Phr7@DUT025-TGLU.fm.intel.com>
Date: Sat, 7 Sep 2024 17:34:48 +0000
From: Matthew Brost <matthew.brost@...el.com>
To: Min-Hua Chen <minhuadotchen@...il.com>
CC: Christian Koenig <christian.koenig@....com>, Huang Rui
	<ray.huang@....com>, Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
	Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
	David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>, Thomas
 Hellström <thomas.hellstrom@...ux.intel.com>,
	<dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH for-next] drm/ttm: make ttm_swap_ops static

On Sat, Sep 07, 2024 at 11:36:41AM +0800, Min-Hua Chen wrote:
> make ttm_swap_ops static to fix the following sparse warning:
> 
> drivers/gpu/drm/ttm/ttm_bo.c:1142:31: sparse: warning: symbol
> 'ttm_swap_ops' was not declared. Should it be static?
> 

This looks correct. I'd drop the 'Should it be static?' from commit
messge though. Assume a maintainer of TTM can drop at megre time.

With that:
Reviewed-by: Matthew Brost <matthew.brost@...el.com>

> Fixes: 10efe34dae79 ("drm/ttm: Use the LRU walker helper for swapping")
> Signed-off-by: Min-Hua Chen <minhuadotchen@...il.com>
> ---
>  drivers/gpu/drm/ttm/ttm_bo.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
> index 320592435252..1aab30767e41 100644
> --- a/drivers/gpu/drm/ttm/ttm_bo.c
> +++ b/drivers/gpu/drm/ttm/ttm_bo.c
> @@ -1139,7 +1139,7 @@ ttm_bo_swapout_cb(struct ttm_lru_walk *walk, struct ttm_buffer_object *bo)
>  	return ret;
>  }
>  
> -const struct ttm_lru_walk_ops ttm_swap_ops = {
> +static const struct ttm_lru_walk_ops ttm_swap_ops = {
>  	.process_bo = ttm_bo_swapout_cb,
>  };
>  
> -- 
> 2.43.0
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ