* [chrome-os:chromeos-5.4 9731/9999] arch/arm64/kernel/vdso/vgettimeofday.c:9:5: error: no previous prototype for function '__kernel_clock_gettime'
@ 2020-06-19 16:46 kernel test robot
2020-06-20 0:15 ` Stephen Boyd
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2020-06-19 16:46 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4536 bytes --]
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: e32b8d66db3100a239a87642f0a8025c396c0670
commit: 7580417d2782bc89f27754eefaa2c9f0c8023a48 [9731/9999] UPSTREAM: ASoC: Fix SND_SOC_ALL_CODECS imply misc fallout
config: arm64-randconfig-r003-20200619 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git checkout 7580417d2782bc89f27754eefaa2c9f0c8023a48
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
WARNING: unmet direct dependencies detected for SND_SOC_WM5110
Depends on SOUND && !UML && SND && SND_SOC && MFD_WM5110
Selected by
- SND_SOC_SAMSUNG_TM2_WM5110 && SOUND && !UML && SND && SND_SOC && SND_SOC_SAMSUNG && MFD_ARIZONA && I2C && SPI_MASTER && (GPIOLIB || COMPILE_TEST
>> arch/arm64/kernel/vdso/vgettimeofday.c:9:5: error: no previous prototype for function '__kernel_clock_gettime'
int __kernel_clock_gettime(clockid_t clock,
^
arch/arm64/kernel/vdso/vgettimeofday.c:9:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __kernel_clock_gettime(clockid_t clock,
^
static
>> arch/arm64/kernel/vdso/vgettimeofday.c:15:5: error: no previous prototype for function '__kernel_gettimeofday'
int __kernel_gettimeofday(struct __kernel_old_timeval
^
arch/arm64/kernel/vdso/vgettimeofday.c:15:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __kernel_gettimeofday(struct __kernel_old_timeval
^
static
>> arch/arm64/kernel/vdso/vgettimeofday.c:21:5: error: no previous prototype for function '__kernel_clock_getres'
int __kernel_clock_getres(clockid_t clock_id,
^
arch/arm64/kernel/vdso/vgettimeofday.c:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __kernel_clock_getres(clockid_t clock_id,
^
static
3 errors generated.
Makefile arch include kernel null.dwo scripts source usr [scripts/Makefile.build:265: arch/arm64/kernel/vdso/vgettimeofday.o] Error 1
Target 'include/generated/vdso-offsets.h' not remade because of errors.
Makefile arch include kernel null.dwo scripts source usr [arch/arm64/Makefile:163: vdso_prepare] Error 2
Target 'prepare' not remade because of errors.
make: Makefile arch include kernel null.dwo scripts source usr [Makefile:179: sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/__kernel_clock_gettime +9 arch/arm64/kernel/vdso/vgettimeofday.c
28b1a824a4f44da Vincenzo Frascino 2019-06-21 @9 int __kernel_clock_gettime(clockid_t clock,
28b1a824a4f44da Vincenzo Frascino 2019-06-21 10 struct __kernel_timespec *ts)
28b1a824a4f44da Vincenzo Frascino 2019-06-21 11 {
28b1a824a4f44da Vincenzo Frascino 2019-06-21 12 return __cvdso_clock_gettime(clock, ts);
28b1a824a4f44da Vincenzo Frascino 2019-06-21 13 }
28b1a824a4f44da Vincenzo Frascino 2019-06-21 14
28b1a824a4f44da Vincenzo Frascino 2019-06-21 @15 int __kernel_gettimeofday(struct __kernel_old_timeval *tv,
28b1a824a4f44da Vincenzo Frascino 2019-06-21 16 struct timezone *tz)
28b1a824a4f44da Vincenzo Frascino 2019-06-21 17 {
28b1a824a4f44da Vincenzo Frascino 2019-06-21 18 return __cvdso_gettimeofday(tv, tz);
28b1a824a4f44da Vincenzo Frascino 2019-06-21 19 }
28b1a824a4f44da Vincenzo Frascino 2019-06-21 20
28b1a824a4f44da Vincenzo Frascino 2019-06-21 @21 int __kernel_clock_getres(clockid_t clock_id,
:::::: The code at line 9 was first introduced by commit
:::::: 28b1a824a4f44da46983cd2c3249f910bd4b797b arm64: vdso: Substitute gettimeofday() with C implementation
:::::: TO: Vincenzo Frascino <vincenzo.frascino@arm.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36984 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [chrome-os:chromeos-5.4 9731/9999] arch/arm64/kernel/vdso/vgettimeofday.c:9:5: error: no previous prototype for function '__kernel_clock_gettime'
2020-06-19 16:46 [chrome-os:chromeos-5.4 9731/9999] arch/arm64/kernel/vdso/vgettimeofday.c:9:5: error: no previous prototype for function '__kernel_clock_gettime' kernel test robot
@ 2020-06-20 0:15 ` Stephen Boyd
2020-06-20 1:06 ` Guenter Roeck
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Boyd @ 2020-06-20 0:15 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2936 bytes --]
On Fri, Jun 19, 2020 at 9:47 AM kernel test robot <lkp@intel.com> wrote:
>
> tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
> head: e32b8d66db3100a239a87642f0a8025c396c0670
> commit: 7580417d2782bc89f27754eefaa2c9f0c8023a48 [9731/9999] UPSTREAM: ASoC: Fix SND_SOC_ALL_CODECS imply misc fallout
> config: arm64-randconfig-r003-20200619 (attached as .config)
> compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
> reproduce (this is a W=1 build):
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # install arm64 cross compiling tool for clang build
> # apt-get install binutils-aarch64-linux-gnu
> git checkout 7580417d2782bc89f27754eefaa2c9f0c8023a48
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> WARNING: unmet direct dependencies detected for SND_SOC_WM5110
> Depends on SOUND && !UML && SND && SND_SOC && MFD_WM5110
> Selected by
> - SND_SOC_SAMSUNG_TM2_WM5110 && SOUND && !UML && SND && SND_SOC && SND_SOC_SAMSUNG && MFD_ARIZONA && I2C && SPI_MASTER && (GPIOLIB || COMPILE_TEST
> >> arch/arm64/kernel/vdso/vgettimeofday.c:9:5: error: no previous prototype for function '__kernel_clock_gettime'
> int __kernel_clock_gettime(clockid_t clock,
> ^
> arch/arm64/kernel/vdso/vgettimeofday.c:9:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> int __kernel_clock_gettime(clockid_t clock,
> ^
> static
> >> arch/arm64/kernel/vdso/vgettimeofday.c:15:5: error: no previous prototype for function '__kernel_gettimeofday'
> int __kernel_gettimeofday(struct __kernel_old_timeval
> ^
> arch/arm64/kernel/vdso/vgettimeofday.c:15:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> int __kernel_gettimeofday(struct __kernel_old_timeval
> ^
> static
> >> arch/arm64/kernel/vdso/vgettimeofday.c:21:5: error: no previous prototype for function '__kernel_clock_getres'
> int __kernel_clock_getres(clockid_t clock_id,
> ^
> arch/arm64/kernel/vdso/vgettimeofday.c:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> int __kernel_clock_getres(clockid_t clock_id,
> ^
> static
> 3 errors generated.
I've been seeing these errors upstream too. I don't know if there's
anything to fix besides making up some header file that confirms the
ABI that is being exposed to userspace and then including it here.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [chrome-os:chromeos-5.4 9731/9999] arch/arm64/kernel/vdso/vgettimeofday.c:9:5: error: no previous prototype for function '__kernel_clock_gettime'
2020-06-20 0:15 ` Stephen Boyd
@ 2020-06-20 1:06 ` Guenter Roeck
0 siblings, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2020-06-20 1:06 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3376 bytes --]
On Fri, Jun 19, 2020 at 5:16 PM Stephen Boyd <swboyd@google.com> wrote:
>
> On Fri, Jun 19, 2020 at 9:47 AM kernel test robot <lkp@intel.com> wrote:
> >
> > tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
> > head: e32b8d66db3100a239a87642f0a8025c396c0670
> > commit: 7580417d2782bc89f27754eefaa2c9f0c8023a48 [9731/9999] UPSTREAM: ASoC: Fix SND_SOC_ALL_CODECS imply misc fallout
> > config: arm64-randconfig-r003-20200619 (attached as .config)
> > compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
> > reproduce (this is a W=1 build):
> > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> > chmod +x ~/bin/make.cross
> > # install arm64 cross compiling tool for clang build
> > # apt-get install binutils-aarch64-linux-gnu
> > git checkout 7580417d2782bc89f27754eefaa2c9f0c8023a48
> > # save the attached .config to linux build tree
> > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
> >
> > If you fix the issue, kindly add following tag as appropriate
> > Reported-by: kernel test robot <lkp@intel.com>
> >
> > All errors (new ones prefixed by >>):
> >
> > WARNING: unmet direct dependencies detected for SND_SOC_WM5110
> > Depends on SOUND && !UML && SND && SND_SOC && MFD_WM5110
> > Selected by
> > - SND_SOC_SAMSUNG_TM2_WM5110 && SOUND && !UML && SND && SND_SOC && SND_SOC_SAMSUNG && MFD_ARIZONA && I2C && SPI_MASTER && (GPIOLIB || COMPILE_TEST
> > >> arch/arm64/kernel/vdso/vgettimeofday.c:9:5: error: no previous prototype for function '__kernel_clock_gettime'
> > int __kernel_clock_gettime(clockid_t clock,
> > ^
> > arch/arm64/kernel/vdso/vgettimeofday.c:9:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> > int __kernel_clock_gettime(clockid_t clock,
> > ^
> > static
> > >> arch/arm64/kernel/vdso/vgettimeofday.c:15:5: error: no previous prototype for function '__kernel_gettimeofday'
> > int __kernel_gettimeofday(struct __kernel_old_timeval
> > ^
> > arch/arm64/kernel/vdso/vgettimeofday.c:15:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> > int __kernel_gettimeofday(struct __kernel_old_timeval
> > ^
> > static
> > >> arch/arm64/kernel/vdso/vgettimeofday.c:21:5: error: no previous prototype for function '__kernel_clock_getres'
> > int __kernel_clock_getres(clockid_t clock_id,
> > ^
> > arch/arm64/kernel/vdso/vgettimeofday.c:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> > int __kernel_clock_getres(clockid_t clock_id,
> > ^
> > static
> > 3 errors generated.
>
> I've been seeing these errors upstream too. I don't know if there's
> anything to fix besides making up some header file that confirms the
> ABI that is being exposed to userspace and then including it here.
Yes, I noticed as well; that is why I didn't submit a CL. Lots of
other vdso functions seem to have the same problem. For example, I
don't see __cvdso_clock_gettime32() declared anywhere. Wonder why, and
why it doesn't generate similar warnings.
Guenter
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-20 1:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-19 16:46 [chrome-os:chromeos-5.4 9731/9999] arch/arm64/kernel/vdso/vgettimeofday.c:9:5: error: no previous prototype for function '__kernel_clock_gettime' kernel test robot
2020-06-20 0:15 ` Stephen Boyd
2020-06-20 1:06 ` Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.