All of lore.kernel.org
 help / color / mirror / Atom feed
* [sound:for-next 164/167] include/sound/memalloc.h:63:17: error: 'PAGE_SIZE' undeclared
@ 2021-06-10 10:07 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-10 10:07 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2898 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head:   7fdabab8f56239466275adea5d2f0a6fff27527b
commit: 37af81c5998f4b0f23fb452cffa4b8a1c00ce95b [164/167] ALSA: core: Abstract memory alloc helpers
config: h8300-randconfig-r006-20210610 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
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
        # 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=gcc-9.3.0 make.cross ARCH=h8300 

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 include/sound/pcm.h:12,
                    from sound/core/pcm_iec958.c:8:
   include/sound/memalloc.h: In function 'snd_sgbuf_aligned_pages':
>> include/sound/memalloc.h:63:17: error: 'PAGE_SIZE' undeclared (first use in this function)
      63 |  return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
         |                 ^~~~~~~~~
   include/sound/memalloc.h:63:17: note: each undeclared identifier is reported only once for each function it appears in
>> include/sound/memalloc.h:63:35: error: 'PAGE_SHIFT' undeclared (first use in this function)
      63 |  return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
         |                                   ^~~~~~~~~~


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: 33328 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [sound:for-next 164/167] include/sound/memalloc.h:63:17: error: 'PAGE_SIZE' undeclared
@ 2021-06-10 10:07 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-10 10:07 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2953 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head:   7fdabab8f56239466275adea5d2f0a6fff27527b
commit: 37af81c5998f4b0f23fb452cffa4b8a1c00ce95b [164/167] ALSA: core: Abstract memory alloc helpers
config: h8300-randconfig-r006-20210610 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
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
        # 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=gcc-9.3.0 make.cross ARCH=h8300 

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 include/sound/pcm.h:12,
                    from sound/core/pcm_iec958.c:8:
   include/sound/memalloc.h: In function 'snd_sgbuf_aligned_pages':
>> include/sound/memalloc.h:63:17: error: 'PAGE_SIZE' undeclared (first use in this function)
      63 |  return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
         |                 ^~~~~~~~~
   include/sound/memalloc.h:63:17: note: each undeclared identifier is reported only once for each function it appears in
>> include/sound/memalloc.h:63:35: error: 'PAGE_SHIFT' undeclared (first use in this function)
      63 |  return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
         |                                   ^~~~~~~~~~


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: 33328 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-10 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10 10:07 [sound:for-next 164/167] include/sound/memalloc.h:63:17: error: 'PAGE_SIZE' undeclared kernel test robot
2021-06-10 10:07 ` kernel test robot

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.