[openib-general] [PATCH applied] sdp: replace mlock with get_user_pages

Hal Rosenstock halr at voltaire.com
Tue Aug 9 09:44:49 PDT 2005


On Tue, 2005-08-09 at 09:22, Michael S. Tsirkin wrote:
> +static void sdp_copy_one_page(struct page *from, struct page* to, 
> +		      unsigned long iocb_addr, size_t iocb_size,
> +		      unsigned long uaddr)
> +{
> +	size_t size_left = iocb_addr + iocb_size - uaddr;
> +	size_t size = min(size_left,PAGE_SIZE);

The last line results in the following warning on x86:
drivers/infiniband/ulp/sdp/sdp_iocb.c: In function `sdp_copy_one_page':
drivers/infiniband/ulp/sdp/sdp_iocb.c:46: warning: comparison of distinct pointer types lacks a cast

-- Hal




More information about the general mailing list