kernel: Add missing includes mtdsplit_*.c
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 28 Jun 2019 19:52:41 +0000 (21:52 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 7 Jul 2019 15:37:26 +0000 (17:37 +0200)
This fixes the following compile problem with kernel 4.9 on lantiq:
drivers/mtd/mtdsplit/mtdsplit_uimage.c:244:34: error: array type has incomplete element type 'struct of_device_id'
 static const struct of_device_id mtdsplit_uimage_of_match_table[] = {
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/mtd/mtdsplit/mtdsplit_uimage.c:245:4: error: field name not in record or union initializer
  { .compatible = "denx,uimage" },

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_eva.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_jimage.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_lzma.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_minor.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_seama.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_tplink.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_trx.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_wrgg.c

index a30297a964cdb8855a79e925a045d3b7d870564f..55004a6d36d7c37c9a9de03dbd208a11d0ff8b68 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <linux/byteorder/generic.h>
+#include <linux/of.h>
 
 #include "mtdsplit.h"
 
index 2b87fe4f8bbd42d9ae1474712bfa821f47919d87..1770dd47ce15f30f8ec23092d5334380ec362f6e 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <linux/byteorder/generic.h>
+#include <linux/of.h>
 
 #include "mtdsplit.h"
 
index 7bae0847dc2597725382d4bede1abe0f9f3fae05..c58f7ae4bf066bd08f7c1e972875e7ac6c63e7e4 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/slab.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
+#include <linux/of.h>
 
 #include <asm/unaligned.h>
 
index 650ac6c9b4d37e26137b98b0df18044b2f016a89..af6822e11ab344708051fcbdf59b215441c62287 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <linux/string.h>
+#include <linux/of.h>
 
 #include "mtdsplit.h"
 
index 815c28b96579926e81d80a2b86635d77b6e16fc5..5d49171b1f7476bf493f2d55e337d1cda13436d3 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <linux/byteorder/generic.h>
+#include <linux/of.h>
 
 #include "mtdsplit.h"
 
index a6ae1440db310f9b65e6d56ed0e5600a83ee8da2..8909c107a09489b4195901da7fa54ed27a575924 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <linux/byteorder/generic.h>
+#include <linux/of.h>
 
 #include "mtdsplit.h"
 
index 4f6c4672efce2af0c015ca14d8115da8c253089d..b853ec9e5283836af9981e90dbfbbdb17de869d7 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <linux/byteorder/generic.h>
+#include <linux/of.h>
 
 #include "mtdsplit.h"
 
index bc2705ffad59f7e845edbb3990ec9b07ba239206..aba1c83ad65cdf6a56c1683366454367c16f3fa0 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/mtd/partitions.h>
 #include <linux/version.h>
 #include <linux/byteorder/generic.h>
+#include <linux/of.h>
 
 #include "mtdsplit.h"
 
index 6c137c52ec0e2164d2c2551b11d1212a8588ee65..dfd6058ae7e48ae6ec10f4dd0761e96c3273d555 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <linux/byteorder/generic.h>
+#include <linux/of.h>
 
 #include "mtdsplit.h"