<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/arch/cris, branch v4.3-rc2</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>CRISv10: delete unused lib/dmacopy.c</title>
<updated>2015-09-04T22:56:51+00:00</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin@rab.in</email>
</author>
<published>2015-05-22T18:58:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=254a0f4135482dc02701562a38e10675a48c8ddf'/>
<id>254a0f4135482dc02701562a38e10675a48c8ddf</id>
<content type='text'>
This file is never built.

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jespern@axis.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This file is never built.

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jespern@axis.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CRISv10: delete unused lib/old_checksum.c</title>
<updated>2015-09-04T22:56:51+00:00</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin@rab.in</email>
</author>
<published>2015-05-22T18:58:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=c2ffc68afc0fce16923a54b2dad4d544463b9e0b'/>
<id>c2ffc68afc0fce16923a54b2dad4d544463b9e0b</id>
<content type='text'>
This file is never built.

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This file is never built.

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CRIS: fix switch_mm() lockdep splat</title>
<updated>2015-09-04T22:56:50+00:00</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin@rab.in</email>
</author>
<published>2015-02-20T18:35:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=7f0144e7779a8c62e3177301d4b2179432ce5460'/>
<id>7f0144e7779a8c62e3177301d4b2179432ce5460</id>
<content type='text'>
With lockdep support implemented on CRISv32, we get the following splat.
switch_mm() can be called both from the scheduler() (with interrupts
disabled) and from flush_old_exec (via activate_mm()), with interrupts
enabled.  Fix it by disabling interrupts in activate_mm(), similar to
powerpc and hexagon.

 t======================================================
 [ INFO: HARDIRQ-safe -&gt; HARDIRQ-unsafe lock order detected ]
 3.19.0-08802-g20bc9f1-dirty #323 Not tainted
 ------------------------------------------------------
 init/1 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire:
  (mmu_context_lock){+.+...}, at: [&lt;c0009290&gt;] switch_mm+0x22/0xc6

 and this task is already holding:
  (&amp;rq-&gt;lock){-.-.-.}, at: [&lt;c01a0756&gt;] __schedule+0x5e/0x648
 which would create a new lock dependency:
  (&amp;rq-&gt;lock){-.-.-.} -&gt; (mmu_context_lock){+.+...}

 but this new dependency connects a HARDIRQ-irq-safe lock:
  (&amp;rq-&gt;lock){-.-.-.}
 ... which became HARDIRQ-irq-safe at:
   [&lt;c002b03c&gt;] scheduler_tick+0x28/0x5e
   [&lt;c0007c6c&gt;] timer_interrupt+0x4e/0x6a
   [&lt;c0043ac4&gt;] handle_irq_event_percpu+0x54/0x13c
   [&lt;c004343c&gt;] generic_handle_irq+0x2a/0x36

 to a HARDIRQ-irq-unsafe lock:
  (mmu_context_lock){+.+...}
 ... which became HARDIRQ-irq-unsafe at:
 ...  [&lt;c0039e60&gt;] __lock_acquire+0x8f8/0x1d9c
   [&lt;c0009290&gt;] switch_mm+0x22/0xc6
   [&lt;c009c260&gt;] flush_old_exec+0x500/0x5d4
   [&lt;c00da4c6&gt;] load_elf_phdrs+0x7a/0x84
   [&lt;c00dbdb0&gt;] load_elf_binary+0x21c/0x13b4
   [&lt;c009cdb6&gt;] do_execve+0x22/0x2c
   [&lt;c001dcf2&gt;] ____call_usermodehelper+0x0/0x154
   [&lt;c000581e&gt;] ret_from_kernel_thread+0xe/0x14

 other info that might help us debug this:

  Possible interrupt unsafe locking scenario:

        CPU0                    CPU1
        ----                    ----
   lock(mmu_context_lock);
                                local_irq_disable();
                                lock(&amp;rq-&gt;lock);
                                lock(mmu_context_lock);
   &lt;Interrupt&gt;
     lock(&amp;rq-&gt;lock);

  *** DEADLOCK ***

 1 lock held by init/1:
  #0:  (&amp;rq-&gt;lock){-.-.-.}, at: [&lt;c01a0756&gt;] __schedule+0x5e/0x648

 Call Trace:
 [&lt;c019fe9e&gt;] printk+0x0/0x4e
 [&lt;c00368f8&gt;] print_shortest_lock_dependencies+0x0/0x15c
 [&lt;c0048628&gt;] print_stack_trace+0x0/0x88
 [&lt;c0038912&gt;] __lock_is_held+0x3e/0x5e
 [&lt;c003b894&gt;] lock_acquire+0x8a/0xcc
 [&lt;c01a50c4&gt;] _raw_spin_lock+0x44/0x7a
 [&lt;c0009290&gt;] switch_mm+0x22/0xc6
 [&lt;c01a06f8&gt;] __schedule+0x0/0x648
 [&lt;c01a0d76&gt;] schedule+0x36/0x7c
 [&lt;c0037d04&gt;] trace_hardirqs_on+0x0/0x1e
 [&lt;c0004e18&gt;] do_work_pending+0x30/0xd4
 [&lt;c000591a&gt;] _work_pending+0xe/0x12

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With lockdep support implemented on CRISv32, we get the following splat.
switch_mm() can be called both from the scheduler() (with interrupts
disabled) and from flush_old_exec (via activate_mm()), with interrupts
enabled.  Fix it by disabling interrupts in activate_mm(), similar to
powerpc and hexagon.

 t======================================================
 [ INFO: HARDIRQ-safe -&gt; HARDIRQ-unsafe lock order detected ]
 3.19.0-08802-g20bc9f1-dirty #323 Not tainted
 ------------------------------------------------------
 init/1 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire:
  (mmu_context_lock){+.+...}, at: [&lt;c0009290&gt;] switch_mm+0x22/0xc6

 and this task is already holding:
  (&amp;rq-&gt;lock){-.-.-.}, at: [&lt;c01a0756&gt;] __schedule+0x5e/0x648
 which would create a new lock dependency:
  (&amp;rq-&gt;lock){-.-.-.} -&gt; (mmu_context_lock){+.+...}

 but this new dependency connects a HARDIRQ-irq-safe lock:
  (&amp;rq-&gt;lock){-.-.-.}
 ... which became HARDIRQ-irq-safe at:
   [&lt;c002b03c&gt;] scheduler_tick+0x28/0x5e
   [&lt;c0007c6c&gt;] timer_interrupt+0x4e/0x6a
   [&lt;c0043ac4&gt;] handle_irq_event_percpu+0x54/0x13c
   [&lt;c004343c&gt;] generic_handle_irq+0x2a/0x36

 to a HARDIRQ-irq-unsafe lock:
  (mmu_context_lock){+.+...}
 ... which became HARDIRQ-irq-unsafe at:
 ...  [&lt;c0039e60&gt;] __lock_acquire+0x8f8/0x1d9c
   [&lt;c0009290&gt;] switch_mm+0x22/0xc6
   [&lt;c009c260&gt;] flush_old_exec+0x500/0x5d4
   [&lt;c00da4c6&gt;] load_elf_phdrs+0x7a/0x84
   [&lt;c00dbdb0&gt;] load_elf_binary+0x21c/0x13b4
   [&lt;c009cdb6&gt;] do_execve+0x22/0x2c
   [&lt;c001dcf2&gt;] ____call_usermodehelper+0x0/0x154
   [&lt;c000581e&gt;] ret_from_kernel_thread+0xe/0x14

 other info that might help us debug this:

  Possible interrupt unsafe locking scenario:

        CPU0                    CPU1
        ----                    ----
   lock(mmu_context_lock);
                                local_irq_disable();
                                lock(&amp;rq-&gt;lock);
                                lock(mmu_context_lock);
   &lt;Interrupt&gt;
     lock(&amp;rq-&gt;lock);

  *** DEADLOCK ***

 1 lock held by init/1:
  #0:  (&amp;rq-&gt;lock){-.-.-.}, at: [&lt;c01a0756&gt;] __schedule+0x5e/0x648

 Call Trace:
 [&lt;c019fe9e&gt;] printk+0x0/0x4e
 [&lt;c00368f8&gt;] print_shortest_lock_dependencies+0x0/0x15c
 [&lt;c0048628&gt;] print_stack_trace+0x0/0x88
 [&lt;c0038912&gt;] __lock_is_held+0x3e/0x5e
 [&lt;c003b894&gt;] lock_acquire+0x8a/0xcc
 [&lt;c01a50c4&gt;] _raw_spin_lock+0x44/0x7a
 [&lt;c0009290&gt;] switch_mm+0x22/0xc6
 [&lt;c01a06f8&gt;] __schedule+0x0/0x648
 [&lt;c01a0d76&gt;] schedule+0x36/0x7c
 [&lt;c0037d04&gt;] trace_hardirqs_on+0x0/0x1e
 [&lt;c0004e18&gt;] do_work_pending+0x30/0xd4
 [&lt;c000591a&gt;] _work_pending+0xe/0x12

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CRISv32: enable LOCKDEP_SUPPORT</title>
<updated>2015-09-04T22:56:50+00:00</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin@rab.in</email>
</author>
<published>2015-05-14T16:19:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=94c5c115c1f7d347d5ec7f32a090f8643dd42525'/>
<id>94c5c115c1f7d347d5ec7f32a090f8643dd42525</id>
<content type='text'>
Now that we have stack tracing and irq flags tracing support,
we can also enable lockdep support

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that we have stack tracing and irq flags tracing support,
we can also enable lockdep support

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CRIS: add STACKTRACE_SUPPORT</title>
<updated>2015-09-04T22:56:50+00:00</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin@rab.in</email>
</author>
<published>2015-05-14T16:19:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=aa6f4d2b6547a9949d87c9b09a872a7015366588'/>
<id>aa6f4d2b6547a9949d87c9b09a872a7015366588</id>
<content type='text'>
Add stacktrace support, which is required for lockdep and tracing.  The
stack tracing simply looks at all kernel text symbols found on the
stack, similar to the trap stack dumping code, which can also be
converted to use this.

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add stacktrace support, which is required for lockdep and tracing.  The
stack tracing simply looks at all kernel text symbols found on the
stack, similar to the trap stack dumping code, which can also be
converted to use this.

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CRISv32: annotate irq enable in idle loop</title>
<updated>2015-09-04T22:56:49+00:00</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin@rab.in</email>
</author>
<published>2015-02-20T17:57:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=3fffa23ee0a348aef1b597b67626d4724667143b'/>
<id>3fffa23ee0a348aef1b597b67626d4724667143b</id>
<content type='text'>
Use a call to local_irq_enable() instead of incline asm so that the
irqsoff latency tracer knows that interrupts are enabled here.

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use a call to local_irq_enable() instead of incline asm so that the
irqsoff latency tracer knows that interrupts are enabled here.

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CRISv32: add support for irqflags tracing</title>
<updated>2015-09-04T22:56:49+00:00</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin@rab.in</email>
</author>
<published>2015-02-19T20:36:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=444e0c2881bcc70db6833d9c653c6ced36813d3b'/>
<id>444e0c2881bcc70db6833d9c653c6ced36813d3b</id>
<content type='text'>
Add support irqflags tracing, which is required for things like lockdep
and ftrace.

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support irqflags tracing, which is required for things like lockdep
and ftrace.

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CRIS: UAPI: use generic types.h</title>
<updated>2015-09-04T22:56:48+00:00</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin@rab.in</email>
</author>
<published>2015-02-28T22:59:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=20ae24739968ae7f94d0e73215d444042f91df78'/>
<id>20ae24739968ae7f94d0e73215d444042f91df78</id>
<content type='text'>
CRIS' types.h is functionally identical to the asm-generic version.

