All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2023-06-17 15:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-06-17 15:32 UTC (permalink / raw)
  To: Dmitry Baryshkov; +Cc: llvm, oe-kbuild-all, Krzysztof Kozlowski, Neil Armstrong

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-17 15:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-17 15:32 [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 kernel test robot

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.