Re: util-linux patch vs. PAGE_SIZE on powerpc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Max Vozeler wrote:
> the loop-AES patch for util-linux uses the PAGE_SIZE definition
> which is normally available through asm/page.h. Unfortunately
> this is no longer the case for powerpc. There PAGE_SIZE is only
> defined inside #ifdef __KERNEL__ and so causes builds to fail.
> 
> >From what I picked up, the glibc function getpagesize() can be
> used instead. The manpage is a bit discouraging and notes that
> availability varies depending on the architecture, but since
> getpagesize() is already used in other parts of upstream mount/
> I would guess that it is not actually so bad in practice. :-)
> 
> I'm attaching the patch that I'm including in Debian
> loop-aes-utils to fix the build on powerpc. Comments welcome -
> Does that change look okay to you, or is there a better way?

Thanks, Max.

I have queued your patch for inclusion to next version of loop-AES.

-- 
Jari Ruusu  1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9  DB 1D EB E3 24 0E A9 DD

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux