Build error while building Linux Kernel 3.4

2014-06-03 Thread Dipanjan Das
Hi. I tried building Linux Kernel 3.4 from the source on Ubuntu 10.04 (Linux LAPTOP 2.6.32-21-generic #32-Ubuntu), gcc 4.4.3 on Intel processor. Here's the output: make[1]: Nothing to be done for `all'. make[1]: Nothing to be done for `relocs'. CHK include/linux/version.h CHK

can't find asm/system.h

2014-06-03 Thread jinz...@wingtech.com
Dears: My system is ubuntu 12.04. In my code, I include the file asm/system.h, but when compiling the code, show the error as can't find the file or directory asm/system.h. Why?? Thanks!___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: can't find asm/system.h

2014-06-03 Thread Varka Bhadram
What is the kernel version that your are using? If the kernel version 3.3 #inclued asm/switch_to.h [0] else #include asm/system.h [1] Regards, Varka Bhadram [0] : http://lxr.free-electrons.com/source/arch/x86/include/asm/switch_to.h?v=3.4 [1] :

Re: Re: can't find asm/system.h

2014-06-03 Thread jinz...@wingtech.com
The kernel version is 3.11.0-20-generic jinz...@wingtech.com From: Varka Bhadram Date: 2014-06-03 16:20 To: kernelnewbies; jinzhao Subject: Re: can't find asm/system.h What is the kernel version that your are using? If the kernel version 3.3 #inclued asm/switch_to.h [0] else #include

Re: Re: can't find asm/system.h

2014-06-03 Thread jinz...@wingtech.com
And I can find system.h in the path of /usr/src/linux-headers-3.11.0-20-generic/arch/arm/include/asm . jinz...@wingtech.com From: jinz...@wingtech.com Date: 2014-06-03 16:24 To: Varka Bhadram; kernelnewbies Subject: Re: Re: can't find asm/system.h The kernel version is 3.11.0-20-generic

Re: Re: can't find asm/system.h

2014-06-03 Thread Varka Bhadram
For which architecture you are compiling ? On June 3, 2014 at 1:58 PM jinz...@wingtech.com jinz...@wingtech.com wrote:  And I can find system.h in the path of /usr/src/linux-headers-3.11.0-20-generic/arch/arm/include/asm .

Re: EXPORT_SYMBOL and rebinding functions

2014-06-03 Thread AYAN KUMAR HALDER
Hi Peter, I can think of two simple ways of achieving the same without messing up with exported symbols. 1. If your intention is to use a common api to call function_1/my_print_function and function_2, then use a common placeholder. Assign it to function_1/my_print_function. Use the placeholder

Re: Re: can't find asm/system.h

2014-06-03 Thread AYAN KUMAR HALDER
Hi Jinzhao, Did you specify the include path ( as /usr/src/linux-headers-3.11. 0-20-generic/arch/arm/ ) with -I option while compiling your code. Regards, Ayan Kumar Halder On Tue, Jun 3, 2014 at 2:05 PM, Varka Bhadram var...@cdac.in wrote: For which architecture you are compiling ? On June

Re: For whoever wants to fix an unused variable in netfilter

2014-06-03 Thread Luca Ellero
Il 31/05/2014 08:45, Raphael S Carvalho write: net/netfilter/nfnetlink.c: In function 'nfnetlink_rcv': net/netfilter/nfnetlink.c:363:14: warning: unused variable 'net' [-Wunused-variable] struct net *net = sock_net(skb-sk); ^ Have fun! It's already fixed in linux-next

Re: can't find asm/system.h

2014-06-03 Thread Valdis . Kletnieks
On Tue, 03 Jun 2014 14:23:22 +0800, jinz...@wingtech.com said: In my code, I include the file asm/system.h, but when compiling the code, show the error as can't find the file or directory asm/system.h. Why?? Probably because either: 1) Your Makefile isn't set up to use the Kbuild architecture,

Re: remote devices

2014-06-03 Thread Valdis . Kletnieks
On Mon, 02 Jun 2014 19:12:47 -0700, riya khanna said: Thanks for pointing this out! I was wondering if it is possible to use a remote GPU through /dev/gpu. No. The upshot is that whenever you open a character or block special device, it's handled as a local reference, even if the directory

Re: EXPORT_SYMBOL and rebinding functions

2014-06-03 Thread Valdis . Kletnieks
On Mon, 02 Jun 2014 20:29:16 -0700, Peter Tosh said: function_1() { do some stuff } my_print_function = function_1 EXPORT_SYMBOL(my_print_function) No, you want EXPORT_SYMBOL(function_1) here. function_t() { doing different stuff } my_print_fuction = function_2 And

Creating Patches

2014-06-03 Thread me storage
Hi i have one doubt when creating patch files. if consider a file a.txt it contains This is a simple file. i added to git and commit it. Next i changed the file as This is a slightly more complex file. Again i added to git and commit it. Now if i create a patch by using the below commands git

Re: Creating Patches

2014-06-03 Thread Valdis . Kletnieks
On Tue, 03 Jun 2014 22:15:21 +0530, me storage said: diff --git a/a.txt b/a.txt index 76e499a..c341c1c 100644 --- a/a.txt +++ b/a.txt @@ -1,5 +1,5 @@ this is a -simple +slightly more complex file file. My doubt is how to create patch file which contains the modifications only

Re: Man pages for Kernel API

2014-06-03 Thread John de la Garza
On Tue, Jun 03, 2014 at 10:12:24AM +0530, Dipanjan Das wrote: Hi, Like there is section #2 of man pages dedicated to syscalls, is there any official way to get the list of all supported Kernal APIs? check out the man page for man itself (man man) look for this: 9 Kernel routines [Non

Re: Creating Patches

2014-06-03 Thread Bernd Petrovitsch
On Die, 2014-06-03 at 22:15 +0530, me storage wrote: [...] My doubt is how to create patch file which contains the modifications only i.e lines with + only why because for example initially if a file contains 1000 rows after i changed 2 lines but in the patch file it is taking entire 1000+2

How to test a syscall prior to compiling the kernel

2014-06-03 Thread Dipanjan Das
Hi, While adding a syscall, how do I test the syscall code itself? If I simply try to compile the C file individually, will the compiler be able find the includes? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org