LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2020, 01:09 PM   #1
harish1402
LQ Newbie
 
Registered: Jul 2020
Posts: 1

Rep: Reputation: Disabled
while compiling the char driver code i am getting asm/uaccess .h fatal error how to solve plz let me know


chardriver1.c:4:10: fatal error: asm/uaccess.h: No such file or directory
#include <asm/uaccess.h>
^~~~~~~~~~~~~~~


chardriver1.c:67:11: error: ‘KERN_ALERT’ undeclared (first use in this function)
printk(KERN_ALERT "registering char device failed with %d\n", Major);
 
Old 09-12-2020, 02:36 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by harish1402 View Post
Code:
chardriver1.c:4:10: fatal error: asm/uaccess.h: No such file or directory
 #include <asm/uaccess.h>
          ^~~~~~~~~~~~~~~

chardriver1.c:67:11: error: ‘KERN_ALERT’ undeclared (first use in this function)
    printk(KERN_ALERT "registering char device failed with %d\n", Major);
Please read the LQ Rules and the "Question Guidelines". You provide no details about your system, what you're doing to get that message, where you got the code, etc. We cannot guess.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache asm and asm-util locations for loading server 2.4.9 InterceptorF Linux - Server 4 06-26-2014 12:29 AM
[SOLVED] error: asm/ppc_asm.h: No such file or directory and error: asm/processor.h: No such f Thirupathip Linux - Newbie 3 01-25-2013 03:02 AM
inline asm, 64-bit asm, intercepting segfaults, etc. rainbowsally Programming 0 02-04-2012 05:10 PM
ASM x32 vs ASM x64 Tegramon Programming 3 02-27-2008 02:26 PM
asm/uaccess.h eltn Programming 2 10-22-2004 06:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration