Re: [16/many] acrypto: crypto_user.h

From: Randy.Dunlap
Date: Tue Mar 15 2005 - 12:37:56 EST


Evgeniy Polyakov wrote:
--- /tmp/empty/crypto_user.h 1970-01-01 03:00:00.000000000 +0300
+++ ./acrypto/crypto_user.h 2005-03-07 20:35:36.000000000 +0300
@@ -0,0 +1,52 @@
+/*
+ * crypto_user.h
+ *
+ * Copyright (c) 2004 Evgeniy Polyakov <johnpol@xxxxxxxxxxx>
+ * + */
+
+#ifndef __CRYPTO_USER_H
+#define __CRYPTO_USER_H
+
+#define MAX_DATA_SIZE 3
+#define ALIGN_DATA_SIZE(size) ((size + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1))

ISTM that we need a generic round_up() function or macro in kernel.h.

a.out.h, reiserfs_fs.h, and ufs_fs.h all have their own round-up
macros.

--
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/