All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mingo-tip:master 2294/2300] arch/mips/crypto/chacha-glue.c:45:34: error: implicit declaration of function 'round_down'
Date: Sun, 9 Jan 2022 02:23:24 +0800	[thread overview]
Message-ID: <202201090259.KZeo3bGb-lkp@intel.com> (raw)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head:   4e348e961395297bb17f101cc63bc133d8a348e9
commit: a35948847a1e0bf875f580f821cb871ce16d4c60 [2294/2300] headers/deps: time: Optimize <linux/time64.h> dependencies, remove <linux/time64_api.h> inclusion
config: mips-randconfig-r034-20220108 (https://download.01.org/0day-ci/archive/20220109/202201090259.KZeo3bGb-lkp@intel.com/config)
compiler: mipsel-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=a35948847a1e0bf875f580f821cb871ce16d4c60
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip master
        git checkout a35948847a1e0bf875f580f821cb871ce16d4c60
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/mips/crypto/chacha-glue.c: In function 'chacha_mips_stream_xor':
>> arch/mips/crypto/chacha-glue.c:45:34: error: implicit declaration of function 'round_down' [-Werror=implicit-function-declaration]
      45 |                         nbytes = round_down(nbytes, walk.stride);
         |                                  ^~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/round_down +45 arch/mips/crypto/chacha-glue.c

3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  29  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  30  static int chacha_mips_stream_xor(struct skcipher_request *req,
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  31  				  const struct chacha_ctx *ctx, const u8 *iv)
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  32  {
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  33  	struct skcipher_walk walk;
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  34  	u32 state[16];
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  35  	int err;
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  36  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  37  	err = skcipher_walk_virt(&walk, req, false);
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  38  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  39  	chacha_init_generic(state, ctx->key, iv);
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  40  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  41  	while (walk.nbytes > 0) {
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  42  		unsigned int nbytes = walk.nbytes;
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  43  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  44  		if (nbytes < walk.total)
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08 @45  			nbytes = round_down(nbytes, walk.stride);
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  46  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  47  		chacha_crypt(state, walk.dst.virt.addr, walk.src.virt.addr,
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  48  			     nbytes, ctx->nrounds);
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  49  		err = skcipher_walk_done(&walk, walk.nbytes - nbytes);
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  50  	}
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  51  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  52  	return err;
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  53  }
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  54  

:::::: The code at line 45 was first introduced by commit
:::::: 3a2f58f3ba4f6f44e33d1a48240d5eadb882cb59 crypto: mips/chacha - wire up accelerated 32r2 code from Zinc

:::::: TO: Ard Biesheuvel <ardb@kernel.org>
:::::: CC: Herbert Xu <herbert@gondor.apana.org.au>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [mingo-tip:master 2294/2300] arch/mips/crypto/chacha-glue.c:45:34: error: implicit declaration of function 'round_down'
Date: Sun, 09 Jan 2022 02:23:24 +0800	[thread overview]
Message-ID: <202201090259.KZeo3bGb-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3942 bytes --]

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head:   4e348e961395297bb17f101cc63bc133d8a348e9
commit: a35948847a1e0bf875f580f821cb871ce16d4c60 [2294/2300] headers/deps: time: Optimize <linux/time64.h> dependencies, remove <linux/time64_api.h> inclusion
config: mips-randconfig-r034-20220108 (https://download.01.org/0day-ci/archive/20220109/202201090259.KZeo3bGb-lkp(a)intel.com/config)
compiler: mipsel-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=a35948847a1e0bf875f580f821cb871ce16d4c60
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip master
        git checkout a35948847a1e0bf875f580f821cb871ce16d4c60
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/mips/crypto/chacha-glue.c: In function 'chacha_mips_stream_xor':
>> arch/mips/crypto/chacha-glue.c:45:34: error: implicit declaration of function 'round_down' [-Werror=implicit-function-declaration]
      45 |                         nbytes = round_down(nbytes, walk.stride);
         |                                  ^~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/round_down +45 arch/mips/crypto/chacha-glue.c

3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  29  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  30  static int chacha_mips_stream_xor(struct skcipher_request *req,
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  31  				  const struct chacha_ctx *ctx, const u8 *iv)
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  32  {
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  33  	struct skcipher_walk walk;
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  34  	u32 state[16];
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  35  	int err;
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  36  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  37  	err = skcipher_walk_virt(&walk, req, false);
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  38  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  39  	chacha_init_generic(state, ctx->key, iv);
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  40  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  41  	while (walk.nbytes > 0) {
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  42  		unsigned int nbytes = walk.nbytes;
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  43  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  44  		if (nbytes < walk.total)
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08 @45  			nbytes = round_down(nbytes, walk.stride);
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  46  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  47  		chacha_crypt(state, walk.dst.virt.addr, walk.src.virt.addr,
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  48  			     nbytes, ctx->nrounds);
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  49  		err = skcipher_walk_done(&walk, walk.nbytes - nbytes);
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  50  	}
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  51  
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  52  	return err;
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  53  }
3a2f58f3ba4f6f Ard Biesheuvel 2019-11-08  54  

:::::: The code at line 45 was first introduced by commit
:::::: 3a2f58f3ba4f6f44e33d1a48240d5eadb882cb59 crypto: mips/chacha - wire up accelerated 32r2 code from Zinc

:::::: TO: Ard Biesheuvel <ardb@kernel.org>
:::::: CC: Herbert Xu <herbert@gondor.apana.org.au>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

             reply	other threads:[~2022-01-08 18:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-08 18:23 kernel test robot [this message]
2022-01-08 18:23 ` [mingo-tip:master 2294/2300] arch/mips/crypto/chacha-glue.c:45:34: error: implicit declaration of function 'round_down' kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202201090259.KZeo3bGb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.