|
@@ -41,6 +41,16 @@ extern const char linux_proc_banner[];
|
|
|
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
|
|
|
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
|
|
|
|
|
|
+/**
|
|
|
+ * upper_32_bits - return bits 32-63 of a number
|
|
|
+ * @n: the number we're accessing
|
|
|
+ *
|
|
|
+ * A basic shift-right of a 64- or 32-bit quantity. Use this to suppress
|
|
|
+ * the "right shift count >= width of type" warning when that quantity is
|
|
|
+ * 32-bits.
|
|
|
+ */
|
|
|
+#define upper_32_bits(n) ((u32)(((n) >> 16) >> 16))
|
|
|
+
|
|
|
#define KERN_EMERG "<0>" /* system is unusable */
|
|
|
#define KERN_ALERT "<1>" /* action must be taken immediately */
|
|
|
#define KERN_CRIT "<2>" /* critical conditions */
|