Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_set_usb_current_max':
- drivers/power/qcom-charger/qpnp-smbcharger.c:1948:40: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_suspend_votable, USB_EN_VOTER, true, 0);
- ^~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:1952:40: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_suspend_votable, USB_EN_VOTER, false, 0);
- ^~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_parallel_usb_disable':
- drivers/power/qcom-charger/qpnp-smbcharger.c:2290:2: error: implicit declaration of function 'power_supply_set_current_limit' [-Werror=implicit-function-declaration]
- power_supply_set_current_limit(parallel_psy,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:2292:2: error: implicit declaration of function 'power_supply_set_present' [-Werror=implicit-function-declaration]
- power_supply_set_present(parallel_psy, false);
- ^~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_parallel_usb_taper':
- drivers/power/qcom-charger/qpnp-smbcharger.c:2339:9: warning: 'return' with a value, in function returning void
- return power_supply_set_property(parallel_psy,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX, &pval);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:2305:13: note: declared here
- static void smbchg_parallel_usb_taper(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_parallel_usb_enable':
- drivers/power/qcom-charger/qpnp-smbcharger.c:2380:7: error: implicit declaration of function 'power_supply_set_voltage_limit' [-Werror=implicit-function-declaration]
- rc = power_supply_set_voltage_limit(parallel_psy, chip->vfloat_mv + 50);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:2414:9: warning: 'return' with a value, in function returning void
- return power_supply_set_property(parallel_psy,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX, &pval);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:2364:13: note: declared here
- static void smbchg_parallel_usb_enable(struct smbchg_chip *chip,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_is_parallel_usb_ok':
- drivers/power/qcom-charger/qpnp-smbcharger.c:2449:21: error: implicit declaration of function 'get_effective_client_id_locked' [-Werror=implicit-function-declaration]
- int fcc_voter_id = get_effective_client_id_locked(chip->fcc_votable);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_set_fastchg_current_user':
- drivers/power/qcom-charger/qpnp-smbcharger.c:2721:31: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->fcc_votable, BATT_TYPE_FCC_VOTER, true, current_ma);
- ^~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- LD drivers/input/keyboard/built-in.o
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_system_temp_level_set':
- drivers/power/qcom-charger/qpnp-smbcharger.c:3057:36: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_icl_votable, THERMAL_ICL_VOTER, false, 0);
- ^~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:3062:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->dc_icl_votable, THERMAL_ICL_VOTER, false, 0);
- ^~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:3069:36: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_icl_votable, THERMAL_ICL_VOTER, true,
- ^~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:3074:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->dc_icl_votable, THERMAL_ICL_VOTER, true,
- ^~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:3086:39: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->dc_suspend_votable, THERMAL_EN_VOTER, false, 0);
- ^~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:3092:40: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_suspend_votable, THERMAL_EN_VOTER,
- ^~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- LD drivers/input/built-in.o
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_aicl_deglitch_wa_en':
- drivers/power/qcom-charger/qpnp-smbcharger.c:3627:3: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- VARB_WORKAROUND_VOTER, en, 0);
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:3636:4: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- VARB_WORKAROUND_VOTER, en, 0);
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_config_chg_battery_type':
- drivers/power/qcom-charger/qpnp-smbcharger.c:3748:4: warning: passing argument 2 of 'of_batterydata_get_best_profile' makes integer from pointer without a cast [-Wint-conversion]
- "bms", NULL);
- ^~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:40:0:
- include/linux/of_batterydata.h:48:21: note: expected 'int' but argument is of type 'char *'
- struct device_node *of_batterydata_get_best_profile(
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:3813:33: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->fcc_votable, BATT_TYPE_FCC_VOTER, true,
- ^~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'check_battery_type':
- drivers/power/qcom-charger/qpnp-smbcharger.c:3838:3: error: 'rc' undeclared (first use in this function)
- rc = power_supply_get_property(chip->bms_psy,
- ^~
- drivers/power/qcom-charger/qpnp-smbcharger.c:3838:3: note: each undeclared identifier is reported only once for each function it appears in
- drivers/power/qcom-charger/qpnp-smbcharger.c:3844:5: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- BATTCHG_UNKNOWN_BATTERY_EN_VOTER, !en, 0);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:3852:36: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- vote(chip->usb_suspend_votable, FAKE_BATTERY_EN_VOTER,
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_external_power_changed':
- drivers/power/qcom-charger/qpnp-smbcharger.c:4076:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- vote(chip->usb_suspend_votable, POWER_SUPPLY_EN_VOTER,
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_external_otg_regulator_enable':
- drivers/power/qcom-charger/qpnp-smbcharger.c:4190:39: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_suspend_votable, OTG_EN_VOTER, true, 0);
- ^~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_external_otg_regulator_disable':
- drivers/power/qcom-charger/qpnp-smbcharger.c:4233:39: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_suspend_votable, OTG_EN_VOTER, false, 0);
- ^~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_external_otg_regulator_is_enable':
- drivers/power/qcom-charger/qpnp-smbcharger.c:4268:52: warning: passing argument 2 of 'get_client_vote' makes pointer from integer without a cast [-Wint-conversion]
- return get_client_vote(chip->usb_suspend_votable, OTG_EN_VOTER);
- ^~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:27:5: note: expected 'const char *' but argument is of type 'int'
- int get_client_vote(struct votable *votable, const char *client_str);
- ^~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_regulator_init':
- drivers/power/qcom-charger/qpnp-smbcharger.c:4287:14: error: too few arguments to function 'of_get_regulator_init_data'
- init_data = of_get_regulator_init_data(chip->dev, regulator_node);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:29:0:
- include/linux/regulator/of_regulator.h:21:3: note: declared here
- *of_get_regulator_init_data(struct device *dev,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:4327:14: error: too few arguments to function 'of_get_regulator_init_data'
- init_data = of_get_regulator_init_data(chip->dev, regulator_node);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:29:0:
- include/linux/regulator/of_regulator.h:21:3: note: declared here
- *of_get_regulator_init_data(struct device *dev,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_chg_led_brightness_set':
- drivers/power/qcom-charger/qpnp-smbcharger.c:4409:3: error: implicit declaration of function 'power_supply_set_hi_power_state' [-Werror=implicit-function-declaration]
- power_supply_set_hi_power_state(chip->bms_psy, 1);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_change_usb_supply_type':
- drivers/power/qcom-charger/qpnp-smbcharger.c:4857:3: error: implicit declaration of function 'power_supply_set_supply_type' [-Werror=implicit-function-declaration]
- power_supply_set_supply_type(chip->usb_psy, type);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'set_usb_psy_dp_dm':
- drivers/power/qcom-charger/qpnp-smbcharger.c:4960:9: error: implicit declaration of function 'power_supply_set_dp_dm' [-Werror=implicit-function-declaration]
- return power_supply_set_dp_dm(chip->usb_psy, state);
- ^~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'restore_from_hvdcp_detection':
- drivers/power/qcom-charger/qpnp-smbcharger.c:4971:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_icl_votable, HVDCP_ICL_VOTER, false, 0);
- ^~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_restricted_charging':
- drivers/power/qcom-charger/qpnp-smbcharger.c:5027:31: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->fcc_votable, RESTRICTED_CHG_FCC_VOTER, enable,
- ^~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'handle_usb_removal':
- drivers/power/qcom-charger/qpnp-smbcharger.c:5079:7: error: implicit declaration of function 'power_supply_set_health_state' [-Werror=implicit-function-declaration]
- rc = power_supply_set_health_state(chip->usb_psy,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:5095:30: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- vote(chip->usb_icl_votable, WEAK_CHARGER_ICL_VOTER, false, 0);
- ^~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:5097:30: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- vote(chip->usb_icl_votable, SW_AICL_ICL_VOTER, false, 0);
- ^~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:5099:3: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- HVDCP_SHORT_DEGLITCH_VOTER, false, 0);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_re_det_chg_type':
- drivers/power/qcom-charger/qpnp-smbcharger.c:5134:4: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- CHG_SUSPEND_WORKAROUND_ICL_VOTER, true, 300);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:5146:4: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- CHG_SUSPEND_WORKAROUND_ICL_VOTER, false, 0);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'increment_aicl_count':
- drivers/power/qcom-charger/qpnp-smbcharger.c:5433:5: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- WEAK_CHARGER_HW_AICL_VOTER, true, 0);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:5441:37: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_icl_votable, WEAK_CHARGER_ICL_VOTER,
- ^~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_prepare_for_pulsing':
- drivers/power/qcom-charger/qpnp-smbcharger.c:5652:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_icl_votable, HVDCP_ICL_VOTER, true, 300);
- ^~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_unprepare_for_pulsing':
- drivers/power/qcom-charger/qpnp-smbcharger.c:5819:3: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- HVDCP_SHORT_DEGLITCH_VOTER, true, 0);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:5824:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_icl_votable, HVDCP_ICL_VOTER, false, 0);
- ^~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_prepare_for_pulsing_lite':
- drivers/power/qcom-charger/qpnp-smbcharger.c:5952:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_icl_votable, HVDCP_ICL_VOTER, true, 300);
- ^~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_unprepare_for_pulsing_lite':
- drivers/power/qcom-charger/qpnp-smbcharger.c:6020:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_icl_votable, HVDCP_ICL_VOTER, false, 0);
- ^~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_hvdcp3_confirmed':
- drivers/power/qcom-charger/qpnp-smbcharger.c:6073:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_icl_votable, HVDCP_ICL_VOTER, false, 0);
- ^~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_dp_dm':
- drivers/power/qcom-charger/qpnp-smbcharger.c:6135:31: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- vote(chip->usb_icl_votable, SW_AICL_ICL_VOTER, true,
- ^~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:6142:31: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- vote(chip->usb_icl_votable, SW_AICL_ICL_VOTER, true,
- ^~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: At top level:
- drivers/power/qcom-charger/qpnp-smbcharger.c:6248:2: error: 'POWER_SUPPLY_PROP_ALLOW_HVDCP3' undeclared here (not in a function)
- POWER_SUPPLY_PROP_ALLOW_HVDCP3,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_dc_set_property':
- drivers/power/qcom-charger/qpnp-smbcharger.c:6518:40: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->dc_suspend_votable, POWER_SUPPLY_EN_VOTER,
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:6522:36: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->dc_icl_votable, USER_ICL_VOTER, true,
- ^~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'usbin_uv_handler':
- drivers/power/qcom-charger/qpnp-smbcharger.c:6956:6: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- WEAK_CHARGER_EN_VOTER, true, 0);
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:6966:5: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- WEAK_CHARGER_HW_AICL_VOTER, true, 0);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'src_detect_handler':
- drivers/power/qcom-charger/qpnp-smbcharger.c:7033:3: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- WEAK_CHARGER_HW_AICL_VOTER, false, 0);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:7037:39: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->usb_suspend_votable, WEAK_CHARGER_EN_VOTER, false, 0);
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_hw_init':
- drivers/power/qcom-charger/qpnp-smbcharger.c:7686:31: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- rc = vote(chip->fcc_votable, BATT_TYPE_FCC_VOTER, true,500);
- ^~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'rerun_hvdcp_det_if_necessary':
- drivers/power/qcom-charger/qpnp-smbcharger.c:8528:5: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- CHG_SUSPEND_WORKAROUND_ICL_VOTER, true, 300);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:8550:5: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
- CHG_SUSPEND_WORKAROUND_ICL_VOTER, false, 0);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
- drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
- int vote(struct votable *votable, const char *client_str, bool state, int val);
- ^~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'qpnp_start_charging':
- drivers/power/qcom-charger/qpnp-smbcharger.c:8559:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8615:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8637:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8642:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8646:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8654:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8665:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8697:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8761:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8783:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8808:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8842:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8875:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8916:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8950:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:8984:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9018:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9042:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9096:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9147:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9166:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9195:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9293:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9312:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9346:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9501:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9527:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9536:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9545:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9551:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9570:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9576:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9583:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9590:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9611:33: error: storage class specified for parameter 'notify_unplug_event'
- static struct notify_dash_event notify_unplug_event = {
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9611:15: error: parameter 'notify_unplug_event' is initialized
- static struct notify_dash_event notify_unplug_event = {
- ^~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9617:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9687:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9697:37: error: storage class specified for parameter 'proc_ship_mode_operations'
- static const struct file_operations proc_ship_mode_operations = {
- ^~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9697:21: error: parameter 'proc_ship_mode_operations' is initialized
- static const struct file_operations proc_ship_mode_operations = {
- ^~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9698:12: error: 'write_ship_mode' undeclared (first use in this function)
- .write = write_ship_mode,
- ^~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9698:12: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
- drivers/power/qcom-charger/qpnp-smbcharger.c:9698:12: note: (near initialization for 'proc_ship_mode_operations.write')
- drivers/power/qcom-charger/qpnp-smbcharger.c:9706:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- In file included from include/linux/module.h:18:0,
- from include/linux/gpio/driver.h:5,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/moduleparam.h:229:39: error: storage class specified for parameter '__param_ops_usb_redetec'
- static const struct kernel_param_ops __param_ops_##name = \
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:229:22: error: parameter '__param_ops_usb_redetec' is initialized
- static const struct kernel_param_ops __param_ops_##name = \
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:32: error: 'set_usb_redetec' undeclared (first use in this function)
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^
- include/linux/moduleparam.h:230:25: note: in definition of macro 'module_param_call'
- { .flags = 0, (void *)set, (void *)get }; \
- ^~~
- include/linux/moduleparam.h:220:20: error: storage class specified for parameter '__param_str_usb_redetec'
- static const char __param_str_##name[] = prefix #name; \
- ^
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- CC drivers/media/platform/msm/camera_v2/common/cam_soc_api.o
- include/linux/moduleparam.h:229:22: error: parameter '__param_str_usb_redetec' is initialized
- static const struct kernel_param_ops __param_ops_##name = \
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:221:49: error: storage class specified for parameter '__param_usb_redetec'
- static struct kernel_param __moduleparam_const __param_##name \
- ^
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:221:16: error: parameter '__param_usb_redetec' is initialized
- static struct kernel_param __moduleparam_const __param_##name \
- ^
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:221:16: warning: '__used__' attribute ignored [-Wattributes]
- static struct kernel_param __moduleparam_const __param_##name \
- ^
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:221:49: error: section attribute not allowed for '__param_usb_redetec'
- static struct kernel_param __moduleparam_const __param_##name \
- ^
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:221:49: error: alignment may not be specified for '__param_usb_redetec'
- static struct kernel_param __moduleparam_const __param_##name \
- ^
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- In file included from include/linux/thread_info.h:11:0,
- from include/asm-generic/preempt.h:4,
- from arch/arm64/include/generated/asm/preempt.h:1,
- from include/linux/preempt.h:59,
- from include/linux/spinlock.h:50,
- from include/linux/rcupdate.h:38,
- from include/linux/rbtree.h:34,
- from include/linux/regmap.h:17,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:32: warning: passing argument 1 of '__check_old_set_param' from incompatible pointer type [-Wincompatible-pointer-types]
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^
- include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
- #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
- ^
- include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
- VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
- ^~~~~~~~~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- In file included from include/linux/module.h:18:0,
- from include/linux/gpio/driver.h:5,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
- __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from include/linux/thread_info.h:11:0,
- from include/asm-generic/preempt.h:4,
- from arch/arm64/include/generated/asm/preempt.h:1,
- from include/linux/preempt.h:59,
- from include/linux/spinlock.h:50,
- from include/linux/rcupdate.h:38,
- from include/linux/rbtree.h:34,
- from include/linux/regmap.h:17,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:32: warning: passing argument 1 of '__check_old_set_param' from incompatible pointer type [-Wincompatible-pointer-types]
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^
- include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
- #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
- ^
- include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
- VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
- ^~~~~~~~~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- In file included from include/linux/module.h:18:0,
- from include/linux/gpio/driver.h:5,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
- __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from include/linux/thread_info.h:11:0,
- from include/asm-generic/preempt.h:4,
- from arch/arm64/include/generated/asm/preempt.h:1,
- from include/linux/preempt.h:59,
- from include/linux/spinlock.h:50,
- from include/linux/rcupdate.h:38,
- from include/linux/rbtree.h:34,
- from include/linux/regmap.h:17,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:32: warning: passing argument 1 of '__check_old_set_param' from incompatible pointer type [-Wincompatible-pointer-types]
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^
- include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
- #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
- ^
- include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
- VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
- ^~~~~~~~~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- In file included from include/linux/module.h:18:0,
- from include/linux/gpio/driver.h:5,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
- __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from include/linux/thread_info.h:11:0,
- from include/asm-generic/preempt.h:4,
- from arch/arm64/include/generated/asm/preempt.h:1,
- from include/linux/preempt.h:59,
- from include/linux/spinlock.h:50,
- from include/linux/rcupdate.h:38,
- from include/linux/rbtree.h:34,
- from include/linux/regmap.h:17,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:32: warning: passing argument 1 of '__check_old_set_param' from incompatible pointer type [-Wincompatible-pointer-types]
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^
- include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
- #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
- ^
- include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
- VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
- ^~~~~~~~~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- In file included from include/linux/module.h:18:0,
- from include/linux/gpio/driver.h:5,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
- __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from include/linux/thread_info.h:11:0,
- from include/asm-generic/preempt.h:4,
- from arch/arm64/include/generated/asm/preempt.h:1,
- from include/linux/preempt.h:59,
- from include/linux/spinlock.h:50,
- from include/linux/rcupdate.h:38,
- from include/linux/rbtree.h:34,
- from include/linux/regmap.h:17,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:32: warning: passing argument 1 of '__check_old_set_param' from incompatible pointer type [-Wincompatible-pointer-types]
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^
- include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
- #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
- ^
- include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
- VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
- ^~~~~~~~~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- In file included from include/linux/module.h:18:0,
- from include/linux/gpio/driver.h:5,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
- __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from include/linux/thread_info.h:11:0,
- from include/asm-generic/preempt.h:4,
- from arch/arm64/include/generated/asm/preempt.h:1,
- from include/linux/preempt.h:59,
- from include/linux/spinlock.h:50,
- from include/linux/rcupdate.h:38,
- from include/linux/rbtree.h:34,
- from include/linux/regmap.h:17,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:32: warning: passing argument 1 of '__check_old_set_param' from incompatible pointer type [-Wincompatible-pointer-types]
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^
- include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
- #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
- ^
- include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
- VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
- ^~~~~~~~~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- In file included from include/linux/module.h:18:0,
- from include/linux/gpio/driver.h:5,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
- __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from include/linux/thread_info.h:11:0,
- from include/asm-generic/preempt.h:4,
- from arch/arm64/include/generated/asm/preempt.h:1,
- from include/linux/preempt.h:59,
- from include/linux/spinlock.h:50,
- from include/linux/rcupdate.h:38,
- from include/linux/rbtree.h:34,
- from include/linux/regmap.h:17,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:32: warning: passing argument 1 of '__check_old_set_param' from incompatible pointer type [-Wincompatible-pointer-types]
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^
- include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
- #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
- ^
- include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
- VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
- ^~~~~~~~~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- In file included from include/linux/module.h:18:0,
- from include/linux/gpio/driver.h:5,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
- __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from include/linux/thread_info.h:11:0,
- from include/asm-generic/preempt.h:4,
- from arch/arm64/include/generated/asm/preempt.h:1,
- from include/linux/preempt.h:59,
- from include/linux/spinlock.h:50,
- from include/linux/rcupdate.h:38,
- from include/linux/rbtree.h:34,
- from include/linux/regmap.h:17,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:32: warning: passing argument 1 of '__check_old_set_param' from incompatible pointer type [-Wincompatible-pointer-types]
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^
- include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
- #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
- ^
- include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
- VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
- ^~~~~~~~~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- In file included from include/linux/module.h:18:0,
- from include/linux/gpio/driver.h:5,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
- __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
- ^~~~~~~~~~~~~~~~~~~~~
- LD drivers/media/platform/msm/camera_v2/camera/built-in.o
- In file included from include/linux/thread_info.h:11:0,
- from include/asm-generic/preempt.h:4,
- from arch/arm64/include/generated/asm/preempt.h:1,
- from include/linux/preempt.h:59,
- from include/linux/spinlock.h:50,
- from include/linux/rcupdate.h:38,
- from include/linux/rbtree.h:34,
- from include/linux/regmap.h:17,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:32: warning: passing argument 1 of '__check_old_set_param' from incompatible pointer type [-Wincompatible-pointer-types]
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^
- include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
- #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
- ^
- include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
- VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
- ^~~~~~~~~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- In file included from include/linux/module.h:18:0,
- from include/linux/gpio/driver.h:5,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
- __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
- ^~~~~~~~~~~~~~~~~~~~~
- In file included from include/linux/list.h:8:0,
- from include/linux/regmap.h:16,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:32: warning: passing argument 1 of '__check_old_set_param' from incompatible pointer type [-Wincompatible-pointer-types]
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^
- include/linux/kernel.h:832:4: note: in definition of macro 'VERIFY_OCTAL_PERMISSIONS'
- (perms))
- ^~~~~
- include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
- __module_param_call(MODULE_PARAM_PREFIX, \
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
- module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
- ^~~~~~~~~~~~~~~~~
- In file included from include/linux/module.h:18:0,
- from include/linux/gpio/driver.h:5,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
- __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
- ^~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9726:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:9732:45: error: storage class specified for parameter 'usb_enumeration'
- static struct notify_usb_enumeration_status usb_enumeration = {
- ^~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9732:15: error: parameter 'usb_enumeration' is initialized
- static struct notify_usb_enumeration_status usb_enumeration = {
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9733:39: error: 'notify_usb_enumeration_function' undeclared (first use in this function)
- .notify_usb_enumeration = notify_usb_enumeration_function,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:9733:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
- drivers/power/qcom-charger/qpnp-smbcharger.c:9733:39: note: (near initialization for 'usb_enumeration.notify_usb_enumeration')
- drivers/power/qcom-charger/qpnp-smbcharger.c:9736:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:10084:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:10098:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:10216:32: error: storage class specified for parameter 'smbchg_pm_ops'
- static const struct dev_pm_ops smbchg_pm_ops = {
- ^~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10216:21: error: parameter 'smbchg_pm_ops' is initialized
- static const struct dev_pm_ops smbchg_pm_ops = {
- ^~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10219:37: error: expected declaration specifiers before ';' token
- MODULE_DEVICE_TABLE(spmi, smbchg_id);
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:10221:31: error: storage class specified for parameter 'smbchg_driver'
- static struct platform_driver smbchg_driver = {
- ^~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10221:15: error: parameter 'smbchg_driver' is initialized
- static struct platform_driver smbchg_driver = {
- ^~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10228:12: error: 'smbchg_probe' undeclared (first use in this function)
- .probe = smbchg_probe,
- ^~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10228:12: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
- drivers/power/qcom-charger/qpnp-smbcharger.c:10228:12: note: (near initialization for 'smbchg_driver.probe')
- drivers/power/qcom-charger/qpnp-smbcharger.c:10229:13: error: 'smbchg_remove' undeclared (first use in this function)
- .remove = smbchg_remove,
- ^~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10229:13: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
- drivers/power/qcom-charger/qpnp-smbcharger.c:10229:13: note: (near initialization for 'smbchg_driver.remove')
- drivers/power/qcom-charger/qpnp-smbcharger.c:10230:14: error: 'smbchg_shutdown' undeclared (first use in this function)
- .shutdown = smbchg_shutdown,
- ^~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10230:14: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
- drivers/power/qcom-charger/qpnp-smbcharger.c:10230:14: note: (near initialization for 'smbchg_driver.shutdown')
- drivers/power/qcom-charger/qpnp-smbcharger.c:10234:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:10239:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- {
- ^
- In file included from include/linux/printk.h:5:0,
- from include/linux/kernel.h:13,
- from include/linux/list.h:8,
- from include/linux/regmap.h:16,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- include/linux/init.h:187:20: error: storage class specified for parameter '__initcall_smbchg_init6'
- static initcall_t __initcall_##fn##id __used \
- ^
- include/linux/init.h:218:30: note: in expansion of macro '__define_initcall'
- #define device_initcall(fn) __define_initcall(fn, 6)
- ^~~~~~~~~~~~~~~~~
- include/linux/init.h:223:24: note: in expansion of macro 'device_initcall'
- #define __initcall(fn) device_initcall(fn)
- ^~~~~~~~~~~~~~~
- include/linux/module.h:84:24: note: in expansion of macro '__initcall'
- #define module_init(x) __initcall(x);
- ^~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10243:1: note: in expansion of macro 'module_init'
- module_init(smbchg_init);
- ^~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10243:1: error: parameter '__initcall_smbchg_init6' is initialized
- drivers/power/qcom-charger/qpnp-smbcharger.c:10243:1: warning: '__used__' attribute ignored [-Wattributes]
- In file included from include/linux/printk.h:5:0,
- from include/linux/kernel.h:13,
- from include/linux/list.h:8,
- from include/linux/regmap.h:16,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- include/linux/init.h:187:20: error: section attribute not allowed for '__initcall_smbchg_init6'
- static initcall_t __initcall_##fn##id __used \
- ^
- include/linux/init.h:218:30: note: in expansion of macro '__define_initcall'
- #define device_initcall(fn) __define_initcall(fn, 6)
- ^~~~~~~~~~~~~~~~~
- include/linux/init.h:223:24: note: in expansion of macro 'device_initcall'
- #define __initcall(fn) device_initcall(fn)
- ^~~~~~~~~~~~~~~
- include/linux/module.h:84:24: note: in expansion of macro '__initcall'
- #define module_init(x) __initcall(x);
- ^~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10243:1: note: in expansion of macro 'module_init'
- module_init(smbchg_init);
- ^~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10243:13: error: 'smbchg_init' undeclared (first use in this function)
- module_init(smbchg_init);
- ^
- include/linux/init.h:188:58: note: in definition of macro '__define_initcall'
- __attribute__((__section__(".initcall" #id ".init"))) = fn; \
- ^~
- include/linux/init.h:223:24: note: in expansion of macro 'device_initcall'
- #define __initcall(fn) device_initcall(fn)
- ^~~~~~~~~~~~~~~
- include/linux/module.h:84:24: note: in expansion of macro '__initcall'
- #define module_init(x) __initcall(x);
- ^~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10243:1: note: in expansion of macro 'module_init'
- module_init(smbchg_init);
- ^~~~~~~~~~~
- In file included from include/linux/gpio/driver.h:5:0,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/module.h:84:37: error: expected declaration specifiers before ';' token
- #define module_init(x) __initcall(x);
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:10243:1: note: in expansion of macro 'module_init'
- module_init(smbchg_init);
- ^~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10243:25: error: expected declaration specifiers before ';' token
- module_init(smbchg_init);
- ^
- In file included from include/linux/printk.h:5:0,
- from include/linux/kernel.h:13,
- from include/linux/list.h:8,
- from include/linux/regmap.h:16,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- include/linux/init.h:226:20: error: storage class specified for parameter '__exitcall_smbchg_exit'
- static exitcall_t __exitcall_##fn __exit_call = fn
- ^
- include/linux/module.h:96:24: note: in expansion of macro '__exitcall'
- #define module_exit(x) __exitcall(x);
- ^~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10244:1: note: in expansion of macro 'module_exit'
- module_exit(smbchg_exit);
- ^~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10244:1: error: parameter '__exitcall_smbchg_exit' is initialized
- drivers/power/qcom-charger/qpnp-smbcharger.c:10244:1: warning: '__used__' attribute ignored [-Wattributes]
- In file included from include/linux/printk.h:5:0,
- from include/linux/kernel.h:13,
- from include/linux/list.h:8,
- from include/linux/regmap.h:16,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- include/linux/init.h:226:20: error: section attribute not allowed for '__exitcall_smbchg_exit'
- static exitcall_t __exitcall_##fn __exit_call = fn
- ^
- include/linux/module.h:96:24: note: in expansion of macro '__exitcall'
- #define module_exit(x) __exitcall(x);
- ^~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10244:1: note: in expansion of macro 'module_exit'
- module_exit(smbchg_exit);
- ^~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10244:13: error: 'smbchg_exit' undeclared (first use in this function)
- module_exit(smbchg_exit);
- ^
- include/linux/init.h:226:50: note: in definition of macro '__exitcall'
- static exitcall_t __exitcall_##fn __exit_call = fn
- ^~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10244:1: note: in expansion of macro 'module_exit'
- module_exit(smbchg_exit);
- ^~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10244:25: error: expected declaration specifiers before ';' token
- module_exit(smbchg_exit);
- ^
- In file included from include/linux/module.h:18:0,
- from include/linux/gpio/driver.h:5,
- from include/asm-generic/gpio.h:12,
- from ./arch/arm64/include/asm/gpio.h:15,
- from include/linux/gpio.h:48,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
- include/linux/moduleparam.h:27:3: warning: empty declaration
- struct __UNIQUE_ID(name) {}
- ^
- include/linux/module.h:171:32: note: in expansion of macro '__MODULE_INFO'
- #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
- ^~~~~~~~~~~~~
- include/linux/module.h:218:42: note: in expansion of macro 'MODULE_INFO'
- #define MODULE_DESCRIPTION(_description) MODULE_INFO(description, _description)
- ^~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10246:1: note: in expansion of macro 'MODULE_DESCRIPTION'
- MODULE_DESCRIPTION("QPNP SMB Charger");
- ^~~~~~~~~~~~~~~~~~
- include/linux/moduleparam.h:27:3: warning: empty declaration
- struct __UNIQUE_ID(name) {}
- ^
- include/linux/module.h:171:32: note: in expansion of macro '__MODULE_INFO'
- #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
- ^~~~~~~~~~~~~
- include/linux/module.h:209:34: note: in expansion of macro 'MODULE_INFO'
- #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
- ^~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10247:1: note: in expansion of macro 'MODULE_LICENSE'
- MODULE_LICENSE("GPL v2");
- ^~~~~~~~~~~~~~
- include/linux/moduleparam.h:27:3: warning: empty declaration
- struct __UNIQUE_ID(name) {}
- ^
- include/linux/module.h:171:32: note: in expansion of macro '__MODULE_INFO'
- #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
- ^~~~~~~~~~~~~
- include/linux/module.h:174:30: note: in expansion of macro 'MODULE_INFO'
- #define MODULE_ALIAS(_alias) MODULE_INFO(alias, _alias)
- ^~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10248:1: note: in expansion of macro 'MODULE_ALIAS'
- MODULE_ALIAS("platform:qpnp-smbcharger");
- ^~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:8557:12: error: old-style parameter declarations in prototyped function definition
- static int qpnp_start_charging(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~~
- In file included from include/uapi/linux/stddef.h:1:0,
- from include/linux/stddef.h:4,
- from ./include/uapi/linux/posix_types.h:4,
- from include/uapi/linux/types.h:13,
- from include/linux/types.h:5,
- from include/linux/list.h:4,
- from include/linux/regmap.h:16,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
- include/linux/compiler-gcc.h:181:45: error: expected '{' at end of input
- #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
- ^
- include/linux/compiler.h:50:23: note: in definition of macro '___PASTE'
- #define ___PASTE(a,b) a##b
- ^
- include/linux/compiler-gcc.h:181:29: note: in expansion of macro '__PASTE'
- #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
- ^~~~~~~
- include/linux/compiler.h:51:22: note: in expansion of macro '___PASTE'
- #define __PASTE(a,b) ___PASTE(a,b)
- ^~~~~~~~
- include/linux/compiler-gcc.h:181:37: note: in expansion of macro '__PASTE'
- #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
- ^~~~~~~
- include/linux/moduleparam.h:27:10: note: in expansion of macro '__UNIQUE_ID'
- struct __UNIQUE_ID(name) {}
- ^~~~~~~~~~~
- include/linux/module.h:171:32: note: in expansion of macro '__MODULE_INFO'
- #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
- ^~~~~~~~~~~~~
- include/linux/module.h:174:30: note: in expansion of macro 'MODULE_INFO'
- #define MODULE_ALIAS(_alias) MODULE_INFO(alias, _alias)
- ^~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10248:1: note: in expansion of macro 'MODULE_ALIAS'
- MODULE_ALIAS("platform:qpnp-smbcharger");
- ^~~~~~~~~~~~
- include/linux/compiler-gcc.h:181:45: warning: no return statement in function returning non-void [-Wreturn-type]
- #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
- ^
- include/linux/compiler.h:50:23: note: in definition of macro '___PASTE'
- #define ___PASTE(a,b) a##b
- ^
- include/linux/compiler-gcc.h:181:29: note: in expansion of macro '__PASTE'
- #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
- ^~~~~~~
- include/linux/compiler.h:51:22: note: in expansion of macro '___PASTE'
- #define __PASTE(a,b) ___PASTE(a,b)
- ^~~~~~~~
- include/linux/compiler-gcc.h:181:37: note: in expansion of macro '__PASTE'
- #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
- ^~~~~~~
- include/linux/moduleparam.h:27:10: note: in expansion of macro '__UNIQUE_ID'
- struct __UNIQUE_ID(name) {}
- ^~~~~~~~~~~
- include/linux/module.h:171:32: note: in expansion of macro '__MODULE_INFO'
- #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
- ^~~~~~~~~~~~~
- include/linux/module.h:174:30: note: in expansion of macro 'MODULE_INFO'
- #define MODULE_ALIAS(_alias) MODULE_INFO(alias, _alias)
- ^~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:10248:1: note: in expansion of macro 'MODULE_ALIAS'
- MODULE_ALIAS("platform:qpnp-smbcharger");
- ^~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c: At top level:
- drivers/power/qcom-charger/qpnp-smbcharger.c:675:13: warning: 'qpnp_check_charger_uovp' declared 'static' but never defined [-Wunused-function]
- static void qpnp_check_charger_uovp(struct smbchg_chip *chip);
- ^~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:676:12: warning: 'qpnp_check_battery_temp' used but never defined
- static int qpnp_check_battery_temp(struct smbchg_chip *chip);
- ^~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:684:12: warning: 'update_dash_unplug_status' used but never defined
- static int update_dash_unplug_status(void);
- ^~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:686:12: warning: 'set_dash_charger_present' used but never defined
- static int set_dash_charger_present(int status);
- ^~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:8557:12: warning: 'qpnp_start_charging' defined but not used [-Wunused-function]
- static int qpnp_start_charging(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~~
- CC drivers/media/platform/msm/camera_v2/isp/msm_isp_util.o
- drivers/power/qcom-charger/qpnp-smbcharger.c:8511:13: warning: 'rerun_hvdcp_det_if_necessary' defined but not used [-Wunused-function]
- static void rerun_hvdcp_det_if_necessary(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:8483:12: warning: 'set_prop_batt_health' defined but not used [-Wunused-function]
- static int set_prop_batt_health(struct smbchg_chip *chip, int batt_health)
- ^~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:8434:12: warning: 'create_debugfs_entries' defined but not used [-Wunused-function]
- static int create_debugfs_entries(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:8403:13: warning: 'dump_regs' defined but not used [-Wunused-function]
- static void dump_regs(struct smbchg_chip *chip)
- ^~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:8330:12: warning: 'smbchg_parse_peripherals' defined but not used [-Wunused-function]
- static int smbchg_parse_peripherals(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:8111:12: warning: 'smbchg_request_irqs' defined but not used [-Wunused-function]
- static int smbchg_request_irqs(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~~
- CC drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.o
- drivers/power/qcom-charger/qpnp-smbcharger.c:7881:12: warning: 'smb_parse_dt' defined but not used [-Wunused-function]
- static int smb_parse_dt(struct smbchg_chip *chip)
- ^~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:7332:12: warning: 'smbchg_hw_init' defined but not used [-Wunused-function]
- static int smbchg_hw_init(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:7153:12: warning: 'determine_initial_status' defined but not used [-Wunused-function]
- static int determine_initial_status(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:6562:12: warning: 'smbchg_dc_is_writeable' defined but not used [-Wunused-function]
- static int smbchg_dc_is_writeable(struct power_supply *psy,
- ^~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:6532:12: warning: 'smbchg_dc_get_property' defined but not used [-Wunused-function]
- static int smbchg_dc_get_property(struct power_supply *psy,
- ^~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:6508:12: warning: 'smbchg_dc_set_property' defined but not used [-Wunused-function]
- static int smbchg_dc_set_property(struct power_supply *psy,
- ^~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:6501:35: warning: 'smbchg_dc_properties' defined but not used [-Wunused-variable]
- static enum power_supply_property smbchg_dc_properties[] = {
- ^~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:6497:14: warning: 'smbchg_dc_supplicants' defined but not used [-Wunused-variable]
- static char *smbchg_dc_supplicants[] = {
- ^~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:6375:12: warning: 'smbchg_battery_get_property' defined but not used [-Wunused-function]
- static int smbchg_battery_get_property(struct power_supply *psy,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:6349:12: warning: 'smbchg_battery_is_writeable' defined but not used [-Wunused-function]
- static int smbchg_battery_is_writeable(struct power_supply *psy,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:6251:12: warning: 'smbchg_battery_set_property' defined but not used [-Wunused-function]
- static int smbchg_battery_set_property(struct power_supply *psy,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:6217:35: warning: 'smbchg_battery_properties' defined but not used [-Wunused-variable]
- static enum power_supply_property smbchg_battery_properties[] = {
- ^~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:5162:13: warning: 'smbchg_re_det_work' defined but not used [-Wunused-function]
- static void smbchg_re_det_work(struct work_struct *work)
- ^~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:4916:13: warning: 'smbchg_hvdcp_det_work' defined but not used [-Wunused-function]
- static void smbchg_hvdcp_det_work(struct work_struct *work)
- ^~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:4668:13: warning: 'smbchg_vfloat_adjust_work' defined but not used [-Wunused-function]
- static void smbchg_vfloat_adjust_work(struct work_struct *work)
- ^~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:4504:12: warning: 'smbchg_register_chg_led' defined but not used [-Wunused-function]
- static int smbchg_register_chg_led(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:4375:12: warning: 'smbchg_chg_led_controls' defined but not used [-Wunused-function]
- static int smbchg_chg_led_controls(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:4277:12: warning: 'smbchg_regulator_init' defined but not used [-Wunused-function]
- static int smbchg_regulator_init(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:4047:13: warning: 'smbchg_external_power_changed' defined but not used [-Wunused-function]
- static void smbchg_external_power_changed(struct power_supply *psy)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:4015:13: warning: 'switch_fast_chg' defined but not used [-Wunused-function]
- static void switch_fast_chg(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:3596:12: warning: 'smbchg_aicl_deglitch_config_cb' defined but not used [-Wunused-function]
- static int smbchg_aicl_deglitch_config_cb(struct device *dev, int shorter,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:3580:12: warning: 'smbchg_hw_aicl_rerun_disable_cb' defined but not used [-Wunused-function]
- static int smbchg_hw_aicl_rerun_disable_cb(struct device *dev, int disable,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:3558:12: warning: 'smbchg_hw_aicl_rerun_enable_indirect_cb' defined but not used [-Wunused-function]
- static int smbchg_hw_aicl_rerun_enable_indirect_cb(struct device *dev,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:2993:12: warning: 'set_usb_current_limit_vote_cb' defined but not used [-Wunused-function]
- static int set_usb_current_limit_vote_cb(struct device *dev,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:2978:12: warning: 'set_dc_current_limit_vote_cb' defined but not used [-Wunused-function]
- static int set_dc_current_limit_vote_cb(struct device *dev,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:2690:12: warning: 'set_fastchg_current_vote_cb' defined but not used [-Wunused-function]
- static int set_fastchg_current_vote_cb(struct device *dev,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:2673:12: warning: 'dc_suspend_vote_cb' defined but not used [-Wunused-function]
- static int dc_suspend_vote_cb(struct device *dev, int suspend,
- ^~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:2654:12: warning: 'usb_suspend_vote_cb' defined but not used [-Wunused-function]
- static int usb_suspend_vote_cb(struct device *dev, int suspend,
- ^~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:2637:12: warning: 'charging_suspend_vote_cb' defined but not used [-Wunused-function]
- static int charging_suspend_vote_cb(struct device *dev, int suspend,
- ^~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:2586:13: warning: 'smbchg_parallel_usb_en_work' defined but not used [-Wunused-function]
- static void smbchg_parallel_usb_en_work(struct work_struct *work)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:1825:13: warning: 'smbchg_usb_update_online_work' defined but not used [-Wunused-function]
- static void smbchg_usb_update_online_work(struct work_struct *work)
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from include/linux/power_supply.h:16:0,
- from drivers/power/qcom-charger/qpnp-smbcharger.c:23:
- include/linux/device.h:571:26: warning: 'dev_attr_test_authentic' defined but not used [-Wunused-variable]
- struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:1751:8: note: in expansion of macro 'DEVICE_ATTR'
- static DEVICE_ATTR(test_authentic, S_IRUGO | S_IWUSR, test_authentic_show, test_authentic_store);
- ^~~~~~~~~~~
- include/linux/device.h:571:26: warning: 'dev_attr_test_temp' defined but not used [-Wunused-variable]
- struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:1732:8: note: in expansion of macro 'DEVICE_ATTR'
- static DEVICE_ATTR(test_temp, S_IRUGO | S_IWUSR, test_temp_show, test_temp_store);
- ^~~~~~~~~~~
- include/linux/device.h:571:26: warning: 'dev_attr_test_chg_vol' defined but not used [-Wunused-variable]
- struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
- ^
- drivers/power/qcom-charger/qpnp-smbcharger.c:1712:8: note: in expansion of macro 'DEVICE_ATTR'
- static DEVICE_ATTR(test_chg_vol, S_IRUGO | S_IWUSR, test_chg_vol_show, test_chg_vol_store);
- ^~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:1573:13: warning: 'use_pmi8996_tables' defined but not used [-Wunused-function]
- static void use_pmi8996_tables(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:1558:13: warning: 'use_pmi8994_tables' defined but not used [-Wunused-function]
- static void use_pmi8994_tables(struct smbchg_chip *chip)
- ^~~~~~~~~~~~~~~~~~
- drivers/power/qcom-charger/qpnp-smbcharger.c:464:14: warning: 'version_str' defined but not used [-Wunused-variable]
- static char *version_str[] = {
- ^~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement