All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Nava kishore Manne <nava.manne@xilinx.com>
Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org,
	Michal Simek <monstr@monstr.eu>,
	Kalyani Akula <kalyani.akula@xilinx.com>
Subject: [xilinx-xlnx:xlnx_rebase_v5.15 441/907] drivers/crypto/xilinx/zynqmp-sha.c:120:9: error: implicit declaration of function 'caches_clean_inval_user_pou'
Date: Thu, 10 Feb 2022 15:29:27 +0800	[thread overview]
Message-ID: <202202101547.aXR0aUzu-lkp@intel.com> (raw)

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head:   423a108a01e05e84b59a4c4885c16bf3cd8c90c7
commit: e2696a07cb200c0ca6be673ba2bc9f3e01384dc6 [441/907] crypto: zynqmp-sha: Adopted SHA3 support for ZynqMP Soc
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220210/202202101547.aXR0aUzu-lkp@intel.com/config)
compiler: arceb-elf-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://github.com/Xilinx/linux-xlnx/commit/e2696a07cb200c0ca6be673ba2bc9f3e01384dc6
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15
        git checkout e2696a07cb200c0ca6be673ba2bc9f3e01384dc6
        # 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=arc SHELL=/bin/bash

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

Note: the xilinx-xlnx/xlnx_rebase_v5.15 HEAD 423a108a01e05e84b59a4c4885c16bf3cd8c90c7 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   drivers/crypto/xilinx/zynqmp-sha.c: In function 'zynqmp_sha_update':
>> drivers/crypto/xilinx/zynqmp-sha.c:120:9: error: implicit declaration of function 'caches_clean_inval_user_pou' [-Werror=implicit-function-declaration]
     120 |         caches_clean_inval_user_pou((unsigned long)kbuf,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/crypto/xilinx/zynqmp-sha.c:23:
   At top level:
   include/linux/firmware/xlnx-zynqmp.h:1227:12: warning: 'zynqmp_pm_fpga_get_feature_list' defined but not used [-Wunused-function]
    1227 | static int zynqmp_pm_fpga_get_feature_list(u32 *value)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/firmware/xlnx-zynqmp.h:1222:12: warning: 'zynqmp_pm_fpga_get_version' defined but not used [-Wunused-function]
    1222 | static int zynqmp_pm_fpga_get_version(u32 *value)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/firmware/xlnx-zynqmp.h:1173:12: warning: 'zynqmp_pm_sec_mask_write_reg' defined but not used [-Wunused-function]
    1173 | static int zynqmp_pm_sec_mask_write_reg(const u32 node_id, const u32 offset,
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/firmware/xlnx-zynqmp.h:1168:12: warning: 'zynqmp_pm_sec_read_reg' defined but not used [-Wunused-function]
    1168 | static int zynqmp_pm_sec_read_reg(u32 node_id, u32 offset, u32 *ret_value)
         |            ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/caches_clean_inval_user_pou +120 drivers/crypto/xilinx/zynqmp-sha.c

   102	
   103	static int zynqmp_sha_update(struct ahash_request *req)
   104	{
   105		struct zynqmp_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm);
   106		struct zynqmp_sha_dev *dd = tctx->dd;
   107		char *kbuf;
   108		size_t dma_size = req->nbytes;
   109		dma_addr_t dma_addr;
   110		int ret;
   111	
   112		if (!req->nbytes)
   113			return 0;
   114	
   115		kbuf = dma_alloc_coherent(dd->dev, dma_size, &dma_addr, GFP_KERNEL);
   116		if (!kbuf)
   117			return -ENOMEM;
   118	
   119		scatterwalk_map_and_copy(kbuf, req->src, 0, req->nbytes, 0);
 > 120		caches_clean_inval_user_pou((unsigned long)kbuf,
   121					    (unsigned long)kbuf + dma_size);
   122		ret = zynqmp_pm_sha_hash(dma_addr, req->nbytes, ZYNQMP_SHA3_UPDATE);
   123		if (ret) {
   124			mutex_unlock(&zynqmp_sha.hw_engine_mutex);
   125			goto end;
   126		}
   127	
   128		dma_free_coherent(dd->dev, dma_size, kbuf, dma_addr);
   129	
   130	end:
   131		return ret;
   132	}
   133	

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [xilinx-xlnx:xlnx_rebase_v5.15 441/907] drivers/crypto/xilinx/zynqmp-sha.c:120:9: error: implicit declaration of function 'caches_clean_inval_user_pou'
Date: Thu, 10 Feb 2022 15:29:27 +0800	[thread overview]
Message-ID: <202202101547.aXR0aUzu-lkp@intel.com> (raw)

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

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head:   423a108a01e05e84b59a4c4885c16bf3cd8c90c7
commit: e2696a07cb200c0ca6be673ba2bc9f3e01384dc6 [441/907] crypto: zynqmp-sha: Adopted SHA3 support for ZynqMP Soc
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220210/202202101547.aXR0aUzu-lkp(a)intel.com/config)
compiler: arceb-elf-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://github.com/Xilinx/linux-xlnx/commit/e2696a07cb200c0ca6be673ba2bc9f3e01384dc6
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15
        git checkout e2696a07cb200c0ca6be673ba2bc9f3e01384dc6
        # 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=arc SHELL=/bin/bash

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

