<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: 微软雅黑; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.7601.18365"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>Hi, Ayan&nbsp;Kumar&nbsp;Halder:</DIV>
<DIV style="TEXT-INDENT: 2em">I have changed the code to #include 
&lt;asm/switch_io.h&gt;, compile OK now.</DIV>
<DIV>I'll test it as you say too.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks!</DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>

<DIV><SPAN>jinzhao@wingtech.com</SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV 
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV 
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B>&nbsp;<A href="mailto:ayankumarh@gmail.com">AYAN KUMAR 
HALDER</A></DIV>
<DIV><B>Date:</B>&nbsp;2014-06-03&nbsp;19:01</DIV>
<DIV><B>To:</B>&nbsp;<A href="mailto:varkab@cdac.in">Varka Bhadram</A></DIV>
<DIV><B>CC:</B>&nbsp;<A 
href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies</A>; <A 
href="mailto:jinzhao@wingtech.com">jinzhao</A></DIV>
<DIV><B>Subject:</B>&nbsp;Re: Re: can't find 
&lt;asm/system.h&gt;</DIV></DIV></DIV>
<DIV>
<DIV>Hi&nbsp;Jinzhao,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Did&nbsp;you&nbsp;specify&nbsp;the&nbsp;include&nbsp;path&nbsp;(&nbsp;as&nbsp;/usr/src/linux-headers-3.11.</DIV>
<DIV>0-20-generic/arch/arm/&nbsp;)</DIV>
<DIV>with&nbsp;-I&nbsp;option&nbsp;while&nbsp;compiling&nbsp;your&nbsp;code.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>Ayan&nbsp;Kumar&nbsp;Halder</DIV>
<DIV>&nbsp;</DIV>
<DIV>On&nbsp;Tue,&nbsp;Jun&nbsp;3,&nbsp;2014&nbsp;at&nbsp;2:05&nbsp;PM,&nbsp;Varka&nbsp;Bhadram&nbsp;&lt;varkab@cdac.in&gt;&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp;For&nbsp;which&nbsp;architecture&nbsp;you&nbsp;are&nbsp;compiling&nbsp;?</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;On&nbsp;June&nbsp;3,&nbsp;2014&nbsp;at&nbsp;1:58&nbsp;PM&nbsp;"jinzhao@wingtech.com"&nbsp;&lt;jinzhao@wingtech.com&gt;</DIV>
<DIV>&gt;&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;And&nbsp;I&nbsp;can&nbsp;find&nbsp;"system.h"&nbsp;in&nbsp;the&nbsp;path&nbsp;of&nbsp;"</DIV>
<DIV>&gt;&nbsp;/usr/src/linux-headers-3.11.0-20-generic/arch/arm/include/asm&nbsp;".</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;________________________________</DIV>
<DIV>&gt;&nbsp;jinzhao@wingtech.com</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;From:&nbsp;&nbsp;jinzhao@wingtech.com</DIV>
<DIV>&gt;&nbsp;Date:&nbsp;2014-06-03&nbsp;16:24</DIV>
<DIV>&gt;&nbsp;To:&nbsp;&nbsp;Varka&nbsp;Bhadram;&nbsp;kernelnewbies</DIV>
<DIV>&gt;&nbsp;Subject:&nbsp;Re:&nbsp;Re:&nbsp;can't&nbsp;find&nbsp;&lt;asm/system.h&gt;</DIV>
<DIV>&gt;&nbsp;The&nbsp;kernel&nbsp;version&nbsp;is&nbsp;3.11.0-20-generic</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;________________________________</DIV>
<DIV>&gt;&nbsp;jinzhao@wingtech.com</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;From:&nbsp;&nbsp;Varka&nbsp;Bhadram</DIV>
<DIV>&gt;&nbsp;Date:&nbsp;2014-06-03&nbsp;16:20</DIV>
<DIV>&gt;&nbsp;To:&nbsp;&nbsp;kernelnewbies;&nbsp;jinzhao</DIV>
<DIV>&gt;&nbsp;Subject:&nbsp;Re:&nbsp;can't&nbsp;find&nbsp;&lt;asm/system.h&gt;</DIV>
<DIV>&gt;&nbsp;What&nbsp;is&nbsp;the&nbsp;kernel&nbsp;version&nbsp;that&nbsp;your&nbsp;are&nbsp;using?</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;If&nbsp;the&nbsp;kernel&nbsp;version&nbsp;&gt;&nbsp;3.3</DIV>
<DIV>&gt;&nbsp;#inclued&nbsp;asm/switch_to.h&nbsp;[0]</DIV>
<DIV>&gt;&nbsp;else</DIV>
<DIV>&gt;&nbsp;#include&nbsp;&lt;asm/system.h&gt;&nbsp;[1]</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;Regards,</DIV>
<DIV>&gt;&nbsp;Varka&nbsp;Bhadram</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;[0]&nbsp;:</DIV>
<DIV>&gt;&nbsp;http://lxr.free-electrons.com/source/arch/x86/include/asm/switch_to.h?v=3.4</DIV>
<DIV>&gt;&nbsp;[1]&nbsp;:</DIV>
<DIV>&gt;&nbsp;http://lxr.free-electrons.com/source/arch/x86/include/asm/system.h?v=3.3</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;On&nbsp;June&nbsp;3,&nbsp;2014&nbsp;at&nbsp;11:53&nbsp;AM&nbsp;"jinzhao@wingtech.com"&nbsp;&lt;jinzhao@wingtech.com&gt;</DIV>
<DIV>&gt;&nbsp;wrote:</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;Dears:</DIV>
<DIV>&gt;&nbsp;My&nbsp;system&nbsp;is&nbsp;ubuntu&nbsp;12.04.&nbsp;In&nbsp;my&nbsp;code,&nbsp;I&nbsp;include&nbsp;the&nbsp;file&nbsp;&lt;asm/system.h&gt;,</DIV>
<DIV>&gt;&nbsp;but&nbsp;when&nbsp;compiling&nbsp;the&nbsp;code,&nbsp;show&nbsp;the&nbsp;error&nbsp;as&nbsp;"can't&nbsp;find&nbsp;the&nbsp;file&nbsp;or</DIV>
<DIV>&gt;&nbsp;directory&nbsp;asm/system.h".&nbsp;Why??</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;Thanks!</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;_______________________________________________</DIV>
<DIV>&gt;&nbsp;Kernelnewbies&nbsp;mailing&nbsp;list</DIV>
<DIV>&gt;&nbsp;Kernelnewbies@kernelnewbies.org</DIV>
<DIV>&gt;&nbsp;http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;-------------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV>&gt;&nbsp;[&nbsp;C-DAC&nbsp;is&nbsp;on&nbsp;Social-Media&nbsp;too.&nbsp;Kindly&nbsp;follow&nbsp;us&nbsp;at:</DIV>
<DIV>&gt;&nbsp;Facebook:&nbsp;https://www.facebook.com/CDACINDIA&nbsp;&amp;&nbsp;Twitter:&nbsp;@cdacindia&nbsp;]</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;This&nbsp;e-mail&nbsp;is&nbsp;for&nbsp;the&nbsp;sole&nbsp;use&nbsp;of&nbsp;the&nbsp;intended&nbsp;recipient(s)&nbsp;and&nbsp;may</DIV>
<DIV>&gt;&nbsp;contain&nbsp;confidential&nbsp;and&nbsp;privileged&nbsp;information.&nbsp;If&nbsp;you&nbsp;are&nbsp;not&nbsp;the</DIV>
<DIV>&gt;&nbsp;intended&nbsp;recipient,&nbsp;please&nbsp;contact&nbsp;the&nbsp;sender&nbsp;by&nbsp;reply&nbsp;e-mail&nbsp;and&nbsp;destroy</DIV>
<DIV>&gt;&nbsp;all&nbsp;copies&nbsp;and&nbsp;the&nbsp;original&nbsp;message.&nbsp;Any&nbsp;unauthorized&nbsp;review,&nbsp;use,</DIV>
<DIV>&gt;&nbsp;disclosure,&nbsp;dissemination,&nbsp;forwarding,&nbsp;printing&nbsp;or&nbsp;copying&nbsp;of&nbsp;this&nbsp;email</DIV>
<DIV>&gt;&nbsp;is&nbsp;strictly&nbsp;prohibited&nbsp;and&nbsp;appropriate&nbsp;legal&nbsp;action&nbsp;will&nbsp;be&nbsp;taken.</DIV>
<DIV>&gt;&nbsp;-------------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;__________&nbsp;Information&nbsp;from&nbsp;ESET&nbsp;NOD32&nbsp;Antivirus,&nbsp;version&nbsp;of&nbsp;virus&nbsp;signature</DIV>
<DIV>&gt;&nbsp;database&nbsp;9883&nbsp;(20140602)&nbsp;__________</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;The&nbsp;message&nbsp;was&nbsp;checked&nbsp;by&nbsp;ESET&nbsp;NOD32&nbsp;Antivirus.</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;http://www.eset.com</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;_______________________________________________</DIV>
<DIV>&gt;&nbsp;Kernelnewbies&nbsp;mailing&nbsp;list</DIV>
<DIV>&gt;&nbsp;Kernelnewbies@kernelnewbies.org</DIV>
<DIV>&gt;&nbsp;http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;-------------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV>&gt;&nbsp;[&nbsp;C-DAC&nbsp;is&nbsp;on&nbsp;Social-Media&nbsp;too.&nbsp;Kindly&nbsp;follow&nbsp;us&nbsp;at:</DIV>
<DIV>&gt;&nbsp;Facebook:&nbsp;https://www.facebook.com/CDACINDIA&nbsp;&amp;&nbsp;Twitter:&nbsp;@cdacindia&nbsp;]</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;This&nbsp;e-mail&nbsp;is&nbsp;for&nbsp;the&nbsp;sole&nbsp;use&nbsp;of&nbsp;the&nbsp;intended&nbsp;recipient(s)&nbsp;and&nbsp;may</DIV>
<DIV>&gt;&nbsp;contain&nbsp;confidential&nbsp;and&nbsp;privileged&nbsp;information.&nbsp;If&nbsp;you&nbsp;are&nbsp;not&nbsp;the</DIV>
<DIV>&gt;&nbsp;intended&nbsp;recipient,&nbsp;please&nbsp;contact&nbsp;the&nbsp;sender&nbsp;by&nbsp;reply&nbsp;e-mail&nbsp;and&nbsp;destroy</DIV>
<DIV>&gt;&nbsp;all&nbsp;copies&nbsp;and&nbsp;the&nbsp;original&nbsp;message.&nbsp;Any&nbsp;unauthorized&nbsp;review,&nbsp;use,</DIV>
<DIV>&gt;&nbsp;disclosure,&nbsp;dissemination,&nbsp;forwarding,&nbsp;printing&nbsp;or&nbsp;copying&nbsp;of&nbsp;this&nbsp;email</DIV>
<DIV>&gt;&nbsp;is&nbsp;strictly&nbsp;prohibited&nbsp;and&nbsp;appropriate&nbsp;legal&nbsp;action&nbsp;will&nbsp;be&nbsp;taken.</DIV>
<DIV>&gt;&nbsp;-------------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;_______________________________________________</DIV>
<DIV>&gt;&nbsp;Kernelnewbies&nbsp;mailing&nbsp;list</DIV>
<DIV>&gt;&nbsp;Kernelnewbies@kernelnewbies.org</DIV>
<DIV>&gt;&nbsp;http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</DIV>
<DIV>&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>__________&nbsp;Information&nbsp;from&nbsp;ESET&nbsp;NOD32&nbsp;Antivirus,&nbsp;version&nbsp;of&nbsp;virus&nbsp;signature&nbsp;database&nbsp;9883&nbsp;(20140602)&nbsp;__________</DIV>
<DIV>&nbsp;</DIV>
<DIV>The&nbsp;message&nbsp;was&nbsp;checked&nbsp;by&nbsp;ESET&nbsp;NOD32&nbsp;Antivirus.</DIV>
<DIV>&nbsp;</DIV>
<DIV>http://www.eset.com</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></DIV></BODY></HTML>