Re: [PATCH] Fix compile failure for OM 2.6.17 in debug/nanosleep-verbose-on-remote.patch

"Masoud Sharbiani" <[email protected]> Fri, 23 Feb 2007 07:40:16 -0800
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
--===============1294581948==
Content-Type: multipart/alternative; 
	boundary="----=_Part_44486_25447642.1172245216790"

------=_Part_44486_25447642.1172245216790
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 2/23/07, Florian Delizy <[email protected]> wrote:
>
> Hello,
> > Index: kernel/2.6.17/debug/nanosleep-verbose-on-remote.patch
> > ===================================================================
> > --- kernel/2.6.17/debug/nanosleep-verbose-on-remote.patch     (revision
> 17)
> > +++ kernel/2.6.17/debug/nanosleep-verbose-on-remote.patch     (working
> copy)
> > @@ -1,16 +1,12 @@
> > ----
> > - kernel/hrtimer.c |    1 +
> > - 1 file changed, 1 insertion(+)
> > -
> > -Index: linux/kernel/hrtimer.c
> > +Index: linux-2.6.17/kernel/hrtimer.c
> >  ===================================================================
> > ---- linux.orig/kernel/hrtimer.c      2007-01-04 18:57:08.000000000+0100
> > -+++ linux/kernel/hrtimer.c   2007-01-04 18:58:48.000000000 +0100
> > +--- linux-2.6.17.orig/kernel/hrtimer.c       2007-02-21 01:01:
> 07.000000000 -0500
> > ++++ linux-2.6.17/kernel/hrtimer.c    2007-02-21 01:01:37.000000000-0500
> >  @@ -780,6 +780,7 @@
> >       if (!timespec_valid(&tu))
> >               return -EINVAL;
> >
> > -+    printk( KERN_DEBUG "nanosleep [%d] for %d s %d ns\n",
> current->pid, tu.tv_sec, tu.nsec);
> > ++    printk( KERN_DEBUG "nanosleep [%d] for %ld s %ld ns\n",
> current->pid, tu.tv_sec, tu.tv_nsec);
> >       return hrtimer_nanosleep(&tu, rmtp, HRTIMER_REL, CLOCK_MONOTONIC);
> >   }
> >
> >
> >
> Hum, I didn't see this warning ;) my mistake. But How does it make the
> build to "fail" ?


well, tu structure does not have a tu.nsec  member, hence the compile will
fail on  it. Is this what you were looking for?


BTW, I'll check why the patches don't apply cleanly, but I can't do that
> soon,


I guess I am getting old and lazy; Who did check in the ptrace patches? It
is missing an structure.

Florian
>


Masoud

------=_Part_44486_25447642.1172245216790
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<br><br><div><span class="gmail_quote">On 2/23/07, <b class="gmail_sendername">Florian Delizy</b> &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>&gt; Index: kernel/2.6.17/debug/nanosleep-verbose-on-remote.patch<br>&gt; ===================================================================<br>&gt; --- kernel/2.6.17/debug/nanosleep-verbose-on-remote.patch&nbsp;&nbsp;&nbsp;&nbsp; (revision 17)
<br>&gt; +++ kernel/2.6.17/debug/nanosleep-verbose-on-remote.patch&nbsp;&nbsp;&nbsp;&nbsp; (working copy)<br>&gt; @@ -1,16 +1,12 @@<br>&gt; ----<br>&gt; - kernel/hrtimer.c |&nbsp;&nbsp;&nbsp;&nbsp;1 +<br>&gt; - 1 file changed, 1 insertion(+)<br>&gt; -<br>&gt; -Index: linux/kernel/hrtimer.c
<br>&gt; +Index: linux-2.6.17/kernel/hrtimer.c<br>&gt;&nbsp;&nbsp;===================================================================<br>&gt; ---- linux.orig/kernel/hrtimer.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2007-01-04 18:57:08.000000000 +0100<br>&gt; -+++ linux/kernel/hrtimer.c&nbsp;&nbsp; 2007-01-04 18:58:
48.000000000 +0100<br>&gt; +--- linux-2.6.17.orig/kernel/hrtimer.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2007-02-21 01:01:07.000000000 -0500<br>&gt; ++++ linux-2.6.17/kernel/hrtimer.c&nbsp;&nbsp;&nbsp;&nbsp;2007-02-21 01:01:37.000000000 -0500<br>&gt;&nbsp;&nbsp;@@ -780,6 +780,7 @@<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!timespec_valid(&amp;tu))<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -EINVAL;<br>&gt;<br>&gt; -+&nbsp;&nbsp;&nbsp;&nbsp;printk( KERN_DEBUG &quot;nanosleep [%d] for %d s %d ns\n&quot;, current-&gt;pid, tu.tv_sec, tu.nsec);<br>&gt; ++&nbsp;&nbsp;&nbsp;&nbsp;printk( KERN_DEBUG &quot;nanosleep [%d] for %ld s %ld ns\n&quot;, current-&gt;pid, 
tu.tv_sec, tu.tv_nsec);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return hrtimer_nanosleep(&amp;tu, rmtp, HRTIMER_REL, CLOCK_MONOTONIC);<br>&gt;&nbsp;&nbsp; }<br>&gt;<br>&gt;<br>&gt;<br>Hum, I didn&#39;t see this warning ;) my mistake. But How does it make the
<br>build to &quot;fail&quot; ?</blockquote><div><br>well, tu structure does not have a tu.nsec&nbsp; member, hence the compile will fail on&nbsp; it. Is this what you were looking for?<br>&nbsp;<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
BTW, I&#39;ll check why the patches don&#39;t apply cleanly, but I can&#39;t do that<br>soon,</blockquote><div><br>I guess I am getting old and lazy; Who did check in the ptrace patches? It is missing an structure.<br></div>
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Florian<br></blockquote></div><br><br>Masoud<br><br>

------=_Part_44486_25447642.1172245216790--


--===============1294581948==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--===============1294581948==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
openMosix-devel mailing list
openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openmosix-devel

--===============1294581948==--