Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Konrad Rzeszutek Wilk
. snip .. > > > Please loot at arch/x86/xen/enlighten.c:xen_check_mwait() and > > > arch/x86/xen/enlighten.c:xen_boot_params_init_edd() (probably > > > there are more stuff like that around). As I can see this is fairly > > > common solution and probably compiler cope with it quite well. > > > > >

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Daniel Kiper
On Fri, Jul 11, 2014 at 08:14:51PM -0400, Konrad Rzeszutek Wilk wrote: > > On Jul 11, 2014 7:45 PM, Daniel Kiper wrote: > > > > On Fri, Jul 11, 2014 at 04:32:27PM -0400, Boris Ostrovsky wrote: > > > On 07/11/2014 04:10 PM, Daniel Kiper wrote: > > > >On Fri, Jul 11, 2014 at 04:03:46PM -0400, Boris

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Konrad Rzeszutek Wilk
On Jul 11, 2014 7:45 PM, Daniel Kiper wrote: > > On Fri, Jul 11, 2014 at 04:32:27PM -0400, Boris Ostrovsky wrote: > > On 07/11/2014 04:10 PM, Daniel Kiper wrote: > > >On Fri, Jul 11, 2014 at 04:03:46PM -0400, Boris Ostrovsky wrote: > > >>On 07/11/2014 03:54 PM, Daniel Kiper wrote: > >

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Daniel Kiper
On Fri, Jul 11, 2014 at 04:32:27PM -0400, Boris Ostrovsky wrote: > On 07/11/2014 04:10 PM, Daniel Kiper wrote: > >On Fri, Jul 11, 2014 at 04:03:46PM -0400, Boris Ostrovsky wrote: > >>On 07/11/2014 03:54 PM, Daniel Kiper wrote: > >>>Compiler complains in the following way when x86 32-bit kernel >

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Boris Ostrovsky
On 07/11/2014 04:10 PM, Daniel Kiper wrote: On Fri, Jul 11, 2014 at 04:03:46PM -0400, Boris Ostrovsky wrote: On 07/11/2014 03:54 PM, Daniel Kiper wrote: Compiler complains in the following way when x86 32-bit kernel with Xen support is build: CC arch/x86/xen/enlighten.o

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Boris Ostrovsky
On 07/11/2014 03:54 PM, Daniel Kiper wrote: Compiler complains in the following way when x86 32-bit kernel with Xen support is build: CC arch/x86/xen/enlighten.o arch/x86/xen/enlighten.c: In function ‘xen_start_kernel’: arch/x86/xen/enlighten.c:1726:3: warning: right shift count >=

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Daniel Kiper
On Fri, Jul 11, 2014 at 04:03:46PM -0400, Boris Ostrovsky wrote: > On 07/11/2014 03:54 PM, Daniel Kiper wrote: > >Compiler complains in the following way when x86 32-bit kernel > >with Xen support is build: > > > > CC arch/x86/xen/enlighten.o > >arch/x86/xen/enlighten.c: In function

[PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Daniel Kiper
Compiler complains in the following way when x86 32-bit kernel with Xen support is build: CC arch/x86/xen/enlighten.o arch/x86/xen/enlighten.c: In function ‘xen_start_kernel’: arch/x86/xen/enlighten.c:1726:3: warning: right shift count >= width of type [enabled by default] Such line

[PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Daniel Kiper
Compiler complains in the following way when x86 32-bit kernel with Xen support is build: CC arch/x86/xen/enlighten.o arch/x86/xen/enlighten.c: In function ‘xen_start_kernel’: arch/x86/xen/enlighten.c:1726:3: warning: right shift count = width of type [enabled by default] Such line

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Daniel Kiper
On Fri, Jul 11, 2014 at 04:03:46PM -0400, Boris Ostrovsky wrote: On 07/11/2014 03:54 PM, Daniel Kiper wrote: Compiler complains in the following way when x86 32-bit kernel with Xen support is build: CC arch/x86/xen/enlighten.o arch/x86/xen/enlighten.c: In function

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Boris Ostrovsky
On 07/11/2014 03:54 PM, Daniel Kiper wrote: Compiler complains in the following way when x86 32-bit kernel with Xen support is build: CC arch/x86/xen/enlighten.o arch/x86/xen/enlighten.c: In function ‘xen_start_kernel’: arch/x86/xen/enlighten.c:1726:3: warning: right shift count = width

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Boris Ostrovsky
On 07/11/2014 04:10 PM, Daniel Kiper wrote: On Fri, Jul 11, 2014 at 04:03:46PM -0400, Boris Ostrovsky wrote: On 07/11/2014 03:54 PM, Daniel Kiper wrote: Compiler complains in the following way when x86 32-bit kernel with Xen support is build: CC arch/x86/xen/enlighten.o

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Daniel Kiper
On Fri, Jul 11, 2014 at 04:32:27PM -0400, Boris Ostrovsky wrote: On 07/11/2014 04:10 PM, Daniel Kiper wrote: On Fri, Jul 11, 2014 at 04:03:46PM -0400, Boris Ostrovsky wrote: On 07/11/2014 03:54 PM, Daniel Kiper wrote: Compiler complains in the following way when x86 32-bit kernel with Xen

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Konrad Rzeszutek Wilk
On Jul 11, 2014 7:45 PM, Daniel Kiper daniel.ki...@oracle.com wrote: On Fri, Jul 11, 2014 at 04:32:27PM -0400, Boris Ostrovsky wrote: On 07/11/2014 04:10 PM, Daniel Kiper wrote: On Fri, Jul 11, 2014 at 04:03:46PM -0400, Boris Ostrovsky wrote: On 07/11/2014 03:54 PM, Daniel Kiper wrote:

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Daniel Kiper
On Fri, Jul 11, 2014 at 08:14:51PM -0400, Konrad Rzeszutek Wilk wrote: On Jul 11, 2014 7:45 PM, Daniel Kiper daniel.ki...@oracle.com wrote: On Fri, Jul 11, 2014 at 04:32:27PM -0400, Boris Ostrovsky wrote: On 07/11/2014 04:10 PM, Daniel Kiper wrote: On Fri, Jul 11, 2014 at 04:03:46PM

Re: [PATCH 2/2] arch/x86/xen: Silence compiler warnings

2014-07-11 Thread Konrad Rzeszutek Wilk
. snip .. Please loot at arch/x86/xen/enlighten.c:xen_check_mwait() and arch/x86/xen/enlighten.c:xen_boot_params_init_edd() (probably there are more stuff like that around). As I can see this is fairly common solution and probably compiler cope with it quite well. Those are some