public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: [calxeda:defconfig 1/3] drivers/staging/dgrp/dgrp_mon_ops.c:304:3: error: implicit declaration of fu
Date: Sun, 07 Oct 2012 00:23:16 +0000	[thread overview]
Message-ID: <20121007002316.GB5678@localhost> (raw)

Hi Rob,

FYI, kernel build failed on

tree:   git://sources.calxeda.com/kernel/linux.git defconfig
head:   0ac7be35d2bc4e5e3a72ac55ff242e1adb08fd87
commit: ba183cdf34f104c591094df0cbafdbb735b8113e [1/3] ARM: mvebu: fix build breaks from multi-platform conversion
config: m68k-allmodconfig


All error/warnings:

drivers/staging/dgrp/dgrp_mon_ops.c: In function 'dgrp_mon_read':
drivers/staging/dgrp/dgrp_mon_ops.c:304:3: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
drivers/staging/dgrp/dgrp_specproc.c: In function 'config_proc_write':
drivers/staging/dgrp/dgrp_specproc.c:470:2: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
--
drivers/staging/dgrp/dgrp_tty.c: In function 'drp_wmove':
drivers/staging/dgrp/dgrp_tty.c:1284:4: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration]
drivers/staging/dgrp/dgrp_tty.c: In function 'get_modem_info':
drivers/staging/dgrp/dgrp_tty.c:2267:2: error: implicit declaration of function 'put_user' [-Werror=implicit-function-declaration]
drivers/staging/dgrp/dgrp_tty.c: In function 'set_modem_info':
drivers/staging/dgrp/dgrp_tty.c:2283:2: error: implicit declaration of function 'access_ok' [-Werror=implicit-function-declaration]
drivers/staging/dgrp/dgrp_tty.c:2283:20: error: 'VERIFY_READ' undeclared (first use in this function)
drivers/staging/dgrp/dgrp_tty.c:2283:20: note: each undeclared identifier is reported only once for each function it appears in
drivers/staging/dgrp/dgrp_tty.c:2287:2: error: implicit declaration of function 'get_user' [-Werror=implicit-function-declaration]
drivers/staging/dgrp/dgrp_tty.c: In function 'dgrp_tty_digigetedelay':
drivers/staging/dgrp/dgrp_tty.c:2474:2: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration]
drivers/staging/dgrp/dgrp_tty.c: In function 'dgrp_tty_ioctl':
drivers/staging/dgrp/dgrp_tty.c:2618:18: error: 'VERIFY_WRITE' undeclared (first use in this function)
cc1: some warnings being treated as errors

vim +304 drivers/staging/dgrp/dgrp_mon_ops.c

0b52b749 (Bill Pemberton 2012-09-20  288) 		if (rtn)
0b52b749 (Bill Pemberton 2012-09-20  289) 			return rtn;
0b52b749 (Bill Pemberton 2012-09-20  290) 
0b52b749 (Bill Pemberton 2012-09-20  291) 		down(&nd->nd_mon_semaphore);
0b52b749 (Bill Pemberton 2012-09-20  292) 	}
0b52b749 (Bill Pemberton 2012-09-20  293) 
0b52b749 (Bill Pemberton 2012-09-20  294) 	/*
0b52b749 (Bill Pemberton 2012-09-20  295) 	 *  Read whatever is there.
0b52b749 (Bill Pemberton 2012-09-20  296) 	 */
0b52b749 (Bill Pemberton 2012-09-20  297) 
0b52b749 (Bill Pemberton 2012-09-20  298) 	if (res > count)
0b52b749 (Bill Pemberton 2012-09-20  299) 		res = count;
0b52b749 (Bill Pemberton 2012-09-20  300) 
0b52b749 (Bill Pemberton 2012-09-20  301) 	r = MON_MAX - nd->nd_mon_out;
0b52b749 (Bill Pemberton 2012-09-20  302) 
0b52b749 (Bill Pemberton 2012-09-20  303) 	if (r <= res) {
0b52b749 (Bill Pemberton 2012-09-20 @304) 		rtn = copy_to_user((void __user *)buf,
0b52b749 (Bill Pemberton 2012-09-20  305) 				   nd->nd_mon_buf + nd->nd_mon_out, r);
0b52b749 (Bill Pemberton 2012-09-20  306) 		if (rtn) {
0b52b749 (Bill Pemberton 2012-09-20  307) 			up(&nd->nd_mon_semaphore);
0b52b749 (Bill Pemberton 2012-09-20  308) 			return -EFAULT;
0b52b749 (Bill Pemberton 2012-09-20  309) 		}
0b52b749 (Bill Pemberton 2012-09-20  310) 
0b52b749 (Bill Pemberton 2012-09-20  311) 		nd->nd_mon_out = 0;
0b52b749 (Bill Pemberton 2012-09-20  312) 		res -= r;

The code at line 304 was first introduced by commit:
0b52b74 staging: Add dgrp driver for Digi Realport devices

---
0-DAY kernel build testing backend         Open Source Technology Center
Fengguang Wu, Yuanhan Liu                              Intel Corporation

                 reply	other threads:[~2012-10-07  0:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20121007002316.GB5678@localhost \
    --to=fengguang.wu@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox