Content-Type: multipart/mixed; boundary="===============9073970500109174525==" MIME-Version: 1.0 From: Matthias Kaehlcke To: kbuild-all@lists.01.org Subject: Re: [PATCH v4 2/3] LoadPin: Enable loading from trusted dm-verity devices Date: Wed, 18 May 2022 07:40:52 -0700 Message-ID: In-Reply-To: <202205181616.3eTP2DaC-lkp@intel.com> List-Id: --===============9073970500109174525== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, May 18, 2022 at 04:58:06PM +0800, kernel test robot wrote: > Hi Matthias, > = > Thank you for the patch! Perhaps something to improve: > = > [auto build test WARNING on device-mapper-dm/for-next] > [also build test WARNING on song-md/md-next kees/for-next/pstore linus/ma= ster v5.18-rc7 next-20220517] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > = > url: https://github.com/intel-lab-lkp/linux/commits/Matthias-Kaehlcke/= LoadPin-Enable-loading-from-trusted-dm-verity-devices/20220518-073635 > base: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/lin= ux-dm.git for-next > config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/202205= 18/202205181616.3eTP2DaC-lkp(a)intel.com/config) > compiler: m68k-linux-gcc (GCC) 11.3.0 > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://github.com/intel-lab-lkp/linux/commit/755e5d82e4d054b2b= 58a54c94681080cc8cb4582 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Matthias-Kaehlcke/LoadPin-Enable= -loading-from-trusted-dm-verity-devices/20220518-073635 > git checkout 755e5d82e4d054b2b58a54c94681080cc8cb4582 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.3.0 make.cro= ss W=3D1 O=3Dbuild_dir ARCH=3Dm68k SHELL=3D/bin/bash security/loadpin/ > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > All warnings (new ones prefixed by >>): > = > In file included from security/loadpin/loadpin.c:21: > include/linux/dm-verity-loadpin.h:22:1: error: expected identifier or = '(' before '{' token > 22 | { > | ^ > >> include/linux/dm-verity-loadpin.h:21:20: warning: 'dm_verity_loadpin_i= s_sb_trusted' used but never defined > 21 | static inline bool dm_verity_loadpin_is_sb_trusted(struct supe= r_block *sb); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > = > = > vim +/dm_verity_loadpin_is_sb_trusted +21 include/linux/dm-verity-loadpin= .h > = > afd03270f57b8c Matthias Kaehlcke 2022-05-17 17 = > afd03270f57b8c Matthias Kaehlcke 2022-05-17 18 #if IS_ENABLED(CONFIG_SE= CURITY_LOADPIN) && IS_BUILTIN(CONFIG_DM_VERITY) > afd03270f57b8c Matthias Kaehlcke 2022-05-17 19 bool dm_verity_loadpin_i= s_sb_trusted(struct super_block *sb); > afd03270f57b8c Matthias Kaehlcke 2022-05-17 20 #else > afd03270f57b8c Matthias Kaehlcke 2022-05-17 @21 static inline bool dm_ve= rity_loadpin_is_sb_trusted(struct super_block *sb); > afd03270f57b8c Matthias Kaehlcke 2022-05-17 @22 { > afd03270f57b8c Matthias Kaehlcke 2022-05-17 23 return false; > afd03270f57b8c Matthias Kaehlcke 2022-05-17 24 } > afd03270f57b8c Matthias Kaehlcke 2022-05-17 25 #endif > afd03270f57b8c Matthias Kaehlcke 2022-05-17 26 = Oops, will fix --===============9073970500109174525==--