Skip to contentSkip to conversation

linux-next: build failure after merge of the pstore tree

PATCH In review Stephen Rothwell 3 participants 4 messages Aug 3, 2018 – Aug 4, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Kees,

After merging the pstore tree, today's linux-next build (x86_64 allmodconfig) failed like this:

fs/pstore/platform.o: In function `zbufsize_zstd':
platform.c:(.text+0x172): undefined reference to `ZSTD_compressBound'

Caused by commit

48ed452ca6ad ("pstore: add zstd compression support")

I have used the pstore tree from next-20180802 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 11 lines · Stephen Rothwell

Hi Kees,

After merging the pstore tree, today's linux-next build (x86_64 allmodconfig) failed like this:

fs/pstore/platform.o: In function `zbufsize_zstd':
platform.c:(.text+0x172): undefined reference to `ZSTD_compressBound'

Caused by commit

48ed452ca6ad ("pstore: add zstd compression support")

Yikes. I have no idea how this slipped through. allmodconfig builds are my standard sanity-check but I clearly made some kind of error in my scripting.

I'll get it fixed. Thanks!

-Kees

Signature · 2 lines
Kees Cook
Pixel Security
#2 lore raw

PATCH 1/1 pstore: set PSTORE_ZSTD_COMPRESS to bool

Fix build error:

fs/pstore/platform.o: In function `zbufsize_zstd':

Quoted 1 line
Quoted 1 line

platform.c:(.text+0x172): undefined reference to `ZSTD_compressBound'

---
 fs/pstore/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/pstore/Kconfig +1 -1
index 63cf4813559a..503086f7f7c1 100644
@@ -51,7 +51,7 @@ config PSTORE_842_COMPRESS
 	  This option enables 842 compression algorithm support.
 
 config PSTORE_ZSTD_COMPRESS
-	tristate "zstd compression"
+	bool "zstd compression"
 	depends on PSTORE
 	select CRYPTO_ZSTD
 	help
Signature · 1 line
2.17.1
#3 lore raw

Re: [PATCH] pstore: set PSTORE_ZSTD_COMPRESS to bool

Quoted 6 lines · Geliang Tang

Fix build error:

fs/pstore/platform.o: In function `zbufsize_zstd':

Quoted 1 line
Quoted 1 line

platform.c:(.text+0x172): undefined reference to `ZSTD_compressBound'

Thanks! I'll squash this into the original commit.

-Kees

Quoted 20 lines
---
 fs/pstore/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/pstore/Kconfig +1 -2
index 63cf4813559a..503086f7f7c1 100644
@@ -51,7 +51,7 @@ config PSTORE_842_COMPRESS
          This option enables 842 compression algorithm support.
 
 config PSTORE_ZSTD_COMPRESS
-       tristate "zstd compression"
+       bool "zstd compression"
        depends on PSTORE
        select CRYPTO_ZSTD
        help
--

2.17.1

Signature · 2 lines
Kees Cook
Pixel Security