xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] Remove some usage of shadow variable
@ 2015-10-27 15:39 Julien Grall
  2015-10-27 15:39 ` [PATCH 1/6] xen/arm: domain_build: Avoid to shadow the variable "mod" in write_properties Julien Grall
                   ` (7 more replies)
  0 siblings, 8 replies; 27+ messages in thread
From: Julien Grall @ 2015-10-27 15:39 UTC (permalink / raw)
  To: xen-devel
  Cc: Keir Fraser, Ian Campbell, George Dunlap, Dario Faggioli,
	Tim Deegan, Julien Grall, Stefano Stabellini, Jan Beulich

Hi all,

I wrote this patch series after noticing that one of my series [1] was
shadowing a variable and GCC didn't warn it.

So I've turned on -Wshadow and look at if there is other places abusing
of shadow variable in Xen.

This series is not complete and only contain the more simple changes.

I'd like to have some input to know whether turning on -Wshadow would be
sensible in the future.

Regards,

[1] http://lists.xen.org/archives/html/xen-devel/2015-10/msg01354.html

Cc: Dario Faggioli <dario.faggioli@citrix.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Keir Fraser <keir@xen.org>
Cc: Stefano Stabellini <stefano.stabellini@citrix.com>
Cc: Tim Deegan <tim@xen.org>

Julien Grall (6):
  xen/arm: domain_build: Avoid to shadow the variable "mod" in
    write_properties
  xen/common: domain: Avoid to shadow the variable "d" in do_vcpu_op
  xen/common: grant_table: Avoid to shadow "frame" in
    __gnttab_map_grant_ref
  xen/common: memory: Avoid to shadow the variable "d" in do_memory_op
  xen/common: sched: Avoid to shadow the variable "cur" in runq_tickle
  xen/common: sched-rt: Avoid to shadow the variable "svc" in
    rt_dom_cntl

 xen/arch/arm/domain_build.c | 10 +++++-----
 xen/common/domain.c         |  1 -
 xen/common/grant_table.c    |  1 -
 xen/common/memory.c         |  3 ---
 xen/common/sched_credit2.c  |  2 --
 xen/common/sched_rt.c       |  2 +-
 6 files changed, 6 insertions(+), 13 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2015-11-03 17:02 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27 15:39 [PATCH 0/6] Remove some usage of shadow variable Julien Grall
2015-10-27 15:39 ` [PATCH 1/6] xen/arm: domain_build: Avoid to shadow the variable "mod" in write_properties Julien Grall
2015-11-03 17:01   ` Ian Campbell
2015-10-27 15:39 ` [PATCH 2/6] xen/common: domain: Avoid to shadow the variable "d" in do_vcpu_op Julien Grall
2015-10-27 15:39 ` [PATCH 3/6] xen/common: grant_table: Avoid to shadow "frame" in __gnttab_map_grant_ref Julien Grall
2015-10-27 16:22   ` Jan Beulich
2015-10-27 15:39 ` [PATCH 4/6] xen/common: memory: Avoid to shadow the variable "d" in do_memory_op Julien Grall
2015-10-27 16:25   ` Jan Beulich
2015-10-27 16:51     ` Julien Grall
2015-10-27 15:39 ` [PATCH 5/6] xen/common: sched: Avoid to shadow the variable "cur" in runq_tickle Julien Grall
2015-10-27 15:59   ` Dario Faggioli
2015-10-27 16:27   ` Jan Beulich
2015-10-27 17:00     ` Julien Grall
2015-10-27 15:39 ` [PATCH 6/6] xen/common: sched-rt: Avoid to shadow the variable "svc" in rt_dom_cntl Julien Grall
2015-10-27 16:17   ` Dario Faggioli
2015-10-27 16:03 ` [PATCH 0/6] Remove some usage of shadow variable Jan Beulich
2015-10-27 17:41   ` George Dunlap
2015-10-28  8:53     ` Jan Beulich
2015-10-28  9:10       ` Julien Grall
2015-10-28  9:27         ` Jan Beulich
2015-10-28  9:12       ` Juergen Gross
2015-10-28  9:31         ` Jan Beulich
2015-10-28  9:44           ` Juergen Gross
2015-10-28 10:50       ` George Dunlap
2015-10-28 11:50         ` Jan Beulich
2015-10-27 16:12 ` Andrew Cooper
2015-10-27 17:39   ` George Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).