From: Narasimha Sharoff Date: Tue, 14 Mar 2006 07:17:04 +0000 Subject: [KJ] Re: [PATCH] bug fix to include/linux/cn_proc.h for 2.6.16-rc5 Message-Id: <20060314071704.87652.qmail@web52702.mail.yahoo.com> List-Id: References: <1142312124.24621.82.camel@stark> In-Reply-To: <1142312124.24621.82.camel@stark> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kernel-janitors@vger.kernel.org Matt, Yes, i compile tested this. See the patch below. Note that the test uses the user space header /usr/include/linux/cn_proc.h which is the same as the one found at /usr/src/linux/include/linux. Thanks Narasimha --- Matthew L Helsley wrote: > Hi Narasimha, > > Have you compile-tested this? Also, could > you resend the patch to > matthltc@us.ibm.com? > > Technically, you're not supposed to #include > headers from a kernel > in userspace. That said, I'd rather not include > time.h if I don't have to > -- then it may be easier for someone to build the > userspace headers. I'll > take a look at this. > > All, > Please drop mhelsley@us.ibm.com from replies > and use > matthltc@us.ibm.com instead. > > Thanks, > -Matt Helsley > > > > > > Narasimha Sharoff > 03/13/2006 12:35 PM > > To: kernel-janitors@osdl.org > cc: Matthew L > Helsley/Beaverton/IBM@IBMUS > Subject: [PATCH] bug fix to > include/linux/cn_proc.h for > 2.6.16-rc5 > > > Compilation fails for a test program which includes > cn_proc.h for Process Event Notification. > The Patch below fixes the issue. > > Test Code: > #include > #include > #include > #include > #include > #include > #include > #include > #include > > main() > { > printf("hello\n"); > } > > Results: > $gcc -o b b.c > In file included from cn_proc.h:29, > from b.c:13: > /usr/include/linux/time.h:18: error: redefinition of > ?struct timeval? > > Thanks > Narasimha > > Signed-Off-By: njsharoff@yahoo.com > -- > > include/linux/cn_proc.h | 1 - > 1 files changed, 1 deletion(-) > > Index: linux-2.6.16-rc5/include/linux/cn_proc.h > =================================> --- linux-2.6.16-rc5.orig/include/linux/cn_proc.h > +++ linux-2.6.16-rc5/include/linux/cn_proc.h > @@ -26,7 +26,6 @@ > #define CN_PROC_H > > #include > -#include > #include > > /* > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org https://lists.osdl.org/mailman/listinfo/kernel-janitors