Effective diff:

 +#ifndef _ASM_GENERIC_TYPES_H
 +#define _ASM_GENERIC_TYPES_H
 +
  #include &lt;asm-generic/int-ll64.h&gt;
 +
 +#endif

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CRIS' types.h is functionally identical to the asm-generic version.

Effective diff:

 +#ifndef _ASM_GENERIC_TYPES_H
 +#define _ASM_GENERIC_TYPES_H
 +
  #include &lt;asm-generic/int-ll64.h&gt;
 +
 +#endif

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CRIS: UAPI: use generic shmbuf.h</title>
<updated>2015-09-04T22:56:48+00:00</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin@rab.in</email>
</author>
<published>2015-02-28T22:55:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=258a9ff66c30c830f6e2f06856878be4d4cc81af'/>
<id>258a9ff66c30c830f6e2f06856878be4d4cc81af</id>
<content type='text'>
CRIS' shmbuf.h is equivalent to the asm-generic verison.

Effective diff:

 -#ifndef _CRIS_SHMBUF_H
 -#define _CRIS_SHMBUF_H
 +#ifndef __ASM_GENERIC_SHMBUF_H
 +#define __ASM_GENERIC_SHMBUF_H
 +
 +#include &lt;asm/bitsperlong.h&gt;

  	struct ipc64_perm	shm_perm;
  	size_t			shm_segsz;
  	__kernel_time_t		shm_atime;
 +#if __BITS_PER_LONG != 64
  	unsigned long		__unused1;
 +#endif
  	__kernel_time_t		shm_dtime;
 +#if __BITS_PER_LONG != 64
  	unsigned long		__unused2;
 +#endif
  	__kernel_time_t		shm_ctime;
 +#if __BITS_PER_LONG != 64
  	unsigned long		__unused3;
 +#endif
  	__kernel_pid_t		shm_cpid;
  	__kernel_pid_t		shm_lpid;
 -	unsigned long		shm_nattch;
 -	unsigned long		__unused4;
 -	unsigned long		__unused5;
 +	__kernel_ulong_t	shm_nattch;
 +	__kernel_ulong_t	__unused4;
 +	__kernel_ulong_t	__unused5;
  };

  struct shminfo64 {
 -	unsigned long	shmmax;
 -	unsigned long	shmmin;
 -	unsigned long	shmmni;
 -	unsigned long	shmseg;
 -	unsigned long	shmall;
 -	unsigned long	__unused1;
 -	unsigned long	__unused2;
 -	unsigned long	__unused3;
 -	unsigned long	__unused4;
 +	__kernel_ulong_t	shmmax;
 +	__kernel_ulong_t	shmmin;
 +	__kernel_ulong_t	shmmni;
 +	__kernel_ulong_t	shmseg;
 +	__kernel_ulong_t	shmall;
 +	__kernel_ulong_t	__unused1;
 +	__kernel_ulong_t	__unused2;
 +	__kernel_ulong_t	__unused3;
 +	__kernel_ulong_t	__unused4;
  };

  #endif

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CRIS' shmbuf.h is equivalent to the asm-generic verison.

