From: Michael Ellerman <mpe@ellerman.id.au>
To: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
mikey@neuling.org, shuahkh@osg.samsung.com, anton@samba.org
Subject: Re: [PATCH V4 00/13] POWER DSCR fixes, improvements, docs and tests
Date: Thu, 21 May 2015 13:53:50 +1000 [thread overview]
Message-ID: <1432180430.7260.4.camel@ellerman.id.au> (raw)
In-Reply-To: <1431946576-1009-1-git-send-email-khandual@linux.vnet.ibm.com>
On Mon, 2015-05-18 at 16:26 +0530, Anshuman Khandual wrote:
> This patch series has patches for POWER DSCR fixes, improvements,
> in code documentaion, kernel support user documentation and selftest based
> test cases. It has got five test cases which are derived from Anton's DSCR
> test bucket which can be listed as follows.
>
> (1) http://ozlabs.org/~anton/junkcode/dscr_default_test.c
> (2) http://ozlabs.org/~anton/junkcode/dscr_explicit_test.c
> (3) http://ozlabs.org/~anton/junkcode/dscr_inherit_exec_test.c
> (4) http://ozlabs.org/~anton/junkcode/dscr_inherit_test.c
> (5) http://ozlabs.org/~anton/junkcode/user_dscr_test.c
>
> NOTE1: Anton's original inherit exec test expected the child to have system
> default DSCR value instead of the inherited DSCR value from it's parent.
> But looks like thats not the case when we execute the test, it always
> inherits it's parent's DSCR value over the exec call as well. So I have
> changed the test program assuming its correct to have the inherited DSCR
> value in the fork/execed child program. Please let me know if thats not
> correct and I am missing something there.
The selftests still fail to build:
cc -Wall -O2 -flto -Wall -Werror -DGIT_VERSION='"v4.0-rc1-13631-gdfcba4b"' -I/home/buildbot/buildbot/slave/selftests-ppc64-gcc-ubuntu-be/build/tools/testing/selftests/powerpc -lpthread dscr_default_test.c ../harness.c -o dscr_default_test
In file included from dscr_default_test.c:16:0:
dscr.h: In function ‘get_default_dscr’:
dscr.h:93:6: error: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Werror=unused-result]
read(fd, buf, sizeof(buf));
^
dscr.h: In function ‘set_default_dscr’:
dscr.h:112:7: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result]
write(fd, buf, strlen(buf));
^
cc1: all warnings being treated as errors
make[1]: *** [dscr_default_test] Error 1
I'm happy for you to call perror() and exit(1) if either fail.
Please fix and resend.
cheers
prev parent reply other threads:[~2015-05-21 3:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-18 10:56 Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 01/13] powerpc: Fix handling of DSCR related facility unavailable exception Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 02/13] powerpc, process: Remove the unused extern dscr_default Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 03/13] powerpc, offset: Change PACA_DSCR to PACA_DSCR_DEFAULT Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 04/13] powerpc, dscr: Added some in-code documentation Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 05/13] documentation, powerpc: Add documentation for DSCR support Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 06/13] selftests, powerpc: Add test for system wide DSCR default Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 07/13] selftests, powerpc: Add test for explicitly changing DSCR value Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 08/13] selftests, powerpc: Add test for DSCR SPR numbers Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 09/13] selftests, powerpc: Add test for DSCR value inheritence across fork Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 10/13] selftests, powerpc: Add test for DSCR inheritence across fork & exec Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 11/13] selftests, powerpc: Add test for all DSCR sysfs interfaces Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 12/13] selftests, powerpc: Add thread based stress test for " Anshuman Khandual
2015-05-18 10:56 ` [PATCH V4 13/13] selftests, powerpc: Add gitignore file for the new DSCR tests Anshuman Khandual
2015-05-21 3:53 ` Michael Ellerman [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=1432180430.7260.4.camel@ellerman.id.au \
--to=mpe@ellerman.id.au \
--cc=anton@samba.org \
--cc=khandual@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mikey@neuling.org \
--cc=shuahkh@osg.samsung.com \
/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
all inboxes | Powered by JetHome®