From: kernel test robot <lkp@intel.com>
To: derek.fang@realtek.com, broonie@kernel.org, lgirdwood@gmail.com
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
oder_chiou@realtek.com, jack.yu@realtek.com,
alsa-devel@alsa-project.org, lars@metafoo.de,
albertchen@realtek.com, Derek Fang <derek.fang@realtek.com>,
shumingf@realtek.com, flove@realtek.com
Subject: Re: [PATCH 1/2] ASoC: rt5682s: Add driver for ALC5682I-VS codec
Date: Fri, 27 Aug 2021 00:57:04 +0800 [thread overview]
Message-ID: <202108270031.hXxZ79II-lkp@intel.com> (raw)
In-Reply-To: <20210826080938.14872-1-derek.fang@realtek.com>
[-- Attachment #1: Type: text/plain, Size: 5677 bytes --]
Hi,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on asoc/for-next]
[also build test WARNING on v5.14-rc7 next-20210826]
[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/derek-fang-realtek-com/ASoC-rt5682s-Add-driver-for-ALC5682I-VS-codec/20210826-161340
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: hexagon-randconfig-r013-20210826 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83)
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/0day-ci/linux/commit/3d7b4fdb7110791febbe2878e436192952b2cd5b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review derek-fang-realtek-com/ASoC-rt5682s-Add-driver-for-ALC5682I-VS-codec/20210826-161340
git checkout 3d7b4fdb7110791febbe2878e436192952b2cd5b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> sound/soc/codecs/rt5682s.c:64:6: warning: no previous prototype for function 'rt5682s_apply_patch_list' [-Wmissing-prototypes]
void rt5682s_apply_patch_list(struct rt5682s_priv *rt5682s,
^
sound/soc/codecs/rt5682s.c:64:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void rt5682s_apply_patch_list(struct rt5682s_priv *rt5682s,
^
static
>> sound/soc/codecs/rt5682s.c:441:6: warning: no previous prototype for function 'rt5682s_volatile_register' [-Wmissing-prototypes]
bool rt5682s_volatile_register(struct device *dev, unsigned int reg)
^
sound/soc/codecs/rt5682s.c:441:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool rt5682s_volatile_register(struct device *dev, unsigned int reg)
^
static
>> sound/soc/codecs/rt5682s.c:483:6: warning: no previous prototype for function 'rt5682s_readable_register' [-Wmissing-prototypes]
bool rt5682s_readable_register(struct device *dev, unsigned int reg)
^
sound/soc/codecs/rt5682s.c:483:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool rt5682s_readable_register(struct device *dev, unsigned int reg)
^
static
>> sound/soc/codecs/rt5682s.c:623:6: warning: no previous prototype for function 'rt5682s_reset' [-Wmissing-prototypes]
void rt5682s_reset(struct rt5682s_priv *rt5682s)
^
sound/soc/codecs/rt5682s.c:623:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void rt5682s_reset(struct rt5682s_priv *rt5682s)
^
static
>> sound/soc/codecs/rt5682s.c:735:5: warning: no previous prototype for function 'rt5682s_headset_detect' [-Wmissing-prototypes]
int rt5682s_headset_detect(struct snd_soc_component *component, int jack_insert)
^
sound/soc/codecs/rt5682s.c:735:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int rt5682s_headset_detect(struct snd_soc_component *component, int jack_insert)
^
static
>> sound/soc/codecs/rt5682s.c:822:6: warning: no previous prototype for function 'rt5682s_jack_detect_handler' [-Wmissing-prototypes]
void rt5682s_jack_detect_handler(struct work_struct *work)
^
sound/soc/codecs/rt5682s.c:822:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void rt5682s_jack_detect_handler(struct work_struct *work)
^
static
>> sound/soc/codecs/rt5682s.c:2907:5: warning: no previous prototype for function 'rt5682s_parse_dt' [-Wmissing-prototypes]
int rt5682s_parse_dt(struct rt5682s_priv *rt5682s, struct device *dev)
^
sound/soc/codecs/rt5682s.c:2907:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int rt5682s_parse_dt(struct rt5682s_priv *rt5682s, struct device *dev)
^
static
>> sound/soc/codecs/rt5682s.c:2936:6: warning: no previous prototype for function 'rt5682s_calibrate' [-Wmissing-prototypes]
void rt5682s_calibrate(struct rt5682s_priv *rt5682s)
^
sound/soc/codecs/rt5682s.c:2936:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void rt5682s_calibrate(struct rt5682s_priv *rt5682s)
^
static
>> sound/soc/codecs/rt5682s.c:1014:29: warning: unused variable 'rt5682s_sar_mode_enum' [-Wunused-const-variable]
static SOC_ENUM_SINGLE_DECL(rt5682s_sar_mode_enum, 0, 0,
^
9 warnings generated.
vim +/rt5682s_apply_patch_list +64 sound/soc/codecs/rt5682s.c
63
> 64 void rt5682s_apply_patch_list(struct rt5682s_priv *rt5682s,
65 struct device *dev)
66 {
67 int ret;
68
69 ret = regmap_multi_reg_write(rt5682s->regmap, patch_list, ARRAY_SIZE(patch_list));
70 if (ret)
71 dev_warn(dev, "Failed to apply regmap patch: %d\n", ret);
72 }
73
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35143 bytes --]
parent reply other threads:[~2021-08-26 16:57 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20210826080938.14872-1-derek.fang@realtek.com>]
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=202108270031.hXxZ79II-lkp@intel.com \
--to=lkp@intel.com \
--cc=albertchen@realtek.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=derek.fang@realtek.com \
--cc=flove@realtek.com \
--cc=jack.yu@realtek.com \
--cc=kbuild-all@lists.01.org \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=llvm@lists.linux.dev \
--cc=oder_chiou@realtek.com \
--cc=shumingf@realtek.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox