lkml.org 
[lkml]   [2013]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] arch: hexagon: include: asm: add prefix "vm_" for all enum members in "hexagon_vm.h"
On 11/25/2013 10:40 AM, Chen Gang wrote:
> Append "vm_" to all enum members (which are too common to make conflict
> with another sub-systems). The related error with allmodconfig:
>
> CC [M] drivers/md/raid1.o
> drivers/md/raid1.c:1440:13: error: 'status' redeclared as different kind of symbol
> arch/hexagon/include/asm/hexagon_vm.h:76:2: note: previous definition of 'status' was here
>

Oh, sorry, The new prefix "vm_" is still conflict with others. One case
is below (bottom of this mail)

I will use "hvmc_" for VM_CACHE_OPS and "hvmi_" for VM_INT_OPS instead
of. If get no rejections within 1 day, I will send patch v2 for it.

And also I will merge the related 2 patches together (although they are
for 2 issues).

>
> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
> ---
> arch/hexagon/include/asm/hexagon_vm.h | 70 ++++++++++++++++----------------
> 1 files changed, 35 insertions(+), 35 deletions(-)
>
> diff --git a/arch/hexagon/include/asm/hexagon_vm.h b/arch/hexagon/include/asm/hexagon_vm.h
> index 67bb6d6..e1e0470 100644
> --- a/arch/hexagon/include/asm/hexagon_vm.h
> +++ b/arch/hexagon/include/asm/hexagon_vm.h
> @@ -55,27 +55,27 @@
> #ifndef __ASSEMBLY__
>
> enum VM_CACHE_OPS {
> - ickill,
> - dckill,
> - l2kill,
> - dccleaninva,
> - icinva,
> - idsync,
> - fetch_cfg
> + vm_ickill,
> + vm_dckill,
> + vm_l2kill,
> + vm_dccleaninva,
> + vm_icinva,
> + vm_idsync,
> + vm_fetch_cfg
> };
>
> enum VM_INT_OPS {
> - nop,
> - globen,
> - globdis,
> - locen,
> - locdis,
> - affinity,
> - get,
> - peek,
> - status,
> - post,
> - clear
> + vm_nop,
> + vm_globen,
> + vm_globdis,
> + vm_locen,
> + vm_locdis,
> + vm_affinity,
> + vm_get,

The new prefix "vm_" for "get" is still conflict with others:

CC [M] drivers/virtio/virtio_mmio.o
drivers/virtio/virtio_mmio.c:170:13: error: 'vm_get' redeclared as different kind of symbol
arch/hexagon/include/asm/hexagon_vm.h:74:2: note: previous definition of 'vm_get' was here


Thanks.
--
Chen Gang


\
 
 \ /
  Last update: 2013-11-26 06:01    [W:0.705 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site