Module compilation error on another machine

2015-05-03 Thread Harsh Jain
Hi All,

I am trying to compile simple kernel module. It gives following error. Same
module compiles succesfully on another 64 bit ubuntu OS.Any idea what
different in environment can cause this. Both machine are ubuntu 12.04. On
32 ubuntu bit compilation fails.

In file included from /home/aricent/try5/eudy_misc_driver.c:7:0:
include/asm-generic/uaccess.h:41:0: warning: access_ok redefined [enabled
by default]
 #define access_ok(type, addr, size) __access_ok((unsigned
long)(addr),(size))
 ^
In file included from
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/sections.h:5:0,
 from
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/hw_irq.h:26,
 from include/linux/irq.h:368,
 from
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/hardirq.h:5,
 from include/linux/preempt_mask.h:5,
 from include/linux/sched.h:25,
 from include/asm-generic/uaccess.h:9,
 from /home/aricent/try5/eudy_misc_driver.c:7:
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/uaccess.h:80:0:
note: this is the location of the previous definition
 #define access_ok(type, addr, size) \

In file included from /home/aricent/try5/eudy_misc_driver.c:7:0:
include/asm-generic/uaccess.h:337:1: error: static declaration of
‘clear_user’ follows non-static declaration
 clear_user(void __user *to, unsigned long n)
 ^
In file included from
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/sections.h:5:0,
 from
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/hw_irq.h:26,
 from include/linux/irq.h:368,
 from
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/hardirq.h:5,
 from include/linux/preempt_mask.h:5,
 from include/linux/sched.h:25,
 from include/asm-generic/uaccess.h:9,
 from /home/aricent/try5/eudy_misc_driver.c:7:
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/uaccess.h:525:28:
note: previous declaration of ‘clear_user’ was here
 unsigned long __must_check clear_user(void __user *mem, unsigned long len);



Regards
Harsh Jain
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Suggested environments for kernel development

2015-05-03 Thread Lewis Clark
I would really like to know how you guys do your kernel development. 
What distro do you use and whats the process?

I’m very comfortable with debian, but i’ve heard it’s not the easiest distro to 
build kernels for as you need to build to a .deb and apply it that way.


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Mail Format Issue

2015-05-03 Thread Harsh Jain
Hi,


Surely It is in base64  format.which mail client you are using to submit?
To be sure before sending the mail to Eudyptula,send it to yourself and check 
the mail format in view source option.It should not have base64 type. 
Possibly your logs attachment have some special characters which converts it to 
base64.

Regards
Harsh Jain

On 4 May 2015 01:19:53 GMT+05:30, me storage me.storage...@gmail.com wrote:
Hi All,

I has been participating in this challenge from 8 months. I submitted 5
tasks.
Today i submitted my task06 results third time , but intently it's
giving
reply that the format is *base64,* So please change and resend it
again

So can any please tell me what happened ? because i followed the same
approach as previous tasks.

Thanks.




___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: running queue processes

2015-05-03 Thread Nicholas Krause


On May 3, 2015 9:16:27 AM EDT, Ruben Safir ru...@mrbrklyn.com wrote:
On 05/03/2015 08:47 AM, Nicholas Krause wrote:
 remember there being information about this topic being in the Linux
programming interface in chapters 26 through 28. Furthermore find a
copy of this book as it's a rather good reference for when you need
questions like this answered. 


which book?
The book is called the Linux programming interface and the chapters related to 
this question are chapters 26 or 27 I believe. 
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Module compilation error on another machine

2015-05-03 Thread Harsh Jain
Yes,it is eudyptula challenge.Actually same module compiled successfully on my 
old system.

Regards
Harsh Jain

On 3 May 2015 18:22:39 GMT+05:30, Sudip Mukherjee sudipm.mukher...@gmail.com 
wrote:
__
 I would like to see the code first but my feeling is your using 64
bit
variables of 32 bit machine.

Is it for the *Eudyptula** Challenge*??

regards
sudip

 Nick

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Mail Format Issue

2015-05-03 Thread me storage
Hi Harsh,

Little removed me from challenge, it's not fair because i didn't reveal
anything even my mail client also.If some thing goes wrong to whom we will
ask?. And i done the same thing like so many people i.e i sent my task
results but i didn't got any reply from Little..
I already checked the below is the source of mail in which i couldn't find
anything related to base64 if you found anything please let me know

