All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-linux-intel-lts:4.14/yocto/base 13391/21617] include/sound/memalloc.h:77:17: error: 'PAGE_SIZE' undeclared; did you mean
@ 2020-12-31  9:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-31  9:24 UTC (permalink / raw)
  To: kbuild-all

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

Hi Kris,

FYI, the error/warning still remains.

tree:   https://github.com/intel/linux-intel-lts.git 4.14/yocto/base
head:   1495f925e1703950fc61813cc0377cbcdf648385
commit: 4061602f6467fba015e9923e58102fc2d022b39b [13391/21617] x86/cpu: fix FAM6_ATOM naming
config: xtensa-randconfig-c004-20201231 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.5.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://github.com/intel/linux-intel-lts/commit/4061602f6467fba015e9923e58102fc2d022b39b
        git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
        git fetch --no-tags intel-linux-intel-lts 4.14/yocto/base
        git checkout 4061602f6467fba015e9923e58102fc2d022b39b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=xtensa 

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


vim +77 include/sound/memalloc.h

    71	
    72	/*
    73	 * return the pages matching with the given byte size
    74	 */
    75	static inline unsigned int snd_sgbuf_aligned_pages(size_t size)
    76	{
  > 77		return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
    78	}
    79	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-31  9:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-31  9:24 [intel-linux-intel-lts:4.14/yocto/base 13391/21617] include/sound/memalloc.h:77:17: error: 'PAGE_SIZE' undeclared; did you mean 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.