Re: [PATCH 06/19] Add ioctl() argument and attribute handling utils

2010-08-21 Thread Stefan Richter
Miloslav Trmac wrote: > - "Stefan Richter" wrote: >> Miloslav Trmač wrote: >>> --- /dev/null >>> +++ b/crypto/userspace/utils.c >> [...] >>> +#ifdef CONFIG_COMPAT >>> +/* max() is too clever for compile-time constants */ >>> +#define CONST_MAX(A, B) ((A) > (B) ? (A) : (B)) >>> + >>> +#define M

Re: [PATCH 06/19] Add ioctl() argument and attribute handling utils

2010-08-20 Thread Miloslav Trmac
- "Stefan Richter" wrote: > Miloslav Trmač wrote: > > --- /dev/null > > +++ b/crypto/userspace/utils.c > [...] > > +#ifdef CONFIG_COMPAT > > +/* max() is too clever for compile-time constants */ > > +#define CONST_MAX(A, B) ((A) > (B) ? (A) : (B)) > > + > > +#define MAX_SESSION_INPUT_DATA_SIZE

Re: [PATCH 06/19] Add ioctl() argument and attribute handling utils

2010-08-20 Thread Stefan Richter
Miloslav Trmač wrote: > --- /dev/null > +++ b/crypto/userspace/utils.c [...] > +#ifdef CONFIG_COMPAT > +/* max() is too clever for compile-time constants */ > +#define CONST_MAX(A, B) ((A) > (B) ? (A) : (B)) > + > +#define MAX_SESSION_INPUT_DATA_SIZE \ > + (CONS