Re: [PATCH] async_tx: correct reference to ASYNC_TX_ENABLE_CHANNEL_SWITCH
From: kernel test robot
Date: Wed Oct 06 2021 - 16:51:27 EST
Hi Lukas,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.15-rc3 next-20210922]
[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/0day-ci/linux/commits/Lukas-Bulwahn/async_tx-correct-reference-to-ASYNC_TX_ENABLE_CHANNEL_SWITCH/20211006-173543
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 02d5e016800d082058b3d3b7c3ede136cdc6ddcb
config: arm-randconfig-r022-20211004 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c0039de2953d15815448b4b3c3bafb45607781e0)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/0day-ci/linux/commit/feea9903edb75548c8beb73119676b95ca4f08ef
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Lukas-Bulwahn/async_tx-correct-reference-to-ASYNC_TX_ENABLE_CHANNEL_SWITCH/20211006-173543
git checkout feea9903edb75548c8beb73119676b95ca4f08ef
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
>> crypto/async_tx/async_tx.c:43:1: warning: no previous prototype for function '__async_tx_find_channel' [-Wmissing-prototypes]
__async_tx_find_channel(struct async_submit_ctl *submit,
^
crypto/async_tx/async_tx.c:42:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct dma_chan *
^
static
1 warning generated.
vim +/__async_tx_find_channel +43 crypto/async_tx/async_tx.c
af1f951eb6ef27 Dan Williams 2009-08-29 35
9bc89cd82d6f88 Dan Williams 2007-01-02 36 /**
47437b2c9a6431 Dan Williams 2008-02-02 37 * __async_tx_find_channel - find a channel to carry out the operation or let
9bc89cd82d6f88 Dan Williams 2007-01-02 38 * the transaction execute synchronously
a08abd8ca890a3 Dan Williams 2009-06-03 39 * @submit: transaction dependency and submission modifiers
9bc89cd82d6f88 Dan Williams 2007-01-02 40 * @tx_type: transaction type
9bc89cd82d6f88 Dan Williams 2007-01-02 41 */
9bc89cd82d6f88 Dan Williams 2007-01-02 42 struct dma_chan *
a08abd8ca890a3 Dan Williams 2009-06-03 @43 __async_tx_find_channel(struct async_submit_ctl *submit,
9bc89cd82d6f88 Dan Williams 2007-01-02 44 enum dma_transaction_type tx_type)
9bc89cd82d6f88 Dan Williams 2007-01-02 45 {
a08abd8ca890a3 Dan Williams 2009-06-03 46 struct dma_async_tx_descriptor *depend_tx = submit->depend_tx;
a08abd8ca890a3 Dan Williams 2009-06-03 47
9bc89cd82d6f88 Dan Williams 2007-01-02 48 /* see if we can keep the chain on one channel */
9bc89cd82d6f88 Dan Williams 2007-01-02 49 if (depend_tx &&
9bc89cd82d6f88 Dan Williams 2007-01-02 50 dma_has_cap(tx_type, depend_tx->chan->device->cap_mask))
9bc89cd82d6f88 Dan Williams 2007-01-02 51 return depend_tx->chan;
729b5d1b8ec72c Dan Williams 2009-03-25 52 return async_dma_find_channel(tx_type);
9bc89cd82d6f88 Dan Williams 2007-01-02 53 }
47437b2c9a6431 Dan Williams 2008-02-02 54 EXPORT_SYMBOL_GPL(__async_tx_find_channel);
9bc89cd82d6f88 Dan Williams 2007-01-02 55 #endif
9bc89cd82d6f88 Dan Williams 2007-01-02 56
19242d7233df7d Dan Williams 2008-04-17 57
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip