All of lore.kernel.org
 help / color / mirror / Atom feed
* [-mmots 2016-04-25] hugetlb: error: ‘cpu_has_pse’ undeclared
@ 2016-04-26 14:14 Sergey Senozhatsky
  2016-04-26 22:00 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Sergey Senozhatsky @ 2016-04-26 14:14 UTC (permalink / raw)
  To: Jan Beulich
  Cc: Vitaly Kuznetsov, Andrew Morton, Andy Lutomirski, Ingo Molnar,
	linux-kernel, linux-mmc@vger.kernel.org Sergey Senozhatsky,
	Sergey Senozhatsky

Hello,

v4.6-rc5-mmots-2016-04-25-17-33


In file included from include/linux/hugetlb.h:418:0,
                 from fs/hugetlbfs/inode.c:28:
fs/hugetlbfs/inode.c: In function ‘init_hugetlbfs_fs’:
./arch/x86/include/asm/hugetlb.h:7:31: error: ‘cpu_has_pse’ undeclared (first use in this function)
 #define hugepages_supported() cpu_has_pse
                               ^
fs/hugetlbfs/inode.c:1325:7: note: in expansion of macro ‘hugepages_supported’
  if (!hugepages_supported()) {
       ^~~~~~~~~~~~~~~~~~~
./arch/x86/include/asm/hugetlb.h:7:31: note: each undeclared identifier is reported only once for each function it appears in
 #define hugepages_supported() cpu_has_pse
                               ^
fs/hugetlbfs/inode.c:1325:7: note: in expansion of macro ‘hugepages_supported’
  if (!hugepages_supported()) {
       ^~~~~~~~~~~~~~~~~~~
scripts/Makefile.build:289: recipe for target 'fs/hugetlbfs/inode.o' failed
make[2]: *** [fs/hugetlbfs/inode.o] Error 1
scripts/Makefile.build:440: recipe for target 'fs/hugetlbfs' failed
make[1]: *** [fs/hugetlbfs] Error 2
make[1]: *** Waiting for unfinished jobs....



git grep cpu_has_pse
arch/x86/include/asm/hugetlb.h:#define hugepages_supported() cpu_has_pse


	-ss

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

* Re: [-mmots 2016-04-25] hugetlb: error: ‘cpu_has_pse’ undeclared
  2016-04-26 14:14 [-mmots 2016-04-25] hugetlb: error: ‘cpu_has_pse’ undeclared Sergey Senozhatsky
@ 2016-04-26 22:00 ` Andrew Morton
  2016-04-27  0:37   ` Sergey Senozhatsky
  2016-04-27  8:01   ` Ingo Molnar
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Morton @ 2016-04-26 22:00 UTC (permalink / raw)
  To: Sergey Senozhatsky
  Cc: Jan Beulich, Vitaly Kuznetsov, Andy Lutomirski, Ingo Molnar,
	linux-kernel, Sergey Senozhatsky

On Tue, 26 Apr 2016 23:14:35 +0900 Sergey Senozhatsky <sergey.senozhatsky@gmail.com> wrote:

> Hello,
> 
> v4.6-rc5-mmots-2016-04-25-17-33
> 
> 
> In file included from include/linux/hugetlb.h:418:0,
>                  from fs/hugetlbfs/inode.c:28:
> fs/hugetlbfs/inode.c: In function 'init_hugetlbfs_fs':
> ./arch/x86/include/asm/hugetlb.h:7:31: error: 'cpu_has_pse' undeclared (first use in this function)
>  #define hugepages_supported() cpu_has_pse
>                                ^

hm, how did that happen.  I had some issues with cpu_has_pse a number
of days ago but they later went away.

In my current tree I have, in arch/x86/include/asm/hugetlb.h:

#define hugepages_supported() boot_cpu_has(X86_FEATURE_PSE)

and that came in from linux-next.patch.  I wonder why your tree is
different.

<looks>

OK, http://ozlabs.org/~akpm/mmots/broken-out/linux-next.patch has no
changes to arch/x86/include/asm/hugetlb.h at all.  Maybe I fat-fingered
something.  Odd.

I have just uploaded a new snapshot - it should be good now.  Sorry about
that.

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

* Re: [-mmots 2016-04-25] hugetlb: error: ‘cpu_has_pse’ undeclared
  2016-04-26 22:00 ` Andrew Morton
@ 2016-04-27  0:37   ` Sergey Senozhatsky
  2016-04-27  8:01   ` Ingo Molnar
  1 sibling, 0 replies; 4+ messages in thread
From: Sergey Senozhatsky @ 2016-04-27  0:37 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Sergey Senozhatsky, Jan Beulich, Vitaly Kuznetsov,
	Andy Lutomirski, Ingo Molnar, linux-kernel, Sergey Senozhatsky

On (04/26/16 15:00), Andrew Morton wrote:
> > v4.6-rc5-mmots-2016-04-25-17-33
> > 
> > 
> > In file included from include/linux/hugetlb.h:418:0,
> >                  from fs/hugetlbfs/inode.c:28:
> > fs/hugetlbfs/inode.c: In function 'init_hugetlbfs_fs':
> > ./arch/x86/include/asm/hugetlb.h:7:31: error: 'cpu_has_pse' undeclared (first use in this function)
> >  #define hugepages_supported() cpu_has_pse
> >                                ^
> 
> hm, how did that happen.  I had some issues with cpu_has_pse a number
> of days ago but they later went away.
> 
> In my current tree I have, in arch/x86/include/asm/hugetlb.h:
> 
> #define hugepages_supported() boot_cpu_has(X86_FEATURE_PSE)
> 
> and that came in from linux-next.patch.  I wonder why your tree is
> different.
> 
> <looks>
> 
> OK, http://ozlabs.org/~akpm/mmots/broken-out/linux-next.patch has no
> changes to arch/x86/include/asm/hugetlb.h at all.  Maybe I fat-fingered
> something.  Odd.
> 
> I have just uploaded a new snapshot - it should be good now.  Sorry about
> that.

no worries. thanks!

	-ss

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

* Re: [-mmots 2016-04-25] hugetlb: error: ‘cpu_has_pse’ undeclared
  2016-04-26 22:00 ` Andrew Morton
  2016-04-27  0:37   ` Sergey Senozhatsky
@ 2016-04-27  8:01   ` Ingo Molnar
  1 sibling, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2016-04-27  8:01 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Sergey Senozhatsky, Jan Beulich, Vitaly Kuznetsov,
	Andy Lutomirski, linux-kernel, Sergey Senozhatsky,
	Borislav Petkov


* Andrew Morton <akpm@linux-foundation.org> wrote:

> On Tue, 26 Apr 2016 23:14:35 +0900 Sergey Senozhatsky <sergey.senozhatsky@gmail.com> wrote:
> 
> > Hello,
> > 
> > v4.6-rc5-mmots-2016-04-25-17-33
> > 
> > 
> > In file included from include/linux/hugetlb.h:418:0,
> >                  from fs/hugetlbfs/inode.c:28:
> > fs/hugetlbfs/inode.c: In function 'init_hugetlbfs_fs':
> > ./arch/x86/include/asm/hugetlb.h:7:31: error: 'cpu_has_pse' undeclared (first use in this function)
> >  #define hugepages_supported() cpu_has_pse
> >                                ^
> 
> hm, how did that happen.  I had some issues with cpu_has_pse a number
> of days ago but they later went away.
> 
> In my current tree I have, in arch/x86/include/asm/hugetlb.h:
> 
> #define hugepages_supported() boot_cpu_has(X86_FEATURE_PSE)
> 
> and that came in from linux-next.patch.  I wonder why your tree is
> different.
> 
> <looks>
> 
> OK, http://ozlabs.org/~akpm/mmots/broken-out/linux-next.patch has no
> changes to arch/x86/include/asm/hugetlb.h at all.  Maybe I fat-fingered
> something.  Odd.

So I think the reason is that cpu_has_pse is gone from the x86 devel tree, please 
use this instead:

  boot_cpu_has(X86_FEATURE_PSE)

Thanks,

	Ingo

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

end of thread, other threads:[~2016-04-27  8:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-26 14:14 [-mmots 2016-04-25] hugetlb: error: ‘cpu_has_pse’ undeclared Sergey Senozhatsky
2016-04-26 22:00 ` Andrew Morton
2016-04-27  0:37   ` Sergey Senozhatsky
2016-04-27  8:01   ` Ingo Molnar

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.