website: update Free Electrons logo
[buildroot-gz.git] / package / vboot-utils / 0001-Add-missing-definition-of-MTD_CHAR_MAJOR.patch
blob42410c8d13d66ff2b34b99af28eb21feea66063f
1 From 1438211660e700b2c9505863aae1cc957236b7c8 Mon Sep 17 00:00:00 2001
2 From: Alex Suykov <alex.suykov@gmail.com>
3 Date: Thu, 21 Jan 2016 21:59:46 +0100
4 Subject: [PATCH] Add missing definition of MTD_CHAR_MAJOR
6 This definition missing from <linux/major.h> for kernels <= 3.13
8 Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
9 ---
10 cgpt/cgpt_wrapper.c | 4 ++++
11 1 file changed, 4 insertions(+)
13 diff --git a/cgpt/cgpt_wrapper.c b/cgpt/cgpt_wrapper.c
14 index dcfaab9..4d07aad 100644
15 --- a/cgpt/cgpt_wrapper.c
16 +++ b/cgpt/cgpt_wrapper.c
17 @@ -25,6 +25,10 @@
18 #include "cgpt_nor.h"
19 #include "cryptolib.h"
21 +#ifndef MTD_CHAR_MAJOR
22 +#define MTD_CHAR_MAJOR 90
23 +#endif
25 // Check if cmdline |argv| has "-D". "-D" signifies that GPT structs are stored
26 // off device, and hence we should not wrap around cgpt.
27 static bool has_dash_D(int argc, const char *const argv[]) {
28 --
29 2.6.4