All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Neil Armstrong <neil.armstrong@linaro.org>
Subject: [krzk-github:wip/sm8350-audio 16/36] drivers/usb/typec/mux/nb7vpq904m.c:98:24: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations
Date: Sat, 17 Jun 2023 23:32:39 +0800	[thread overview]
Message-ID: <202306172349.Xg2Aw18G-lkp@intel.com> (raw)

tree:   https://github.com/krzk/linux wip/sm8350-audio
head:   d24f8447c187285597f1322d9d57ebd6ee5a55fe
commit: 236a2a4503e2cd28b116847e9a7e6baadaa09204 [16/36] usb: typec: add support for the nb7vpq904m Type-C Linear Redriver
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20230617/202306172349.Xg2Aw18G-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20230617/202306172349.Xg2Aw18G-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306172349.Xg2Aw18G-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/usb/typec/mux/nb7vpq904m.c:98:24: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
                              EQ_SETTING_MASK, FIELD_PREP(EQ_SETTING_MASK, eq));
                                               ^
   drivers/usb/typec/mux/nb7vpq904m.c:119:9: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
                                FIELD_PREP(GEN_DEV_SET_OP_MODE_MASK,
                                ^
   drivers/usb/typec/mux/nb7vpq904m.c:199:9: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
                                FIELD_PREP(GEN_DEV_SET_OP_MODE_MASK,
                                ^
   3 errors generated.


vim +/FIELD_PREP +98 drivers/usb/typec/mux/nb7vpq904m.c

    80	
    81	static void nb7vpq904m_set_channel(struct nb7vpq904m *nb7, unsigned int channel, bool dp)
    82	{
    83		u8 eq, out_comp, flat_gain, loss_match;
    84	
    85		if (dp) {
    86			eq = NB7_IS_CHAN_AD(channel) ? 0x6 : 0x4;
    87			out_comp = 0x3;
    88			flat_gain = NB7_IS_CHAN_AD(channel) ? 0x2 : 0x1;
    89			loss_match = 0x3;
    90		} else {
    91			eq = 0x4;
    92			out_comp = 0x3;
    93			flat_gain = NB7_IS_CHAN_AD(channel) ? 0x3 : 0x1;
    94			loss_match = NB7_IS_CHAN_AD(channel) ? 0x1 : 0x3;
    95		}
    96	
    97		regmap_update_bits(nb7->regmap, EQ_SETTING_REG(channel),
  > 98				   EQ_SETTING_MASK, FIELD_PREP(EQ_SETTING_MASK, eq));
    99		regmap_update_bits(nb7->regmap, OUTPUT_COMPRESSION_AND_POL_REG(channel),
   100				   OUTPUT_COMPRESSION_MASK, FIELD_PREP(OUTPUT_COMPRESSION_MASK, out_comp));
   101		regmap_update_bits(nb7->regmap, FLAT_GAIN_REG(channel),
   102				   FLAT_GAIN_MASK, FIELD_PREP(FLAT_GAIN_MASK, flat_gain));
   103		regmap_update_bits(nb7->regmap, LOSS_MATCH_REG(channel),
   104				   LOSS_MATCH_MASK, FIELD_PREP(LOSS_MATCH_MASK, loss_match));
   105	}
   106	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2023-06-17 15:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202306172349.Xg2Aw18G-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=krzk@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=neil.armstrong@linaro.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.