Note: the xilinx-xlnx/xlnx_rebase_v5.15 HEAD 423a108a01e05e84b59a4c4885c16bf3cd8c90c7 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   drivers/crypto/xilinx/zynqmp-sha.c: In function 'zynqmp_sha_update':
>> drivers/crypto/xilinx/zynqmp-sha.c:120:9: error: implicit declaration of function 'caches_clean_inval_user_pou' [-Werror=implicit-function-declaration]
     120 |         caches_clean_inval_user_pou((unsigned long)kbuf,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/crypto/xilinx/zynqmp-sha.c:23:
   At top level:
   include/linux/firmware/xlnx-zynqmp.h:1227:12: warning: 'zynqmp_pm_fpga_get_feature_list' defined but not used [-Wunused-function]
    1227 | static int zynqmp_pm_fpga_get_feature_list(u32 *value)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/firmware/xlnx-zynqmp.h:1222:12: warning: 'zynqmp_pm_fpga_get_version' defined but not used [-Wunused-function]
    1222 | static int zynqmp_pm_fpga_get_version(u32 *value)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/firmware/xlnx-zynqmp.h:1173:12: warning: 'zynqmp_pm_sec_mask_write_reg' defined but not used [-Wunused-function]
    1173 | static int zynqmp_pm_sec_mask_write_reg(const u32 node_id, const u32 offset,
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/firmware/xlnx-zynqmp.h:1168:12: warning: 'zynqmp_pm_sec_read_reg' defined but not used [-Wunused-function]
    1168 | static int zynqmp_pm_sec_read_reg(u32 node_id, u32 offset, u32 *ret_value)
         |            ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/caches_clean_inval_user_pou +120 drivers/crypto/xilinx/zynqmp-sha.c

   102	
   103	static int zynqmp_sha_update(struct ahash_request *req)
   104	{
   105		struct zynqmp_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm);
   106		struct zynqmp_sha_dev *dd = tctx->dd;
   107		char *kbuf;
   108		size_t dma_size = req->nbytes;
   109		dma_addr_t dma_addr;
   110		int ret;
   111	
   112		if (!req->nbytes)
   113			return 0;
   114	
   115		kbuf = dma_alloc_coherent(dd->dev, dma_size, &dma_addr, GFP_KERNEL);
   116		if (!kbuf)
   117			return -ENOMEM;
   118	
   119		scatterwalk_map_and_copy(kbuf, req->src, 0, req->nbytes, 0);
 > 120		caches_clean_inval_user_pou((unsigned long)kbuf,
   121					    (unsigned long)kbuf + dma_size);
   122		ret = zynqmp_pm_sha_hash(dma_addr, req->nbytes, ZYNQMP_SHA3_UPDATE);
   123		if (ret) {
   124			mutex_unlock(&zynqmp_sha.hw_engine_mutex);
   125			goto end;
   126		}
   127	
   128		dma_free_coherent(dd->dev, dma_size, kbuf, dma_addr);
   129	
   130	end:
   131		return ret;
   132	}
   133	

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

             reply	other threads:[~2022-02-10  7:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-10  7:29 kernel test robot [this message]
2022-02-10  7:29 ` [xilinx-xlnx:xlnx_rebase_v5.15 441/907] drivers/crypto/xilinx/zynqmp-sha.c:120:9: error: implicit declaration of function 'caches_clean_inval_user_pou' 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=202202101547.aXR0aUzu-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kalyani.akula@xilinx.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=monstr@monstr.eu \
    --cc=nava.manne@xilinx.com \
    /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.