Return-Path: ...@gmail.com
Received: from localhost ([103.16.71.12])
by mx.google.com with ESMTPSA id ph4sm10619059pdb.43.2015.05.03.12.41.07
for lit...@eudyptula-challenge.org
(version=TLSv1.2 cipher=RC4-SHA bits=128/128);
Sun, 03 May 2015 12:41:08 -0700 (PDT)
Date: Mon, 4 May 2015 01:11:03 +0530
From:  xxx...@gmail.com
To: lit...@eudyptula-challenge.org
Subject: [XX] Task 06 results
Message-ID: 20150503194103.GB7383@XXX
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=1UWUbFP1cBYEclgG
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)


--1UWUbFP1cBYEclgG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi i am sending my proofs related to Task 06.

--1UWUbFP1cBYEclgG
Content-Type: text/x-csrc; charset=us-ascii
Content-Disposition: attachment; filename=helloworld.c



On 4 May 2015 at 02:53, Harsh Jain harshjain.p...@gmail.com wrote:

 Hi,


 Surely It is in base64 format.which mail client you are using to submit?
 To be sure before sending the mail to Eudyptula,send it to yourself and
 check the mail format in view source option.It should not have base64
 type. Possibly your logs attachment have some special characters which
 converts it to base64.

 Regards
 Harsh Jain

 On 4 May 2015 01:19:53 GMT+05:30, me storage me.storage...@gmail.com
 wrote:

 Hi All,

 I has been participating in this challenge from 8 months. I submitted 5
 tasks.
 Today i submitted my task06 results third time , but intently it's giving
 reply that the format is *base64,* So please change and resend it again

 So can any please tell me what happened ? because i followed the same
 approach as previous tasks.

 Thanks.

 --

 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


 --
 Sent from my Android device with K-9 Mail. Please excuse my brevity.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula challenge task 6 reply

2015-05-03 Thread Lucas Tanure
On Thu, Mar 19, 2015 at 1:35 AM, Sudip Mukherjee sudipm.mukher...@gmail.com
 wrote:

  so if your previous task was wrong or not upto the standard then the
  task which you are trying to do in advance will also be not right.
  That might be right. But when the reply time remains like this (over 2
  month for me for a simple task), then the challenge takes 40 month in
 total.
 
 sometimes the scripts get stuck. you can always send an email to
 litlle asking him/her about the queue status of that task.

 regards
 sudip

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



Hey guys,

Anyone got an update ?
I sent the task 08, in 11 January 2015.

thanks

--
Lucas Tanure
+55 (19) 988176559
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Eudyptula Mail Format Issue

2015-05-03 Thread Sudip Mukherjee
 Content-Type: multipart/mixed; boundary=1UWUbFP1cBYEclgG

this ...

in any problem you are supposed to ask little.

regards
sudip

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: running queue processes

2015-05-03 Thread Ruben Safir
On 05/03/2015 08:47 AM, Nicholas Krause wrote:
 remember there being information about this topic being in the Linux 
 programming interface in chapters 26 through 28. Furthermore find a copy of 
 this book as it's a rather good reference for when you need questions like 
 this answered. 


which book?

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Module compilation error on another machine

2015-05-03 Thread Sudip Mukherjee
__
 I would like to see the code first but my feeling is your using 64 bit
variables of 32 bit machine.

Is it for the *Eudyptula** Challenge*??

regards
sudip

 Nick
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: running queue processes

2015-05-03 Thread Nicholas Krause


On May 2, 2015 11:20:41 AM EDT, Mustafa Hussain mustafa.hussai...@gmail.com 
wrote:
Is there a way to show processes in running queue only form terminal?




___
I don't remember the exact system call for this but remember there being 
information about this topic being in the Linux programming interface in 
chapters 26 through 28. Furthermore find a copy of this book as it's a rather 
good reference for when you need questions like this answered. 
Hope this helps, 
Nick 
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Module compilation error on another machine

2015-05-03 Thread Nicholas Krause


On May 3, 2015 4:35:37 AM EDT, Harsh Jain harshjain.p...@gmail.com wrote:
Hi All,

I am trying to compile simple kernel module. It gives following error.
Same
module compiles succesfully on another 64 bit ubuntu OS.Any idea what
different in environment can cause this. Both machine are ubuntu 12.04.
On
32 ubuntu bit compilation fails.

