All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Kleikamp <dave.kleikamp@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [shaggy:loop_v3 6/22] mm/iov-iter.c:137:8: sparse: symbol 'ii_bvec_copy_to_user_atomic' was not
Date: Thu, 18 Oct 2012 19:25:25 +0000	[thread overview]
Message-ID: <508057A5.7010501@oracle.com> (raw)
In-Reply-To: <20121018022637.GD21995@yliu-dev.sh.intel.com>

On 10/17/2012 09:26 PM, Yuanhan Liu wrote:
> Hi Zach,
> 
> FYI, there are new sparse warnings show up in
> 
> tree:   git://github.com/kleikamp/linux-shaggy loop_v3
> head:   d6e600319940e6015af553f1515cee9d53a3ced9
> commit: fa7902e69af5b98aee20c6788549a1423eabfd41 [6/22] iov_iter: add bvec support
> 
>   mm/iov-iter.c:40:8: sparse: symbol 'ii_iovec_copy_to_user_atomic' was not declared. Should it be static?
>   mm/iov-iter.c:69:8: sparse: symbol 'ii_iovec_copy_to_user' was not declared. Should it be static?
> + mm/iov-iter.c:137:8: sparse: symbol 'ii_bvec_copy_to_user_atomic' was not declared. Should it be static?
> + mm/iov-iter.c:142:8: sparse: symbol 'ii_bvec_copy_to_user' was not declared. Should it be static?
> + mm/iov-iter.c:147:8: sparse: symbol 'ii_bvec_copy_from_user_atomic' was not declared. Should it be static?
> + mm/iov-iter.c:152:8: sparse: symbol 'ii_bvec_copy_from_user' was not declared. Should it be static?
> + mm/iov-iter.c:162:6: sparse: symbol 'ii_bvec_advance' was not declared. Should it be static?
> + mm/iov-iter.c:189:5: sparse: symbol 'ii_bvec_fault_in_readable' was not declared. Should it be static?
> + mm/iov-iter.c:194:8: sparse: symbol 'ii_bvec_single_seg_count' was not declared. Should it be static?
>   mm/iov-iter.c:244:8: sparse: symbol 'ii_iovec_copy_from_user_atomic' was not declared. Should it be static?
>   mm/iov-iter.c:274:8: sparse: symbol 'ii_iovec_copy_from_user' was not declared. Should it be static?
>   mm/iov-iter.c:295:6: sparse: symbol 'ii_iovec_advance' was not declared. Should it be static?
>   mm/iov-iter.c:340:5: sparse: symbol 'ii_iovec_fault_in_readable' was not declared. Should it be static?
>   mm/iov-iter.c:351:8: sparse: symbol 'ii_iovec_single_seg_count' was not declared. Should it be static?

They can all be static. Fixed in next submission.

Shaggy

> vim +137 mm/iov-iter.c
> 
> fa7902e6 Zach Brown 2012-10-15  121  			       copy);
> fa7902e6 Zach Brown 2012-10-15  122  		kunmap_atomic(bvec_map);
> fa7902e6 Zach Brown 2012-10-15  123  		remaining -= copy;
> fa7902e6 Zach Brown 2012-10-15  124  		bvec_offset += copy;
> fa7902e6 Zach Brown 2012-10-15  125  		page_offset += copy;
> fa7902e6 Zach Brown 2012-10-15  126  		if (bvec_offset = bvec->bv_len) {
> fa7902e6 Zach Brown 2012-10-15  127  			bvec_offset = 0;
> fa7902e6 Zach Brown 2012-10-15  128  			bvec++;
> fa7902e6 Zach Brown 2012-10-15  129  		}
> fa7902e6 Zach Brown 2012-10-15  130  	}
> fa7902e6 Zach Brown 2012-10-15  131  
> fa7902e6 Zach Brown 2012-10-15  132  	kunmap_atomic(page_map);
> fa7902e6 Zach Brown 2012-10-15  133  
> fa7902e6 Zach Brown 2012-10-15  134  	return bytes;
> fa7902e6 Zach Brown 2012-10-15  135  }
> fa7902e6 Zach Brown 2012-10-15  136  
> fa7902e6 Zach Brown 2012-10-15 @137  size_t ii_bvec_copy_to_user_atomic(struct page *page, struct iov_iter *i,
> fa7902e6 Zach Brown 2012-10-15  138  				   unsigned long offset, size_t bytes)
> fa7902e6 Zach Brown 2012-10-15  139  {
> fa7902e6 Zach Brown 2012-10-15  140  	return bvec_copy_tofrom_page(i, page, offset, bytes, 0);
> fa7902e6 Zach Brown 2012-10-15  141  }
> fa7902e6 Zach Brown 2012-10-15  142  size_t ii_bvec_copy_to_user(struct page *page, struct iov_iter *i,
> fa7902e6 Zach Brown 2012-10-15  143  				   unsigned long offset, size_t bytes)
> fa7902e6 Zach Brown 2012-10-15  144  {
> fa7902e6 Zach Brown 2012-10-15  145  	return bvec_copy_tofrom_page(i, page, offset, bytes, 0);
> 
> ---
> 0-DAY kernel build testing backend         Open Source Technology Center
> Fengguang Wu, Yuanhan Liu                              Intel Corporation
> 

      reply	other threads:[~2012-10-18 19:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-18  2:26 [shaggy:loop_v3 6/22] mm/iov-iter.c:137:8: sparse: symbol 'ii_bvec_copy_to_user_atomic' was not decl Yuanhan Liu
2012-10-18 19:25 ` Dave Kleikamp [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=508057A5.7010501@oracle.com \
    --to=dave.kleikamp@oracle.com \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.