Effective diff:

 -#ifndef _CRIS_SHMBUF_H
 -#define _CRIS_SHMBUF_H
 +#ifndef __ASM_GENERIC_SHMBUF_H
 +#define __ASM_GENERIC_SHMBUF_H
 +
 +#include &lt;asm/bitsperlong.h&gt;

  	struct ipc64_perm	shm_perm;
  	size_t			shm_segsz;
  	__kernel_time_t		shm_atime;
 +#if __BITS_PER_LONG != 64
  	unsigned long		__unused1;
 +#endif
  	__kernel_time_t		shm_dtime;
 +#if __BITS_PER_LONG != 64
  	unsigned long		__unused2;
 +#endif
  	__kernel_time_t		shm_ctime;
 +#if __BITS_PER_LONG != 64
  	unsigned long		__unused3;
 +#endif
  	__kernel_pid_t		shm_cpid;
  	__kernel_pid_t		shm_lpid;
 -	unsigned long		shm_nattch;
 -	unsigned long		__unused4;
 -	unsigned long		__unused5;
 +	__kernel_ulong_t	shm_nattch;
 +	__kernel_ulong_t	__unused4;
 +	__kernel_ulong_t	__unused5;
  };

  struct shminfo64 {
 -	unsigned long	shmmax;
 -	unsigned long	shmmin;
 -	unsigned long	shmmni;
 -	unsigned long	shmseg;
 -	unsigned long	shmall;
 -	unsigned long	__unused1;
 -	unsigned long	__unused2;
 -	unsigned long	__unused3;
 -	unsigned long	__unused4;
 +	__kernel_ulong_t	shmmax;
 +	__kernel_ulong_t	shmmin;
 +	__kernel_ulong_t	shmmni;
 +	__kernel_ulong_t	shmseg;
 +	__kernel_ulong_t	shmall;
 +	__kernel_ulong_t	__unused1;
 +	__kernel_ulong_t	__unused2;
 +	__kernel_ulong_t	__unused3;
 +	__kernel_ulong_t	__unused4;
  };

  #endif

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>CRIS: UAPI: use generic msgbuf.h</title>
<updated>2015-09-04T22:56:48+00:00</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin@rab.in</email>
</author>
<published>2015-02-28T22:53:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=74d94adb351161cc4027f94e878ac4e80adcfdc9'/>
<id>74d94adb351161cc4027f94e878ac4e80adcfdc9</id>
<content type='text'>
CRIS' msgbuf.h is equivalent to the asm-generic version.

