mtd: fix compile warnings

This callback should have one parameter less, this parameter is not used
so this was not a so big problem.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Hauke Mehrtens 2018-03-18 00:53:32 +01:00
parent 5d3fbd5996
commit e273860351
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
--- a/include/common.h --- a/include/common.h
+++ b/include/common.h +++ b/include/common.h
@@ -137,10 +137,12 @@ static inline bool prompt(const char *ms @@ -152,10 +152,12 @@ static inline bool prompt(const char *ms
} }
if (strcmp("\n", line) != 0) { if (strcmp("\n", line) != 0) {

View File

@ -2,7 +2,7 @@
+++ b/Makefile +++ b/Makefile
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
VERSION = 1.5.1 VERSION = 1.5.2
-CPPFLAGS += -D_GNU_SOURCE -I./include -I$(BUILDDIR)/include -I./ubi-utils/include $(ZLIBCPPFLAGS) $(LZOCPPFLAGS) $(UUIDCPPFLAGS) -CPPFLAGS += -D_GNU_SOURCE -I./include -I$(BUILDDIR)/include -I./ubi-utils/include $(ZLIBCPPFLAGS) $(LZOCPPFLAGS) $(UUIDCPPFLAGS)
+CPPFLAGS += -D_GNU_SOURCE -I./include -I$(BUILDDIR)/include -I./ubi-utils/include $(ZLIBCPPFLAGS) $(LZOCPPFLAGS) $(UUIDCPPFLAGS) -I./include/linux/lzma +CPPFLAGS += -D_GNU_SOURCE -I./include -I$(BUILDDIR)/include -I./ubi-utils/include $(ZLIBCPPFLAGS) $(LZOCPPFLAGS) $(UUIDCPPFLAGS) -I./include/linux/lzma
@ -122,7 +122,7 @@
+} +}
+ +
+STATIC int jffs2_lzma_compress(unsigned char *data_in, unsigned char *cpage_out, +STATIC int jffs2_lzma_compress(unsigned char *data_in, unsigned char *cpage_out,
+ uint32_t *sourcelen, uint32_t *dstlen, void *model) + uint32_t *sourcelen, uint32_t *dstlen)
+{ +{
+ SizeT compress_size = (SizeT)(*dstlen); + SizeT compress_size = (SizeT)(*dstlen);
+ int ret; + int ret;
@ -147,7 +147,7 @@
+} +}
+ +
+STATIC int jffs2_lzma_decompress(unsigned char *data_in, unsigned char *cpage_out, +STATIC int jffs2_lzma_decompress(unsigned char *data_in, unsigned char *cpage_out,
+ uint32_t srclen, uint32_t destlen, void *model) + uint32_t srclen, uint32_t destlen)
+{ +{
+ int ret; + int ret;
+ SizeT dl = (SizeT)destlen; + SizeT dl = (SizeT)destlen;