Content-Type: multipart/mixed; boundary="===============7456295894768041626==" MIME-Version: 1.0 From: Chao Yu To: kbuild-all@lists.01.org Subject: Re: [PATCH v2] f2fs: compress: support zstd compress algorithm Date: Wed, 04 Mar 2020 11:08:03 +0800 Message-ID: In-Reply-To: <202003040907.IRHXX5zM%lkp@intel.com> List-Id: --===============7456295894768041626== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, Thanks for the report. I guess we need to apply below patches first: [PATCH 1/2] f2fs: compress: fix to call missing destroy_compress_ctx() [PATCH 2/2] f2fs: compress: add .{init,destroy}_decompress_ctx callback On 2020/3/4 9:00, kbuild test robot wrote: > Hi Chao, > = > I love your patch! Yet something to improve: > = > [auto build test ERROR on f2fs/dev-test] > [also build test ERROR on v5.6-rc4 next-20200303] > [if your patch is applied to the wrong git tree, please drop us a note to= help > improve the system. BTW, we also suggest to use '--base' option to specif= y the > base tree in git format-patch, please see https://stackoverflow.com/a/374= 06982] > = > url: https://github.com/0day-ci/linux/commits/Chao-Yu/f2fs-compress-su= pport-zstd-compress-algorithm/20200304-020312 > base: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git = dev-test > config: x86_64-allyesconfig (attached as .config) > compiler: clang version 11.0.0 (git://gitmirror/llvm_project 211fb91f1067= ecdf7c0b8a019bcf76554d813129) > reproduce: > # FIXME the reproduce steps for clang is not ready yet > = > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot > = > All errors (new ones prefixed by >>): > = >>> fs/f2fs/compress.c:450:3: error: field designator 'init_decompress_ctx'= does not refer to any field in type 'const struct f2fs_compress_ops'; did = you mean 'init_compress_ctx'? > .init_decompress_ctx =3D zstd_init_decompress_ctx, > ^~~~~~~~~~~~~~~~~~~ > init_compress_ctx > fs/f2fs/compress.c:21:8: note: 'init_compress_ctx' declared here > int (*init_compress_ctx)(struct compress_ctx *cc); > ^ >>> fs/f2fs/compress.c:450:25: error: incompatible function pointer types i= nitializing 'int (*)(struct compress_ctx *)' with an expression of type 'in= t (struct decompress_io_ctx *)' [-Werror,-Wincompatible-function-pointer-ty= pes] > .init_decompress_ctx =3D zstd_init_decompress_ctx, > ^~~~~~~~~~~~~~~~~~~~~~~~ >>> fs/f2fs/compress.c:451:3: error: field designator 'destroy_decompress_c= tx' does not refer to any field in type 'const struct f2fs_compress_ops'; d= id you mean 'destroy_compress_ctx'? > .destroy_decompress_ctx =3D zstd_destroy_decompress_ctx, > ^~~~~~~~~~~~~~~~~~~~~~ > destroy_compress_ctx > fs/f2fs/compress.c:22:9: note: 'destroy_compress_ctx' declared here > void (*destroy_compress_ctx)(struct compress_ctx *cc); > ^ >>> fs/f2fs/compress.c:451:28: error: incompatible function pointer types i= nitializing 'void (*)(struct compress_ctx *)' with an expression of type 'v= oid (struct decompress_io_ctx *)' [-Werror,-Wincompatible-function-pointer-= types] > .destroy_decompress_ctx =3D zstd_destroy_decompress_ctx, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > 4 errors generated. > = > vim +450 fs/f2fs/compress.c > = > 445 = > 446 static const struct f2fs_compress_ops f2fs_zstd_ops =3D { > 447 .init_compress_ctx =3D zstd_init_compress_ctx, > 448 .destroy_compress_ctx =3D zstd_destroy_compress_ctx, > 449 .compress_pages =3D zstd_compress_pages, > > 450 .init_decompress_ctx =3D zstd_init_decompress_ctx, > > 451 .destroy_decompress_ctx =3D zstd_destroy_decompress_ctx, > 452 .decompress_pages =3D zstd_decompress_pages, > 453 }; > 454 #endif > 455 = > = > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org >=20 --===============7456295894768041626==--