Effective diff:

 -#ifndef _CRIS_MSGBUF_H
 -#define _CRIS_MSGBUF_H
 -
 -
 +#ifndef __ASM_GENERIC_MSGBUF_H
 +#define __ASM_GENERIC_MSGBUF_H

 +#include &lt;asm/bitsperlong.h&gt;

  struct msqid64_ds {
  	struct ipc64_perm msg_perm;
  	__kernel_time_t msg_stime;
 +#if __BITS_PER_LONG != 64
  	unsigned long	__unused1;
 +#endif
  	__kernel_time_t msg_rtime;
 +#if __BITS_PER_LONG != 64
  	unsigned long	__unused2;
 +#endif
  	__kernel_time_t msg_ctime;
 +#if __BITS_PER_LONG != 64
  	unsigned long	__unused3;
 -	unsigned long  msg_cbytes;
 -	unsigned long  msg_qnum;
 -	unsigned long  msg_qbytes;
 +#endif
 +	__kernel_ulong_t msg_cbytes;
 +	__kernel_ulong_t msg_qnum;
 +	__kernel_ulong_t msg_qbytes;
  	__kernel_pid_t msg_lspid;
  	__kernel_pid_t msg_lrpid;
 -	unsigned long  __unused4;
 -	unsigned long  __unused5;
 +	__kernel_ulong_t __unused4;
 +	__kernel_ulong_t __unused5;
  };

  #endif

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CRIS' msgbuf.h is equivalent to the asm-generic version.

