From: Michael Petlan <mpetlan@redhat.com>
To: Jiri Olsa <jolsa@redhat.com>
Cc: linux-perf-users@vger.kernel.org, acme@kernel.org
Subject: Re: [PATCH 1/9] perf test: Adding an entry for the perftool-testsuite
Date: Tue, 29 Mar 2016 14:19:47 +0200 (CEST) [thread overview]
Message-ID: <alpine.LRH.2.20.1603290212010.7107@Rudolf-RHEL-7> (raw)
In-Reply-To: <20160327122435.GK4015@krava.sund.root.ku.dk>
[-- Attachment #1: Type: text/plain, Size: 1920 bytes --]
On Sun, 27 Mar 2016, Jiri Olsa wrote:
>
> got following compile error:
>
> CC tests/suite.o
> tests/suite.c: In function ‘test__suite’:
> tests/suite.c:119:20: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
> _tempdir_template = mkdtemp(tempdir_template);
> ^
> tests/suite.c:120:30: error: passing argument 2 of ‘setenv’ makes pointer from integer without a cast [-Werror=int-conversion]
> setenv("PERFSUITE_RUN_DIR", _tempdir_template, 1);
> ^
> In file included from tests/suite.h:6:0,
> from tests/suite.c:1:
> /usr/include/stdlib.h:584:12: note: expected ‘const char *’ but argument is of type ‘char’
> extern int setenv (const char *__name, const char *__value, int __replace)
> ^
> cc1: all warnings being treated as errors
>
>
> moving on with attached patch
I noticed this error too and that's why I sent the mail with the following $subj:
"[PATCH 1/9] perf test: Adding an entry for the perftool-testsuite - CORRECT"
A stupid mistake, of course it must be a pointer.
Michael
>
> thanks,
> jirka
>
>
> ---
> diff --git a/tools/perf/tests/suite.c b/tools/perf/tests/suite.c
> index 17f66107f34d..1561bec3a2e1 100644
> --- a/tools/perf/tests/suite.c
> +++ b/tools/perf/tests/suite.c
> @@ -108,7 +108,8 @@ int test__suite(int subtest __maybe_unused)
> int test_status = TEST_OK;
> char verbosity_str[2];
> int _verbose = (verbose > 9)? 9 : verbose;
> - char tempdir_template[24], _tempdir_template;
> + char tempdir_template[24];
> + char *_tempdir_template;
>
> /* set verbosity according to perf-test command line switches */
> snprintf(verbosity_str, 2, "%i", _verbose);
> --
> To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2016-03-29 12:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1458134357.git.mpetlan@redhat.com>
2016-03-16 13:50 ` [PATCH 1/9] perf test: Adding an entry for the perftool-testsuite Michael Petlan
2016-03-27 12:23 ` Jiri Olsa
2016-03-29 12:57 ` Michael Petlan
2016-03-27 12:23 ` Jiri Olsa
2016-03-27 12:24 ` Jiri Olsa
2016-03-27 12:24 ` Jiri Olsa
2016-03-29 12:19 ` Michael Petlan [this message]
2016-03-27 12:24 ` Jiri Olsa
2016-03-29 12:19 ` Michael Petlan
2016-03-29 19:39 ` Jiri Olsa
2016-03-27 12:24 ` Jiri Olsa
2016-03-16 13:51 ` [PATCH 2/9] perf test: adding new testsuite: common files Michael Petlan
2016-03-16 13:54 ` [PATCH 3/9] perf test: new testsuite: perf annotate tests Michael Petlan
2016-03-16 13:55 ` [PATCH 4/9] perf test: new testsuite: perf buildid-list tests Michael Petlan
2016-03-16 13:55 ` [PATCH 5/9] perf test: new testsuite: perf list tests Michael Petlan
2016-03-16 13:56 ` [PATCH 6/9] perf test: new testsuite: perf probe tests Michael Petlan
2016-03-16 13:56 ` [PATCH 7/9] perf test: new testsuite: perf report tests Michael Petlan
2016-03-16 13:57 ` [PATCH 8/9] perf test: new testsuite: perf stat tests Michael Petlan
2016-03-16 13:57 ` [PATCH 9/9] perf test: new testsuite: perf trace tests Michael Petlan
2015-12-07 18:52 [PATCH 1/9] perf test: Adding an entry for the perftool-testsuite Michael Petlan
2015-12-15 12:03 ` Jiri Olsa
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=alpine.LRH.2.20.1603290212010.7107@Rudolf-RHEL-7 \
--to=mpetlan@redhat.com \
--cc=acme@kernel.org \
--cc=jolsa@redhat.com \
--cc=linux-perf-users@vger.kernel.org \
/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