* [PATCH] perf jevents: Remove unused variables
@ 2019-05-15 11:19 Zenghui Yu
2019-05-15 19:12 ` Arnaldo Carvalho de Melo
2019-05-18 9:27 ` [tip:perf/core] perf jevents: Remove unused variable tip-bot for Zenghui Yu
0 siblings, 2 replies; 3+ messages in thread
From: Zenghui Yu @ 2019-05-15 11:19 UTC (permalink / raw)
To: acme, acme, peterz, mingo
Cc: alexander.shishkin, jolsa, namhyung, john.garry, wanghaibin.wang,
linux-kernel, Zenghui Yu
Fix gcc warning:
pmu-events/jevents.c: In function ‘save_arch_std_events’:
pmu-events/jevents.c:417:15: warning: unused variable ‘sb’ [-Wunused-variable]
struct stat *sb = data;
^~
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
---
tools/perf/pmu-events/jevents.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c
index 68c92bb..92e60fd 100644
--- a/tools/perf/pmu-events/jevents.c
+++ b/tools/perf/pmu-events/jevents.c
@@ -414,7 +414,6 @@ static int save_arch_std_events(void *data, char *name, char *event,
char *metric_name, char *metric_group)
{
struct event_struct *es;
- struct stat *sb = data;
es = malloc(sizeof(*es));
if (!es)
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] perf jevents: Remove unused variables
2019-05-15 11:19 [PATCH] perf jevents: Remove unused variables Zenghui Yu
@ 2019-05-15 19:12 ` Arnaldo Carvalho de Melo
2019-05-18 9:27 ` [tip:perf/core] perf jevents: Remove unused variable tip-bot for Zenghui Yu
1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2019-05-15 19:12 UTC (permalink / raw)
To: Zenghui Yu
Cc: acme, peterz, mingo, alexander.shishkin, jolsa, namhyung,
john.garry, wanghaibin.wang, linux-kernel
Em Wed, May 15, 2019 at 11:19:29AM +0000, Zenghui Yu escreveu:
> Fix gcc warning:
s/Fix/Address/g
Thanks, applied.
- Arnaldo
> pmu-events/jevents.c: In function ‘save_arch_std_events’:
> pmu-events/jevents.c:417:15: warning: unused variable ‘sb’ [-Wunused-variable]
> struct stat *sb = data;
> ^~
>
> Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
> ---
> tools/perf/pmu-events/jevents.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c
> index 68c92bb..92e60fd 100644
> --- a/tools/perf/pmu-events/jevents.c
> +++ b/tools/perf/pmu-events/jevents.c
> @@ -414,7 +414,6 @@ static int save_arch_std_events(void *data, char *name, char *event,
> char *metric_name, char *metric_group)
> {
> struct event_struct *es;
> - struct stat *sb = data;
>
> es = malloc(sizeof(*es));
> if (!es)
> --
> 1.8.3.1
>
--
- Arnaldo
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:perf/core] perf jevents: Remove unused variable
2019-05-15 11:19 [PATCH] perf jevents: Remove unused variables Zenghui Yu
2019-05-15 19:12 ` Arnaldo Carvalho de Melo
@ 2019-05-18 9:27 ` tip-bot for Zenghui Yu
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Zenghui Yu @ 2019-05-18 9:27 UTC (permalink / raw)
To: linux-tip-commits
Cc: alexander.shishkin, peterz, mingo, yuzenghui, namhyung,
linux-kernel, john.garry, hpa, tglx, jolsa, acme
Commit-ID: 8e8f515d567f9ec1d960e9fdb117d39753b7504d
Gitweb: https://git.kernel.org/tip/8e8f515d567f9ec1d960e9fdb117d39753b7504d
Author: Zenghui Yu <yuzenghui@huawei.com>
AuthorDate: Wed, 15 May 2019 11:19:29 +0000
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Wed, 15 May 2019 16:36:49 -0300
perf jevents: Remove unused variable
Address gcc warning:
pmu-events/jevents.c: In function ‘save_arch_std_events’:
pmu-events/jevents.c:417:15: warning: unused variable ‘sb’ [-Wunused-variable]
struct stat *sb = data;
^~
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: John Garry <john.garry@huawei.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: wanghaibin.wang@huawei.com
Link: http://lkml.kernel.org/r/1557919169-23972-1-git-send-email-yuzenghui@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/pmu-events/jevents.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c
index daaea5003d4a..58f77fd0f59f 100644
--- a/tools/perf/pmu-events/jevents.c
+++ b/tools/perf/pmu-events/jevents.c
@@ -415,7 +415,6 @@ static int save_arch_std_events(void *data, char *name, char *event,
char *metric_name, char *metric_group)
{
struct event_struct *es;
- struct stat *sb = data;
es = malloc(sizeof(*es));
if (!es)
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-18 9:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-15 11:19 [PATCH] perf jevents: Remove unused variables Zenghui Yu
2019-05-15 19:12 ` Arnaldo Carvalho de Melo
2019-05-18 9:27 ` [tip:perf/core] perf jevents: Remove unused variable tip-bot for Zenghui Yu
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).