From: Jan Kiszka <jan.kiszka@siemens.com>
To: "Thiébaud Weksteen" <thiebaud@weksteen.fr>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] scripts/gdb: Remove useless global instruction
Date: Fri, 15 May 2015 13:32:30 +0200 [thread overview]
Message-ID: <5555D94E.5050401@siemens.com> (raw)
In-Reply-To: <c2e355ffca279e7d3fb321f5906e303a880dbca2.1431580696.git.thiebaud@weksteen.fr>
On 2015-05-14 07:22, Thiébaud Weksteen wrote:
> Signed-off-by: Thiébaud Weksteen <thiebaud@weksteen.fr>
> ---
> scripts/gdb/linux/tasks.py | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/scripts/gdb/linux/tasks.py b/scripts/gdb/linux/tasks.py
> index 89d38e1..0fa33b0 100644
> --- a/scripts/gdb/linux/tasks.py
> +++ b/scripts/gdb/linux/tasks.py
> @@ -20,7 +20,6 @@ task_type = utils.CachedType("struct task_struct")
>
>
> def task_lists():
> - global task_type
> task_ptr_type = task_type.get_type().pointer()
> init_task = gdb.parse_and_eval("init_task").address
> t = g = init_task
> @@ -73,7 +72,6 @@ ia64_task_size = None
>
>
> def get_thread_info(task):
> - global thread_info_type
> thread_info_ptr_type = thread_info_type.get_type().pointer()
> if utils.is_target_arch("ia64"):
> global ia64_task_size
These are from my early Python days...
Did you check all the other global statements as well? I bet there are
more, e.g. the one in the last line above.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
prev parent reply other threads:[~2015-05-15 11:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-14 5:22 [PATCH 0/3] scripts/gdb: clean up Thiébaud Weksteen
2015-05-14 5:22 ` [PATCH 1/3] scripts/gdb: Fix typo in exception name Thiébaud Weksteen
2015-05-14 5:22 ` [PATCH 2/3] scripts/gdb: Fix PEP8 compliance Thiébaud Weksteen
2015-05-15 11:32 ` Jan Kiszka
2015-05-14 5:22 ` [PATCH 3/3] scripts/gdb: Remove useless global instruction Thiébaud Weksteen
2015-05-15 11:32 ` Jan Kiszka [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5555D94E.5050401@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=linux-kernel@vger.kernel.org \
--cc=thiebaud@weksteen.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox