Blame view

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