Effective diff:

 -#ifndef _CRIS_MSGBUF_H
 -#define _CRIS_MSGBUF_H
 -
 -
 +#ifndef __ASM_GENERIC_MSGBUF_H
 +#define __ASM_GENERIC_MSGBUF_H

 +#include &lt;asm/bitsperlong.h&gt;

  struct msqid64_ds {
  	struct ipc64_perm msg_perm;
  	__kernel_time_t msg_stime;
 +#if __BITS_PER_LONG != 64
  	unsigned long	__unused1;
 +#endif
  	__kernel_time_t msg_rtime;
 +#if __BITS_PER_LONG != 64
  	unsigned long	__unused2;
 +#endif
  	__kernel_time_t msg_ctime;
 +#if __BITS_PER_LONG != 64
  	unsigned long	__unused3;
 -	unsigned long  msg_cbytes;
 -	unsigned long  msg_qnum;
 -	unsigned long  msg_qbytes;
 +#endif
 +	__kernel_ulong_t msg_cbytes;
 +	__kernel_ulong_t msg_qnum;
 +	__kernel_ulong_t msg_qbytes;
  	__kernel_pid_t msg_lspid;
  	__kernel_pid_t msg_lrpid;
 -	unsigned long  __unused4;
 -	unsigned long  __unused5;
 +	__kernel_ulong_t __unused4;
 +	__kernel_ulong_t __unused5;
  };

  #endif

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