In file included from /home/aricent/try5/eudy_misc_driver.c:7:0:
include/asm-generic/uaccess.h:41:0: warning: access_ok redefined
[enabled
by default]
 #define access_ok(type, addr, size) __access_ok((unsigned
long)(addr),(size))
 ^
In file included from
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/sections.h:5:0,
 from
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/hw_irq.h:26,
 from include/linux/irq.h:368,
 from
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/hardirq.h:5,
 from include/linux/preempt_mask.h:5,
 from include/linux/sched.h:25,
 from include/asm-generic/uaccess.h:9,
 from /home/aricent/try5/eudy_misc_driver.c:7:
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/uaccess.h:80:0:
note: this is the location of the previous definition
 #define access_ok(type, addr, size) \

In file included from /home/aricent/try5/eudy_misc_driver.c:7:0:
include/asm-generic/uaccess.h:337:1: error: static declaration of
‘clear_user’ follows non-static declaration
 clear_user(void __user *to, unsigned long n)
 ^
In file included from
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/sections.h:5:0,
 from
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/hw_irq.h:26,
 from include/linux/irq.h:368,
 from
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/hardirq.h:5,
 from include/linux/preempt_mask.h:5,
 from include/linux/sched.h:25,
 from include/asm-generic/uaccess.h:9,
 from /home/aricent/try5/eudy_misc_driver.c:7:
/usr/src/linux-headers-3.13.0-43-generic/arch/x86/include/asm/uaccess.h:525:28:
note: previous declaration of ‘clear_user’ was here
unsigned long __must_check clear_user(void __user *mem, unsigned long
len);



Regards
Harsh Jain




___
I would like to see the code first but my feeling is your using 64 bit 
variables of 32 bit machine. 
Nick 
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Suggested environments for kernel development

2015-05-03 Thread Nicholas Krause


On May 3, 2015 1:44:28 PM EDT, Greg KH g...@kroah.com wrote:
On Sun, May 03, 2015 at 06:11:35PM +0100, Lewis Clark wrote:
 I would really like to know how you guys do your kernel development. 
 What distro do you use and whats the process?
 
 I’m very comfortable with debian, but i’ve heard it’s not the easiest
 distro to build kernels for as you need to build to a .deb and apply
 it that way.

Not at all, any community-based distro is usually good for kernel
development, pick one you feel comfortable with and use it.

good luck,

greg k-h


Greg is right here however since kernel development is generally bleeding edge 
I generally recommend Arch as the packages are pulled from upstream including 
gcc.  Running the latest c library and tool chains is a high plus in kernel 
development in my opinion. 
Nick 
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Suggested environments for kernel development

2015-05-03 Thread Greg KH
On Sun, May 03, 2015 at 06:11:35PM +0100, Lewis Clark wrote:
 I would really like to know how you guys do your kernel development. 
 What distro do you use and whats the process?
 
 I’m very comfortable with debian, but i’ve heard it’s not the easiest
 distro to build kernels for as you need to build to a .deb and apply
 it that way.

Not at all, any community-based distro is usually good for kernel
development, pick one you feel comfortable with and use it.

good luck,

greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Eudyptula Mail Format Issue

2015-05-03 Thread me storage
Hi All,

I has been participating in this challenge from 8 months. I submitted 5
tasks.
Today i submitted my task06 results third time , but intently it's giving
reply that the format is *base64,* So please change and resend it again

So can any please tell me what happened ? because i followed the same
approach as previous tasks.

Thanks.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Suggested environments for kernel development

2015-05-03 Thread Robert P. J. Day
On Sun, 3 May 2015, Greg KH wrote:

 On Sun, May 03, 2015 at 06:11:35PM +0100, Lewis Clark wrote:
  I would really like to know how you guys do your kernel development.
  What distro do you use and whats the process?
 
  I’m very comfortable with debian, but i’ve heard it’s not the easiest
  distro to build kernels for as you need to build to a .deb and apply
  it that way.

 Not at all, any community-based distro is usually good for kernel
 development, pick one you feel comfortable with and use it.

  if you're going to just manually install the new kernel, then it
makes precious little difference. on the other hand, if you really
want to go through the packaging, then you can run one of:

  $ make rpm-pkg
  $ make deb-pkg

other than that, as greg suggests, any even *remotely* current distro
should work just fine.

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies