linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jon@ringle.org
To: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org
Cc: gregkh@linuxfoundation.org, shc_work@mail.ru,
	Jon Ringle <jringle@gridpoint.com>
Subject: [PATCH 2/2] serial: sc16is7xx: fix implicit decl of func copy_{to,from}_user
Date: Fri, 25 Apr 2014 15:53:10 -0400	[thread overview]
Message-ID: <1398455590-4374-2-git-send-email-jon@ringle.org> (raw)
In-Reply-To: <1398455590-4374-1-git-send-email-jon@ringle.org>

From: Jon Ringle <jringle@gridpoint.com>

Fix by including linux/uaccess.h:

   drivers/tty/serial/sc16is7xx.c: In function 'sc16is7xx_ioctl':
>> drivers/tty/serial/sc16is7xx.c:861:3: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration]
>> drivers/tty/serial/sc16is7xx.c:867:3: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration]

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
---
 drivers/tty/serial/sc16is7xx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c
index ed139f5..7206a64 100644
--- a/drivers/tty/serial/sc16is7xx.c
+++ b/drivers/tty/serial/sc16is7xx.c
@@ -25,6 +25,7 @@
 #include <linux/serial.h>
 #include <linux/tty.h>
 #include <linux/tty_flip.h>
+#include <linux/uaccess.h>
 
 #define SC16IS7XX_NAME			"sc16is7xx"
 
-- 
1.8.5.4

  reply	other threads:[~2014-04-25 19:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-25 19:53 [PATCH 1/2] serial: sc16is7xx: depend on I2C jon
2014-04-25 19:53 ` jon [this message]
2014-04-25 20:23 ` Greg KH
2014-04-25 20:26   ` Alexander Shiyan
2014-04-25 20:35     ` Greg KH
2014-04-25 20:39       ` Alexander Shiyan
2014-04-25 20:42         ` Randy Dunlap

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=1398455590-4374-2-git-send-email-jon@ringle.org \
    --to=jon@ringle.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jringle@gridpoint.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=shc_work@mail.ru \
    /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;
as well as URLs for NNTP newsgroup(s).