From: kbuild test robot <lkp@intel.com>
To: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: mark.rutland@arm.com, linux-mips@linux-mips.org,
peterz@infradead.org, benh@kernel.crashing.org,
heiko.carstens@de.ibm.com, paulus@samba.org, hpa@zytor.com,
sparclinux@vger.kernel.org, devel@driverdev.osuosl.org,
linux-s390@vger.kernel.org, y2038@lists.linaro.org,
mpe@ellerman.id.au, deller@gmx.de, x86@kernel.org,
sebott@linux.vnet.ibm.com, jejb@parisc-linux.org,
borntraeger@de.ibm.com, mingo@redhat.com,
oprofile-list@lists.sf.net, catalin.marinas@arm.com,
oberpar@linux.vnet.ibm.com, rric@kernel.org,
cmetcalf@mellanox.com, arnd@arndb.de, will.deacon@arm.com,
acme@kernel.org, jwi@linux.vnet.ibm.com, john.stultz@linaro.org,
rostedt@goodmis.org, tglx@linutronix.de,
gerald.schaefer@de.ibm.com, linux-parisc@vger.kernel.org,
gregkh@linuxfoundation.org, cohuck@redhat.com,
linux-kernel@vger.kernel.org, ralf@linux-mips.org,
davem@davemloft.net, hoeppner@linux.vnet.ibm.com,
kbuild-all@01.org, sth@linux.vnet.ibm.com,
schwidefsky@de.ibm.com, linuxppc-dev@lists.ozlabs.org,
ubraun@linux.vnet.ibm.com
Subject: Re: [PATCH v4 02/10] include: Move compat_timespec/ timeval to compat_time.h
Date: Tue, 13 Mar 2018 23:30:51 +0800 [thread overview]
Message-ID: <201803132351.1SZJ68nV%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180312175307.11032-3-deepa.kernel@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3259 bytes --]
Hi Deepa,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on ]
url: https://github.com/0day-ci/linux/commits/Deepa-Dinamani/posix_clocks-Prepare-syscalls-for-64-bit-time_t-conversion/20180313-203305
base:
config: powerpc-iss476-smp_defconfig (attached as .config)
compiler: powerpc-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc
All errors (new ones prefixed by >>):
arch/powerpc/oprofile/backtrace.c: In function 'user_getsp32':
>> arch/powerpc/oprofile/backtrace.c:31:19: error: implicit declaration of function 'compat_ptr'; did you mean 'complete'? [-Werror=implicit-function-declaration]
void __user *p = compat_ptr(sp);
^~~~~~~~~~
complete
>> arch/powerpc/oprofile/backtrace.c:31:19: error: initialization makes pointer from integer without a cast [-Werror=int-conversion]
cc1: all warnings being treated as errors
vim +31 arch/powerpc/oprofile/backtrace.c
6c6bd754 Brian Rogan 2006-03-27 27
6c6bd754 Brian Rogan 2006-03-27 28 static unsigned int user_getsp32(unsigned int sp, int is_first)
6c6bd754 Brian Rogan 2006-03-27 29 {
6c6bd754 Brian Rogan 2006-03-27 30 unsigned int stack_frame[2];
62034f03 Al Viro 2006-09-23 @31 void __user *p = compat_ptr(sp);
6c6bd754 Brian Rogan 2006-03-27 32
62034f03 Al Viro 2006-09-23 33 if (!access_ok(VERIFY_READ, p, sizeof(stack_frame)))
6c6bd754 Brian Rogan 2006-03-27 34 return 0;
6c6bd754 Brian Rogan 2006-03-27 35
6c6bd754 Brian Rogan 2006-03-27 36 /*
6c6bd754 Brian Rogan 2006-03-27 37 * The most likely reason for this is that we returned -EFAULT,
6c6bd754 Brian Rogan 2006-03-27 38 * which means that we've done all that we can do from
6c6bd754 Brian Rogan 2006-03-27 39 * interrupt context.
6c6bd754 Brian Rogan 2006-03-27 40 */
62034f03 Al Viro 2006-09-23 41 if (__copy_from_user_inatomic(stack_frame, p, sizeof(stack_frame)))
6c6bd754 Brian Rogan 2006-03-27 42 return 0;
6c6bd754 Brian Rogan 2006-03-27 43
6c6bd754 Brian Rogan 2006-03-27 44 if (!is_first)
6c6bd754 Brian Rogan 2006-03-27 45 oprofile_add_trace(STACK_LR32(stack_frame));
6c6bd754 Brian Rogan 2006-03-27 46
6c6bd754 Brian Rogan 2006-03-27 47 /*
6c6bd754 Brian Rogan 2006-03-27 48 * We do not enforce increasing stack addresses here because
6c6bd754 Brian Rogan 2006-03-27 49 * we may transition to a different stack, eg a signal handler.
6c6bd754 Brian Rogan 2006-03-27 50 */
6c6bd754 Brian Rogan 2006-03-27 51 return STACK_SP(stack_frame);
6c6bd754 Brian Rogan 2006-03-27 52 }
6c6bd754 Brian Rogan 2006-03-27 53
:::::: The code at line 31 was first introduced by commit
:::::: 62034f03380a64c0144b6721f4a2aa55d65346c1 [POWERPC] powerpc oprofile __user annotations
:::::: TO: Al Viro <viro@ftp.linux.org.uk>
:::::: CC: Paul Mackerras <paulus@samba.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 9648 bytes --]
[-- Attachment #3: Type: text/plain, Size: 169 bytes --]
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
next prev parent reply other threads:[~2018-03-13 15:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-12 17:52 [PATCH v4 00/10] posix_clocks: Prepare syscalls for 64 bit time_t conversion Deepa Dinamani
2018-03-12 17:52 ` [PATCH v4 01/10] compat: Make compat helpers independent of CONFIG_COMPAT Deepa Dinamani
2018-03-12 17:52 ` [PATCH v4 02/10] include: Move compat_timespec/ timeval to compat_time.h Deepa Dinamani
2018-03-13 15:22 ` kbuild test robot
2018-03-14 3:50 ` [Y2038] " Deepa Dinamani
2018-03-14 20:52 ` Arnd Bergmann
2018-03-15 2:51 ` Deepa Dinamani
2018-03-15 8:04 ` Arnd Bergmann
2018-03-17 7:32 ` Fengguang Wu
2018-03-13 15:30 ` kbuild test robot [this message]
2018-03-14 3:56 ` Deepa Dinamani
2018-03-12 17:53 ` [PATCH v4 03/10] compat: enable compat_get/put_timespec64 always Deepa Dinamani
2018-03-12 17:53 ` [PATCH v4 04/10] arch: introduce CONFIG_64BIT_TIME Deepa Dinamani
2018-03-12 17:53 ` [PATCH v4 05/10] arch: Introduce CONFIG_COMPAT_32BIT_TIME Deepa Dinamani
2018-03-12 17:53 ` [PATCH v4 06/10] posix-clocks: Make compat syscalls depend on CONFIG_COMPAT_32BIT_TIME Deepa Dinamani
2018-03-12 17:53 ` [PATCH v4 07/10] include: Add new y2038 safe __kernel_timespec Deepa Dinamani
2018-03-12 17:53 ` [PATCH v4 08/10] fix get_timespec64() for y2038 safe compat interfaces Deepa Dinamani
2018-03-12 17:53 ` [PATCH v4 09/10] change time types to new y2038 safe __kernel_* types Deepa Dinamani
2018-03-12 17:53 ` [PATCH v4 10/10] nanosleep: change time types to " Deepa Dinamani
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=201803132351.1SZJ68nV%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=acme@kernel.org \
--cc=arnd@arndb.de \
--cc=benh@kernel.crashing.org \
--cc=borntraeger@de.ibm.com \
--cc=catalin.marinas@arm.com \
--cc=cmetcalf@mellanox.com \
--cc=cohuck@redhat.com \
--cc=davem@davemloft.net \
--cc=deepa.kernel@gmail.com \
--cc=deller@gmx.de \
--cc=devel@driverdev.osuosl.org \
--cc=gerald.schaefer@de.ibm.com \
--cc=gregkh@linuxfoundation.org \
--cc=heiko.carstens@de.ibm.com \
--cc=hoeppner@linux.vnet.ibm.com \
--cc=hpa@zytor.com \
--cc=jejb@parisc-linux.org \
--cc=john.stultz@linaro.org \
--cc=jwi@linux.vnet.ibm.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=linux-parisc@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=mpe@ellerman.id.au \
--cc=oberpar@linux.vnet.ibm.com \
--cc=oprofile-list@lists.sf.net \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
--cc=ralf@linux-mips.org \
--cc=rostedt@goodmis.org \
--cc=rric@kernel.org \
--cc=schwidefsky@de.ibm.com \
--cc=sebott@linux.vnet.ibm.com \
--cc=sparclinux@vger.kernel.org \
--cc=sth@linux.vnet.ibm.com \
--cc=tglx@linutronix.de \
--cc=ubraun@linux.vnet.ibm.com \
--cc=will.deacon@arm.com \
--cc=x86@kernel.org \
--cc=y2038@lists.linaro.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
all inboxes | Powered by JetHome®