From: kernel test robot <lkp@intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: clang-built-linux@googlegroups.com, alsa-devel@alsa-project.org,
kbuild-all@lists.01.org
Subject: [sound:for-next 164/168] include/sound/memalloc.h:63:17: error: use of undeclared identifier 'PAGE_SIZE'
Date: Thu, 10 Jun 2021 19:47:44 +0800 [thread overview]
Message-ID: <202106101931.75goUdXd-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2871 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head: 83fbcaed24d797528de00c024674fd58e8f1634f
commit: 37af81c5998f4b0f23fb452cffa4b8a1c00ce95b [164/168] ALSA: core: Abstract memory alloc helpers
config: riscv-randconfig-r002-20210610 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?id=37af81c5998f4b0f23fb452cffa4b8a1c00ce95b
git remote add sound https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
git fetch --no-tags sound for-next
git checkout 37af81c5998f4b0f23fb452cffa4b8a1c00ce95b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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 >>):
In file included from sound/core/pcm_iec958.c:8:
In file included from include/sound/pcm.h:12:
>> include/sound/memalloc.h:63:17: error: use of undeclared identifier 'PAGE_SIZE'
return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
^
>> include/sound/memalloc.h:63:35: error: use of undeclared identifier 'PAGE_SHIFT'
return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
^
2 errors generated.
vim +/PAGE_SIZE +63 include/sound/memalloc.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 57
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 58 /*
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 59 * return the pages matching with the given byte size
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 60 */
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 61 static inline unsigned int snd_sgbuf_aligned_pages(size_t size)
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 62 {
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 @63 return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 64 }
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 65
:::::: The code at line 63 was first introduced by commit
:::::: 4cae99d9b5305ab8cccc839fccceb81ec9e5abda ALSA: memalloc: declare snd_sgbuf_aligned_pages() unconditionally
:::::: TO: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
:::::: CC: Mark Brown <broonie@kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25425 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [sound:for-next 164/168] include/sound/memalloc.h:63:17: error: use of undeclared identifier 'PAGE_SIZE'
Date: Thu, 10 Jun 2021 19:47:44 +0800 [thread overview]
Message-ID: <202106101931.75goUdXd-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2927 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head: 83fbcaed24d797528de00c024674fd58e8f1634f
commit: 37af81c5998f4b0f23fb452cffa4b8a1c00ce95b [164/168] ALSA: core: Abstract memory alloc helpers
config: riscv-randconfig-r002-20210610 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?id=37af81c5998f4b0f23fb452cffa4b8a1c00ce95b
git remote add sound https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
git fetch --no-tags sound for-next
git checkout 37af81c5998f4b0f23fb452cffa4b8a1c00ce95b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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 >>):
In file included from sound/core/pcm_iec958.c:8:
In file included from include/sound/pcm.h:12:
>> include/sound/memalloc.h:63:17: error: use of undeclared identifier 'PAGE_SIZE'
return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
^
>> include/sound/memalloc.h:63:35: error: use of undeclared identifier 'PAGE_SHIFT'
return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
^
2 errors generated.
vim +/PAGE_SIZE +63 include/sound/memalloc.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 57
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 58 /*
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 59 * return the pages matching with the given byte size
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 60 */
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 61 static inline unsigned int snd_sgbuf_aligned_pages(size_t size)
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 62 {
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 @63 return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 64 }
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 65
:::::: The code at line 63 was first introduced by commit
:::::: 4cae99d9b5305ab8cccc839fccceb81ec9e5abda ALSA: memalloc: declare snd_sgbuf_aligned_pages() unconditionally
:::::: TO: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
:::::: CC: Mark Brown <broonie@kernel.org>
---
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: 25425 bytes --]
next reply other threads:[~2021-06-10 11:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-10 11:47 kernel test robot [this message]
2021-06-10 11:47 ` [sound:for-next 164/168] include/sound/memalloc.h:63:17: error: use of undeclared identifier 'PAGE_SIZE' kernel test robot
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=202106101931.75goUdXd-lkp@intel.com \
--to=lkp@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=tiwai@suse.de \
/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 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.