tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: b0523c7b1c9d0edcd6c0fe6d2cb558a9ad5c60a8
commit: 955ac624058f91172b3b8820280556e699e1e0ff [3005/12912] ASoC: fsl_easrc: Add EASRC
ASoC CPU DAI drivers
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.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
git checkout 955ac624058f91172b3b8820280556e699e1e0ff
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
sound/soc/fsl/fsl_easrc.c: In function 'fsl_easrc_set_rs_ratio':
sound/soc/fsl/fsl_easrc.c:182:15: warning: variable 'int_bits' set but not used
[-Wunused-but-set-variable]
182 | unsigned int int_bits;
| ^~~~~~~~
sound/soc/fsl/fsl_easrc.c: At top level:
> sound/soc/fsl/fsl_easrc.c:967:5: warning: no previous prototype
for 'fsl_easrc_config_context' [-Wmissing-prototypes]
967 | int
fsl_easrc_config_context(struct fsl_asrc *easrc, unsigned int ctx_id)
| ^~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_easrc.c:1128:5: warning: no previous prototype for
'fsl_easrc_set_ctx_format' [-Wmissing-prototypes]
1128 | int fsl_easrc_set_ctx_format(struct fsl_asrc_pair *ctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_easrc.c:1201:5: warning: no previous prototype for
'fsl_easrc_set_ctx_organziation' [-Wmissing-prototypes]
1201 | int fsl_easrc_set_ctx_organziation(struct fsl_asrc_pair *ctx)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_easrc.c: In function 'fsl_easrc_set_ctx_organziation':
sound/soc/fsl/fsl_easrc.c:1204:17: warning: variable 'dev' set but not used
[-Wunused-but-set-variable]
1204 | struct device *dev;
| ^~~
sound/soc/fsl/fsl_easrc.c: At top level:
sound/soc/fsl/fsl_easrc.c:1245:5: warning: no previous prototype for
'fsl_easrc_request_context' [-Wmissing-prototypes]
1245 | int fsl_easrc_request_context(int channels, struct fsl_asrc_pair *ctx)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_easrc.c:1290:6: warning: no previous prototype for
'fsl_easrc_release_context' [-Wmissing-prototypes]
1290 | void fsl_easrc_release_context(struct fsl_asrc_pair *ctx)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_easrc.c: In function 'fsl_easrc_release_context':
sound/soc/fsl/fsl_easrc.c:1294:17: warning: variable 'dev' set but not used
[-Wunused-but-set-variable]
1294 | struct device *dev;
| ^~~
sound/soc/fsl/fsl_easrc.c: At top level:
sound/soc/fsl/fsl_easrc.c:1317:5: warning: no previous prototype for
'fsl_easrc_start_context' [-Wmissing-prototypes]
1317 | int fsl_easrc_start_context(struct fsl_asrc_pair *ctx)
| ^~~~~~~~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_easrc.c:1335:5: warning: no previous prototype for
'fsl_easrc_stop_context' [-Wmissing-prototypes]
1335 | int fsl_easrc_stop_context(struct fsl_asrc_pair *ctx)
| ^~~~~~~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_easrc.c:1382:18: warning: no previous prototype for
'fsl_easrc_get_dma_channel' [-Wmissing-prototypes]
1382 | struct dma_chan *fsl_easrc_get_dma_channel(struct fsl_asrc_pair *ctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/fsl_easrc_config_context +967 sound/soc/fsl/fsl_easrc.c
961
962 /*
963 * fsl_easrc_config_context
964 *
965 * Configure the register relate with context.
966 */
967 int fsl_easrc_config_context(struct fsl_asrc *easrc, unsigned int
ctx_id)
968 {
969 struct fsl_easrc_ctx_priv *ctx_priv;
970 struct fsl_asrc_pair *ctx;
971 struct device *dev;
972 unsigned long lock_flags;
973 int ret;
974
975 if (!easrc)
976 return -ENODEV;
977
978 dev = &easrc->pdev->dev;
979
980 if (ctx_id >= EASRC_CTX_MAX_NUM) {
981 dev_err(dev, "Invalid context id[%d]\n", ctx_id);
982 return -EINVAL;
983 }
984
985 ctx = easrc->pair[ctx_id];
986
987 ctx_priv = ctx->private;
988
989 fsl_easrc_normalize_rates(ctx);
990
991 ret = fsl_easrc_set_rs_ratio(ctx);
992 if (ret)
993 return ret;
994
995 /* Initialize the context coeficients */
996 ret = fsl_easrc_prefilter_config(easrc, ctx->index);
997 if (ret)
998 return ret;
999
1000 spin_lock_irqsave(&easrc->lock, lock_flags);
1001 ret = fsl_easrc_config_slot(easrc, ctx->index);
1002 spin_unlock_irqrestore(&easrc->lock, lock_flags);
1003 if (ret)
1004 return ret;
1005
1006 /*
1007 * Both prefilter and resampling filters can use following
1008 * initialization modes:
1009 * 2 - zero-fil mode
1010 * 1 - replication mode
1011 * 0 - software control
1012 */
1013 regmap_update_bits(easrc->regmap, REG_EASRC_CCE1(ctx_id),
1014 EASRC_CCE1_RS_INIT_MASK,
1015 EASRC_CCE1_RS_INIT(ctx_priv->rs_init_mode));
1016
1017 regmap_update_bits(easrc->regmap, REG_EASRC_CCE1(ctx_id),
1018 EASRC_CCE1_PF_INIT_MASK,
1019 EASRC_CCE1_PF_INIT(ctx_priv->pf_init_mode));
1020
1021 /*
1022 * Context Input FIFO Watermark
1023 * DMA request is generated when input FIFO < FIFO_WTMK
1024 */
1025 regmap_update_bits(easrc->regmap, REG_EASRC_CC(ctx_id),
1026 EASRC_CC_FIFO_WTMK_MASK,
1027 EASRC_CC_FIFO_WTMK(ctx_priv->in_params.fifo_wtmk));
1028
1029 /*
1030 * Context Output FIFO Watermark
1031 * DMA request is generated when output FIFO > FIFO_WTMK
1032 * So we set fifo_wtmk -1 to register.
1033 */
1034 regmap_update_bits(easrc->regmap, REG_EASRC_COC(ctx_id),
1035 EASRC_COC_FIFO_WTMK_MASK,
1036 EASRC_COC_FIFO_WTMK(ctx_priv->out_params.fifo_wtmk - 1));
1037
1038 /* Number of channels */
1039 regmap_update_bits(easrc->regmap, REG_EASRC_CC(ctx_id),
1040 EASRC_CC_CHEN_MASK,
1041 EASRC_CC_CHEN(ctx->channels - 1));
1042 return 0;
1043 }
1044
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org