From: kernel test robot <lkp@intel.com>
To: Joel Stanley <joel@jms.id.au>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [shenki:spb1-hacking 6952/9113] drivers/hwmon/pmbus/mp2975.c:878:7: error: use of undeclared identifier 'CONFIG_SENSORS_MP2975_REGULATOR'
Date: Tue, 29 Aug 2023 11:04:36 +0800 [thread overview]
Message-ID: <202308291013.jj5KBVQh-lkp@intel.com> (raw)
tree: https://github.com/shenki/linux spb1-hacking
head: b3de99e1aeeeae3e96ffc4c34afae3d2ef4c8175
commit: 8301c92a0180503b1eabf8921845160d118c326a [6952/9113] hwmon: (pmbus/mp2975) Add regulator support
config: i386-buildonly-randconfig-001-20230829 (https://download.01.org/0day-ci/archive/20230829/202308291013.jj5KBVQh-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230829/202308291013.jj5KBVQh-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/202308291013.jj5KBVQh-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/hwmon/pmbus/mp2975.c:878:7: error: use of undeclared identifier 'CONFIG_SENSORS_MP2975_REGULATOR'
if (CONFIG_SENSORS_MP2975_REGULATOR)
^
1 error generated.
vim +/CONFIG_SENSORS_MP2975_REGULATOR +878 drivers/hwmon/pmbus/mp2975.c
841
842 static int mp2975_probe(struct i2c_client *client)
843 {
844 struct pmbus_driver_info *info;
845 struct mp2975_data *data;
846 int ret;
847
848 data = devm_kzalloc(&client->dev, sizeof(struct mp2975_data),
849 GFP_KERNEL);
850 if (!data)
851 return -ENOMEM;
852
853 if (client->dev.of_node)
854 data->chip_id = (enum chips)of_device_get_match_data(&client->dev);
855 else
856 data->chip_id = i2c_match_id(mp2975_id, client)->driver_data;
857
858 memcpy(data->max_phases, mp2975_max_phases[data->chip_id],
859 sizeof(data->max_phases));
860
861 if (data->chip_id == mp2975)
862 memcpy(&data->info, &mp2975_info, sizeof(*info));
863 else
864 memcpy(&data->info, &mp2973_info, sizeof(*info));
865
866 info = &data->info;
867
868 /* Identify multiphase configuration for rail 2. */
869 ret = mp2975_identify_multiphase_rail2(client, data);
870 if (ret < 0)
871 return ret;
872
873 if (ret) {
874 /* Two rails are connected. */
875 data->info.pages = MP2975_PAGE_NUM;
876 data->info.phases[1] = ret;
877 data->info.func[1] = MP2975_RAIL2_FUNC;
> 878 if (CONFIG_SENSORS_MP2975_REGULATOR)
879 data->info.num_regulators = MP2975_PAGE_NUM;
880 }
881
882 if (data->chip_id == mp2975) {
883 /* Identify multiphase configuration. */
884 ret = mp2975_identify_multiphase(client, data, info);
885 if (ret)
886 return ret;
887
888 /* Identify VID setting per rail. */
889 ret = mp2975_identify_rails_vid(client, data, info);
890 if (ret < 0)
891 return ret;
892
893 /* Obtain current sense gain of power stage. */
894 ret = mp2975_current_sense_gain_get(client, data);
895 if (ret)
896 return ret;
897
898 /* Obtain voltage reference values. */
899 ret = mp2975_vref_get(client, data, info);
900 if (ret)
901 return ret;
902
903 /* Obtain vout over-voltage scales. */
904 ret = mp2975_vout_ov_scale_get(client, data, info);
905 if (ret < 0)
906 return ret;
907 } else {
908 /* Identify VID setting per rail. */
909 ret = mp2973_identify_rails_vid(client, data, info);
910 if (ret < 0)
911 return ret;
912 }
913
914 /* Obtain offsets, maximum and format for vout. */
915 ret = mp2975_vout_per_rail_config_get(client, data, info);
916 if (ret)
917 return ret;
918
919 return pmbus_do_probe(client, info);
920 }
921
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-08-29 3:07 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=202308291013.jj5KBVQh-lkp@intel.com \
--to=lkp@intel.com \
--cc=joel@jms.id.au \
--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.