Advertisement
arter97

Untitled

Dec 4th, 2016
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 90.10 KB | None | 0 0
  1. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_set_usb_current_max':
  2. drivers/power/qcom-charger/qpnp-smbcharger.c:1948:40: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  3. rc = vote(chip->usb_suspend_votable, USB_EN_VOTER, true, 0);
  4. ^~~~~~~~~~~~
  5. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  6. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  7. int vote(struct votable *votable, const char *client_str, bool state, int val);
  8. ^~~~
  9. drivers/power/qcom-charger/qpnp-smbcharger.c:1952:40: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  10. rc = vote(chip->usb_suspend_votable, USB_EN_VOTER, false, 0);
  11. ^~~~~~~~~~~~
  12. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  13. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  14. int vote(struct votable *votable, const char *client_str, bool state, int val);
  15. ^~~~
  16. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_parallel_usb_disable':
  17. drivers/power/qcom-charger/qpnp-smbcharger.c:2290:2: error: implicit declaration of function 'power_supply_set_current_limit' [-Werror=implicit-function-declaration]
  18. power_supply_set_current_limit(parallel_psy,
  19. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20. drivers/power/qcom-charger/qpnp-smbcharger.c:2292:2: error: implicit declaration of function 'power_supply_set_present' [-Werror=implicit-function-declaration]
  21. power_supply_set_present(parallel_psy, false);
  22. ^~~~~~~~~~~~~~~~~~~~~~~~
  23. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_parallel_usb_taper':
  24. drivers/power/qcom-charger/qpnp-smbcharger.c:2339:9: warning: 'return' with a value, in function returning void
  25. return power_supply_set_property(parallel_psy,
  26. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  27. POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX, &pval);
  28. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  29. drivers/power/qcom-charger/qpnp-smbcharger.c:2305:13: note: declared here
  30. static void smbchg_parallel_usb_taper(struct smbchg_chip *chip)
  31. ^~~~~~~~~~~~~~~~~~~~~~~~~
  32. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_parallel_usb_enable':
  33. drivers/power/qcom-charger/qpnp-smbcharger.c:2380:7: error: implicit declaration of function 'power_supply_set_voltage_limit' [-Werror=implicit-function-declaration]
  34. rc = power_supply_set_voltage_limit(parallel_psy, chip->vfloat_mv + 50);
  35. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36. drivers/power/qcom-charger/qpnp-smbcharger.c:2414:9: warning: 'return' with a value, in function returning void
  37. return power_supply_set_property(parallel_psy,
  38. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  39. POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX, &pval);
  40. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  41. drivers/power/qcom-charger/qpnp-smbcharger.c:2364:13: note: declared here
  42. static void smbchg_parallel_usb_enable(struct smbchg_chip *chip,
  43. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  44. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_is_parallel_usb_ok':
  45. drivers/power/qcom-charger/qpnp-smbcharger.c:2449:21: error: implicit declaration of function 'get_effective_client_id_locked' [-Werror=implicit-function-declaration]
  46. int fcc_voter_id = get_effective_client_id_locked(chip->fcc_votable);
  47. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  48. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_set_fastchg_current_user':
  49. drivers/power/qcom-charger/qpnp-smbcharger.c:2721:31: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  50. rc = vote(chip->fcc_votable, BATT_TYPE_FCC_VOTER, true, current_ma);
  51. ^~~~~~~~~~~~~~~~~~~
  52. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  53. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  54. int vote(struct votable *votable, const char *client_str, bool state, int val);
  55. ^~~~
  56. LD drivers/input/keyboard/built-in.o
  57. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_system_temp_level_set':
  58. drivers/power/qcom-charger/qpnp-smbcharger.c:3057:36: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  59. rc = vote(chip->usb_icl_votable, THERMAL_ICL_VOTER, false, 0);
  60. ^~~~~~~~~~~~~~~~~
  61. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  62. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  63. int vote(struct votable *votable, const char *client_str, bool state, int val);
  64. ^~~~
  65. drivers/power/qcom-charger/qpnp-smbcharger.c:3062:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  66. rc = vote(chip->dc_icl_votable, THERMAL_ICL_VOTER, false, 0);
  67. ^~~~~~~~~~~~~~~~~
  68. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  69. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  70. int vote(struct votable *votable, const char *client_str, bool state, int val);
  71. ^~~~
  72. drivers/power/qcom-charger/qpnp-smbcharger.c:3069:36: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  73. rc = vote(chip->usb_icl_votable, THERMAL_ICL_VOTER, true,
  74. ^~~~~~~~~~~~~~~~~
  75. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  76. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  77. int vote(struct votable *votable, const char *client_str, bool state, int val);
  78. ^~~~
  79. drivers/power/qcom-charger/qpnp-smbcharger.c:3074:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  80. rc = vote(chip->dc_icl_votable, THERMAL_ICL_VOTER, true,
  81. ^~~~~~~~~~~~~~~~~
  82. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  83. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  84. int vote(struct votable *votable, const char *client_str, bool state, int val);
  85. ^~~~
  86. drivers/power/qcom-charger/qpnp-smbcharger.c:3086:39: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  87. rc = vote(chip->dc_suspend_votable, THERMAL_EN_VOTER, false, 0);
  88. ^~~~~~~~~~~~~~~~
  89. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  90. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  91. int vote(struct votable *votable, const char *client_str, bool state, int val);
  92. ^~~~
  93. drivers/power/qcom-charger/qpnp-smbcharger.c:3092:40: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  94. rc = vote(chip->usb_suspend_votable, THERMAL_EN_VOTER,
  95. ^~~~~~~~~~~~~~~~
  96. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  97. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  98. int vote(struct votable *votable, const char *client_str, bool state, int val);
  99. ^~~~
  100. LD drivers/input/built-in.o
  101. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_aicl_deglitch_wa_en':
  102. drivers/power/qcom-charger/qpnp-smbcharger.c:3627:3: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  103. VARB_WORKAROUND_VOTER, en, 0);
  104. ^~~~~~~~~~~~~~~~~~~~~
  105. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  106. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  107. int vote(struct votable *votable, const char *client_str, bool state, int val);
  108. ^~~~
  109. drivers/power/qcom-charger/qpnp-smbcharger.c:3636:4: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  110. VARB_WORKAROUND_VOTER, en, 0);
  111. ^~~~~~~~~~~~~~~~~~~~~
  112. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  113. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  114. int vote(struct votable *votable, const char *client_str, bool state, int val);
  115. ^~~~
  116. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_config_chg_battery_type':
  117. 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]
  118. "bms", NULL);
  119. ^~~~~
  120. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:40:0:
  121. include/linux/of_batterydata.h:48:21: note: expected 'int' but argument is of type 'char *'
  122. struct device_node *of_batterydata_get_best_profile(
  123. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  124. drivers/power/qcom-charger/qpnp-smbcharger.c:3813:33: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  125. rc = vote(chip->fcc_votable, BATT_TYPE_FCC_VOTER, true,
  126. ^~~~~~~~~~~~~~~~~~~
  127. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  128. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  129. int vote(struct votable *votable, const char *client_str, bool state, int val);
  130. ^~~~
  131. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'check_battery_type':
  132. drivers/power/qcom-charger/qpnp-smbcharger.c:3838:3: error: 'rc' undeclared (first use in this function)
  133. rc = power_supply_get_property(chip->bms_psy,
  134. ^~
  135. drivers/power/qcom-charger/qpnp-smbcharger.c:3838:3: note: each undeclared identifier is reported only once for each function it appears in
  136. drivers/power/qcom-charger/qpnp-smbcharger.c:3844:5: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  137. BATTCHG_UNKNOWN_BATTERY_EN_VOTER, !en, 0);
  138. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  139. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  140. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  141. int vote(struct votable *votable, const char *client_str, bool state, int val);
  142. ^~~~
  143. drivers/power/qcom-charger/qpnp-smbcharger.c:3852:36: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  144. vote(chip->usb_suspend_votable, FAKE_BATTERY_EN_VOTER,
  145. ^~~~~~~~~~~~~~~~~~~~~
  146. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  147. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  148. int vote(struct votable *votable, const char *client_str, bool state, int val);
  149. ^~~~
  150. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_external_power_changed':
  151. drivers/power/qcom-charger/qpnp-smbcharger.c:4076:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  152. vote(chip->usb_suspend_votable, POWER_SUPPLY_EN_VOTER,
  153. ^~~~~~~~~~~~~~~~~~~~~
  154. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  155. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  156. int vote(struct votable *votable, const char *client_str, bool state, int val);
  157. ^~~~
  158. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_external_otg_regulator_enable':
  159. drivers/power/qcom-charger/qpnp-smbcharger.c:4190:39: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  160. rc = vote(chip->usb_suspend_votable, OTG_EN_VOTER, true, 0);
  161. ^~~~~~~~~~~~
  162. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  163. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  164. int vote(struct votable *votable, const char *client_str, bool state, int val);
  165. ^~~~
  166. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_external_otg_regulator_disable':
  167. drivers/power/qcom-charger/qpnp-smbcharger.c:4233:39: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  168. rc = vote(chip->usb_suspend_votable, OTG_EN_VOTER, false, 0);
  169. ^~~~~~~~~~~~
  170. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  171. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  172. int vote(struct votable *votable, const char *client_str, bool state, int val);
  173. ^~~~
  174. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_external_otg_regulator_is_enable':
  175. 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]
  176. return get_client_vote(chip->usb_suspend_votable, OTG_EN_VOTER);
  177. ^~~~~~~~~~~~
  178. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  179. drivers/power/qcom-charger/pmic-voter.h:27:5: note: expected 'const char *' but argument is of type 'int'
  180. int get_client_vote(struct votable *votable, const char *client_str);
  181. ^~~~~~~~~~~~~~~
  182. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_regulator_init':
  183. drivers/power/qcom-charger/qpnp-smbcharger.c:4287:14: error: too few arguments to function 'of_get_regulator_init_data'
  184. init_data = of_get_regulator_init_data(chip->dev, regulator_node);
  185. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  186. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:29:0:
  187. include/linux/regulator/of_regulator.h:21:3: note: declared here
  188. *of_get_regulator_init_data(struct device *dev,
  189. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  190. drivers/power/qcom-charger/qpnp-smbcharger.c:4327:14: error: too few arguments to function 'of_get_regulator_init_data'
  191. init_data = of_get_regulator_init_data(chip->dev, regulator_node);
  192. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  193. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:29:0:
  194. include/linux/regulator/of_regulator.h:21:3: note: declared here
  195. *of_get_regulator_init_data(struct device *dev,
  196. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  197. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_chg_led_brightness_set':
  198. drivers/power/qcom-charger/qpnp-smbcharger.c:4409:3: error: implicit declaration of function 'power_supply_set_hi_power_state' [-Werror=implicit-function-declaration]
  199. power_supply_set_hi_power_state(chip->bms_psy, 1);
  200. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  201. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_change_usb_supply_type':
  202. drivers/power/qcom-charger/qpnp-smbcharger.c:4857:3: error: implicit declaration of function 'power_supply_set_supply_type' [-Werror=implicit-function-declaration]
  203. power_supply_set_supply_type(chip->usb_psy, type);
  204. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  205. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'set_usb_psy_dp_dm':
  206. drivers/power/qcom-charger/qpnp-smbcharger.c:4960:9: error: implicit declaration of function 'power_supply_set_dp_dm' [-Werror=implicit-function-declaration]
  207. return power_supply_set_dp_dm(chip->usb_psy, state);
  208. ^~~~~~~~~~~~~~~~~~~~~~
  209. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'restore_from_hvdcp_detection':
  210. drivers/power/qcom-charger/qpnp-smbcharger.c:4971:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  211. rc = vote(chip->usb_icl_votable, HVDCP_ICL_VOTER, false, 0);
  212. ^~~~~~~~~~~~~~~
  213. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  214. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  215. int vote(struct votable *votable, const char *client_str, bool state, int val);
  216. ^~~~
  217. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_restricted_charging':
  218. drivers/power/qcom-charger/qpnp-smbcharger.c:5027:31: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  219. rc = vote(chip->fcc_votable, RESTRICTED_CHG_FCC_VOTER, enable,
  220. ^~~~~~~~~~~~~~~~~~~~~~~~
  221. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  222. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  223. int vote(struct votable *votable, const char *client_str, bool state, int val);
  224. ^~~~
  225. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'handle_usb_removal':
  226. drivers/power/qcom-charger/qpnp-smbcharger.c:5079:7: error: implicit declaration of function 'power_supply_set_health_state' [-Werror=implicit-function-declaration]
  227. rc = power_supply_set_health_state(chip->usb_psy,
  228. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  229. drivers/power/qcom-charger/qpnp-smbcharger.c:5095:30: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  230. vote(chip->usb_icl_votable, WEAK_CHARGER_ICL_VOTER, false, 0);
  231. ^~~~~~~~~~~~~~~~~~~~~~
  232. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  233. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  234. int vote(struct votable *votable, const char *client_str, bool state, int val);
  235. ^~~~
  236. drivers/power/qcom-charger/qpnp-smbcharger.c:5097:30: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  237. vote(chip->usb_icl_votable, SW_AICL_ICL_VOTER, false, 0);
  238. ^~~~~~~~~~~~~~~~~
  239. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  240. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  241. int vote(struct votable *votable, const char *client_str, bool state, int val);
  242. ^~~~
  243. drivers/power/qcom-charger/qpnp-smbcharger.c:5099:3: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  244. HVDCP_SHORT_DEGLITCH_VOTER, false, 0);
  245. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  246. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  247. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  248. int vote(struct votable *votable, const char *client_str, bool state, int val);
  249. ^~~~
  250. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_re_det_chg_type':
  251. drivers/power/qcom-charger/qpnp-smbcharger.c:5134:4: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  252. CHG_SUSPEND_WORKAROUND_ICL_VOTER, true, 300);
  253. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  254. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  255. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  256. int vote(struct votable *votable, const char *client_str, bool state, int val);
  257. ^~~~
  258. drivers/power/qcom-charger/qpnp-smbcharger.c:5146:4: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  259. CHG_SUSPEND_WORKAROUND_ICL_VOTER, false, 0);
  260. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  261. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  262. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  263. int vote(struct votable *votable, const char *client_str, bool state, int val);
  264. ^~~~
  265. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'increment_aicl_count':
  266. drivers/power/qcom-charger/qpnp-smbcharger.c:5433:5: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  267. WEAK_CHARGER_HW_AICL_VOTER, true, 0);
  268. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  269. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  270. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  271. int vote(struct votable *votable, const char *client_str, bool state, int val);
  272. ^~~~
  273. drivers/power/qcom-charger/qpnp-smbcharger.c:5441:37: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  274. rc = vote(chip->usb_icl_votable, WEAK_CHARGER_ICL_VOTER,
  275. ^~~~~~~~~~~~~~~~~~~~~~
  276. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  277. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  278. int vote(struct votable *votable, const char *client_str, bool state, int val);
  279. ^~~~
  280. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_prepare_for_pulsing':
  281. drivers/power/qcom-charger/qpnp-smbcharger.c:5652:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  282. rc = vote(chip->usb_icl_votable, HVDCP_ICL_VOTER, true, 300);
  283. ^~~~~~~~~~~~~~~
  284. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  285. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  286. int vote(struct votable *votable, const char *client_str, bool state, int val);
  287. ^~~~
  288. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_unprepare_for_pulsing':
  289. drivers/power/qcom-charger/qpnp-smbcharger.c:5819:3: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  290. HVDCP_SHORT_DEGLITCH_VOTER, true, 0);
  291. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  292. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  293. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  294. int vote(struct votable *votable, const char *client_str, bool state, int val);
  295. ^~~~
  296. drivers/power/qcom-charger/qpnp-smbcharger.c:5824:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  297. rc = vote(chip->usb_icl_votable, HVDCP_ICL_VOTER, false, 0);
  298. ^~~~~~~~~~~~~~~
  299. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  300. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  301. int vote(struct votable *votable, const char *client_str, bool state, int val);
  302. ^~~~
  303. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_prepare_for_pulsing_lite':
  304. drivers/power/qcom-charger/qpnp-smbcharger.c:5952:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  305. rc = vote(chip->usb_icl_votable, HVDCP_ICL_VOTER, true, 300);
  306. ^~~~~~~~~~~~~~~
  307. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  308. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  309. int vote(struct votable *votable, const char *client_str, bool state, int val);
  310. ^~~~
  311. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_unprepare_for_pulsing_lite':
  312. drivers/power/qcom-charger/qpnp-smbcharger.c:6020:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  313. rc = vote(chip->usb_icl_votable, HVDCP_ICL_VOTER, false, 0);
  314. ^~~~~~~~~~~~~~~
  315. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  316. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  317. int vote(struct votable *votable, const char *client_str, bool state, int val);
  318. ^~~~
  319. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_hvdcp3_confirmed':
  320. drivers/power/qcom-charger/qpnp-smbcharger.c:6073:35: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  321. rc = vote(chip->usb_icl_votable, HVDCP_ICL_VOTER, false, 0);
  322. ^~~~~~~~~~~~~~~
  323. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  324. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  325. int vote(struct votable *votable, const char *client_str, bool state, int val);
  326. ^~~~
  327. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_dp_dm':
  328. drivers/power/qcom-charger/qpnp-smbcharger.c:6135:31: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  329. vote(chip->usb_icl_votable, SW_AICL_ICL_VOTER, true,
  330. ^~~~~~~~~~~~~~~~~
  331. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  332. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  333. int vote(struct votable *votable, const char *client_str, bool state, int val);
  334. ^~~~
  335. drivers/power/qcom-charger/qpnp-smbcharger.c:6142:31: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  336. vote(chip->usb_icl_votable, SW_AICL_ICL_VOTER, true,
  337. ^~~~~~~~~~~~~~~~~
  338. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  339. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  340. int vote(struct votable *votable, const char *client_str, bool state, int val);
  341. ^~~~
  342. drivers/power/qcom-charger/qpnp-smbcharger.c: At top level:
  343. drivers/power/qcom-charger/qpnp-smbcharger.c:6248:2: error: 'POWER_SUPPLY_PROP_ALLOW_HVDCP3' undeclared here (not in a function)
  344. POWER_SUPPLY_PROP_ALLOW_HVDCP3,
  345. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  346. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_dc_set_property':
  347. drivers/power/qcom-charger/qpnp-smbcharger.c:6518:40: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  348. rc = vote(chip->dc_suspend_votable, POWER_SUPPLY_EN_VOTER,
  349. ^~~~~~~~~~~~~~~~~~~~~
  350. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  351. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  352. int vote(struct votable *votable, const char *client_str, bool state, int val);
  353. ^~~~
  354. drivers/power/qcom-charger/qpnp-smbcharger.c:6522:36: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  355. rc = vote(chip->dc_icl_votable, USER_ICL_VOTER, true,
  356. ^~~~~~~~~~~~~~
  357. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  358. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  359. int vote(struct votable *votable, const char *client_str, bool state, int val);
  360. ^~~~
  361. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'usbin_uv_handler':
  362. drivers/power/qcom-charger/qpnp-smbcharger.c:6956:6: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  363. WEAK_CHARGER_EN_VOTER, true, 0);
  364. ^~~~~~~~~~~~~~~~~~~~~
  365. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  366. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  367. int vote(struct votable *votable, const char *client_str, bool state, int val);
  368. ^~~~
  369. drivers/power/qcom-charger/qpnp-smbcharger.c:6966:5: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  370. WEAK_CHARGER_HW_AICL_VOTER, true, 0);
  371. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  372. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  373. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  374. int vote(struct votable *votable, const char *client_str, bool state, int val);
  375. ^~~~
  376. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'src_detect_handler':
  377. drivers/power/qcom-charger/qpnp-smbcharger.c:7033:3: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  378. WEAK_CHARGER_HW_AICL_VOTER, false, 0);
  379. ^~~~~~~~~~~~~~~~~~~~~~~~~~
  380. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  381. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  382. int vote(struct votable *votable, const char *client_str, bool state, int val);
  383. ^~~~
  384. drivers/power/qcom-charger/qpnp-smbcharger.c:7037:39: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  385. rc = vote(chip->usb_suspend_votable, WEAK_CHARGER_EN_VOTER, false, 0);
  386. ^~~~~~~~~~~~~~~~~~~~~
  387. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  388. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  389. int vote(struct votable *votable, const char *client_str, bool state, int val);
  390. ^~~~
  391. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'smbchg_hw_init':
  392. drivers/power/qcom-charger/qpnp-smbcharger.c:7686:31: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  393. rc = vote(chip->fcc_votable, BATT_TYPE_FCC_VOTER, true,500);
  394. ^~~~~~~~~~~~~~~~~~~
  395. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  396. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  397. int vote(struct votable *votable, const char *client_str, bool state, int val);
  398. ^~~~
  399. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'rerun_hvdcp_det_if_necessary':
  400. drivers/power/qcom-charger/qpnp-smbcharger.c:8528:5: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  401. CHG_SUSPEND_WORKAROUND_ICL_VOTER, true, 300);
  402. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  403. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  404. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  405. int vote(struct votable *votable, const char *client_str, bool state, int val);
  406. ^~~~
  407. drivers/power/qcom-charger/qpnp-smbcharger.c:8550:5: warning: passing argument 2 of 'vote' makes pointer from integer without a cast [-Wint-conversion]
  408. CHG_SUSPEND_WORKAROUND_ICL_VOTER, false, 0);
  409. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410. In file included from drivers/power/qcom-charger/qpnp-smbcharger.c:43:0:
  411. drivers/power/qcom-charger/pmic-voter.h:33:5: note: expected 'const char *' but argument is of type 'int'
  412. int vote(struct votable *votable, const char *client_str, bool state, int val);
  413. ^~~~
  414. drivers/power/qcom-charger/qpnp-smbcharger.c: In function 'qpnp_start_charging':
  415. drivers/power/qcom-charger/qpnp-smbcharger.c:8559:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  416. {
  417. ^
  418. drivers/power/qcom-charger/qpnp-smbcharger.c:8615:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  419. {
  420. ^
  421. drivers/power/qcom-charger/qpnp-smbcharger.c:8637:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  422. {
  423. ^
  424. drivers/power/qcom-charger/qpnp-smbcharger.c:8642:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  425. {
  426. ^
  427. drivers/power/qcom-charger/qpnp-smbcharger.c:8646:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  428. {
  429. ^
  430. drivers/power/qcom-charger/qpnp-smbcharger.c:8654:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  431. {
  432. ^
  433. drivers/power/qcom-charger/qpnp-smbcharger.c:8665:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  434. {
  435. ^
  436. drivers/power/qcom-charger/qpnp-smbcharger.c:8697:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  437. {
  438. ^
  439. drivers/power/qcom-charger/qpnp-smbcharger.c:8761:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  440. {
  441. ^
  442. drivers/power/qcom-charger/qpnp-smbcharger.c:8783:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  443. {
  444. ^
  445. drivers/power/qcom-charger/qpnp-smbcharger.c:8808:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  446. {
  447. ^
  448. drivers/power/qcom-charger/qpnp-smbcharger.c:8842:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  449. {
  450. ^
  451. drivers/power/qcom-charger/qpnp-smbcharger.c:8875:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  452. {
  453. ^
  454. drivers/power/qcom-charger/qpnp-smbcharger.c:8916:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  455. {
  456. ^
  457. drivers/power/qcom-charger/qpnp-smbcharger.c:8950:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  458. {
  459. ^
  460. drivers/power/qcom-charger/qpnp-smbcharger.c:8984:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  461. {
  462. ^
  463. drivers/power/qcom-charger/qpnp-smbcharger.c:9018:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  464. {
  465. ^
  466. drivers/power/qcom-charger/qpnp-smbcharger.c:9042:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  467. {
  468. ^
  469. drivers/power/qcom-charger/qpnp-smbcharger.c:9096:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  470. {
  471. ^
  472. drivers/power/qcom-charger/qpnp-smbcharger.c:9147:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  473. {
  474. ^
  475. drivers/power/qcom-charger/qpnp-smbcharger.c:9166:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  476. {
  477. ^
  478. drivers/power/qcom-charger/qpnp-smbcharger.c:9195:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  479. {
  480. ^
  481. drivers/power/qcom-charger/qpnp-smbcharger.c:9293:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  482. {
  483. ^
  484. drivers/power/qcom-charger/qpnp-smbcharger.c:9312:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  485. {
  486. ^
  487. drivers/power/qcom-charger/qpnp-smbcharger.c:9346:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  488. {
  489. ^
  490. drivers/power/qcom-charger/qpnp-smbcharger.c:9501:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  491. {
  492. ^
  493. drivers/power/qcom-charger/qpnp-smbcharger.c:9527:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  494. {
  495. ^
  496. drivers/power/qcom-charger/qpnp-smbcharger.c:9536:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  497. {
  498. ^
  499. drivers/power/qcom-charger/qpnp-smbcharger.c:9545:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  500. {
  501. ^
  502. drivers/power/qcom-charger/qpnp-smbcharger.c:9551:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  503. {
  504. ^
  505. drivers/power/qcom-charger/qpnp-smbcharger.c:9570:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  506. {
  507. ^
  508. drivers/power/qcom-charger/qpnp-smbcharger.c:9576:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  509. {
  510. ^
  511. drivers/power/qcom-charger/qpnp-smbcharger.c:9583:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  512. {
  513. ^
  514. drivers/power/qcom-charger/qpnp-smbcharger.c:9590:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  515. {
  516. ^
  517. drivers/power/qcom-charger/qpnp-smbcharger.c:9611:33: error: storage class specified for parameter 'notify_unplug_event'
  518. static struct notify_dash_event notify_unplug_event = {
  519. ^~~~~~~~~~~~~~~~~~~
  520. drivers/power/qcom-charger/qpnp-smbcharger.c:9611:15: error: parameter 'notify_unplug_event' is initialized
  521. static struct notify_dash_event notify_unplug_event = {
  522. ^~~~~~~~~~~~~~~~~
  523. drivers/power/qcom-charger/qpnp-smbcharger.c:9617:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  524. {
  525. ^
  526. drivers/power/qcom-charger/qpnp-smbcharger.c:9687:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  527. {
  528. ^
  529. drivers/power/qcom-charger/qpnp-smbcharger.c:9697:37: error: storage class specified for parameter 'proc_ship_mode_operations'
  530. static const struct file_operations proc_ship_mode_operations = {
  531. ^~~~~~~~~~~~~~~~~~~~~~~~~
  532. drivers/power/qcom-charger/qpnp-smbcharger.c:9697:21: error: parameter 'proc_ship_mode_operations' is initialized
  533. static const struct file_operations proc_ship_mode_operations = {
  534. ^~~~~~~~~~~~~~~
  535. drivers/power/qcom-charger/qpnp-smbcharger.c:9698:12: error: 'write_ship_mode' undeclared (first use in this function)
  536. .write = write_ship_mode,
  537. ^~~~~~~~~~~~~~~
  538. drivers/power/qcom-charger/qpnp-smbcharger.c:9698:12: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  539. drivers/power/qcom-charger/qpnp-smbcharger.c:9698:12: note: (near initialization for 'proc_ship_mode_operations.write')
  540. drivers/power/qcom-charger/qpnp-smbcharger.c:9706:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  541. {
  542. ^
  543. In file included from include/linux/module.h:18:0,
  544. from include/linux/gpio/driver.h:5,
  545. from include/asm-generic/gpio.h:12,
  546. from ./arch/arm64/include/asm/gpio.h:15,
  547. from include/linux/gpio.h:48,
  548. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  549. include/linux/moduleparam.h:229:39: error: storage class specified for parameter '__param_ops_usb_redetec'
  550. static const struct kernel_param_ops __param_ops_##name = \
  551. ^
  552. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  553. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  554. ^~~~~~~~~~~~~~~~~
  555. include/linux/moduleparam.h:229:22: error: parameter '__param_ops_usb_redetec' is initialized
  556. static const struct kernel_param_ops __param_ops_##name = \
  557. ^
  558. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  559. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  560. ^~~~~~~~~~~~~~~~~
  561. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:32: error: 'set_usb_redetec' undeclared (first use in this function)
  562. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  563. ^
  564. include/linux/moduleparam.h:230:25: note: in definition of macro 'module_param_call'
  565. { .flags = 0, (void *)set, (void *)get }; \
  566. ^~~
  567. include/linux/moduleparam.h:220:20: error: storage class specified for parameter '__param_str_usb_redetec'
  568. static const char __param_str_##name[] = prefix #name; \
  569. ^
  570. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  571. __module_param_call(MODULE_PARAM_PREFIX, \
  572. ^~~~~~~~~~~~~~~~~~~
  573. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  574. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  575. ^~~~~~~~~~~~~~~~~
  576. CC drivers/media/platform/msm/camera_v2/common/cam_soc_api.o
  577. include/linux/moduleparam.h:229:22: error: parameter '__param_str_usb_redetec' is initialized
  578. static const struct kernel_param_ops __param_ops_##name = \
  579. ^
  580. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  581. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  582. ^~~~~~~~~~~~~~~~~
  583. include/linux/moduleparam.h:221:49: error: storage class specified for parameter '__param_usb_redetec'
  584. static struct kernel_param __moduleparam_const __param_##name \
  585. ^
  586. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  587. __module_param_call(MODULE_PARAM_PREFIX, \
  588. ^~~~~~~~~~~~~~~~~~~
  589. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  590. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  591. ^~~~~~~~~~~~~~~~~
  592. include/linux/moduleparam.h:221:16: error: parameter '__param_usb_redetec' is initialized
  593. static struct kernel_param __moduleparam_const __param_##name \
  594. ^
  595. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  596. __module_param_call(MODULE_PARAM_PREFIX, \
  597. ^~~~~~~~~~~~~~~~~~~
  598. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  599. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  600. ^~~~~~~~~~~~~~~~~
  601. include/linux/moduleparam.h:221:16: warning: '__used__' attribute ignored [-Wattributes]
  602. static struct kernel_param __moduleparam_const __param_##name \
  603. ^
  604. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  605. __module_param_call(MODULE_PARAM_PREFIX, \
  606. ^~~~~~~~~~~~~~~~~~~
  607. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  608. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  609. ^~~~~~~~~~~~~~~~~
  610. include/linux/moduleparam.h:221:49: error: section attribute not allowed for '__param_usb_redetec'
  611. static struct kernel_param __moduleparam_const __param_##name \
  612. ^
  613. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  614. __module_param_call(MODULE_PARAM_PREFIX, \
  615. ^~~~~~~~~~~~~~~~~~~
  616. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  617. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  618. ^~~~~~~~~~~~~~~~~
  619. include/linux/moduleparam.h:221:49: error: alignment may not be specified for '__param_usb_redetec'
  620. static struct kernel_param __moduleparam_const __param_##name \
  621. ^
  622. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  623. __module_param_call(MODULE_PARAM_PREFIX, \
  624. ^~~~~~~~~~~~~~~~~~~
  625. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  626. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  627. ^~~~~~~~~~~~~~~~~
  628. In file included from include/linux/thread_info.h:11:0,
  629. from include/asm-generic/preempt.h:4,
  630. from arch/arm64/include/generated/asm/preempt.h:1,
  631. from include/linux/preempt.h:59,
  632. from include/linux/spinlock.h:50,
  633. from include/linux/rcupdate.h:38,
  634. from include/linux/rbtree.h:34,
  635. from include/linux/regmap.h:17,
  636. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  637. 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]
  638. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  639. ^
  640. include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
  641. #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
  642. ^
  643. include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
  644. VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
  645. ^~~~~~~~~~~~~~~~~~~~~~~~
  646. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  647. __module_param_call(MODULE_PARAM_PREFIX, \
  648. ^~~~~~~~~~~~~~~~~~~
  649. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  650. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  651. ^~~~~~~~~~~~~~~~~
  652. In file included from include/linux/module.h:18:0,
  653. from include/linux/gpio/driver.h:5,
  654. from include/asm-generic/gpio.h:12,
  655. from ./arch/arm64/include/asm/gpio.h:15,
  656. from include/linux/gpio.h:48,
  657. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  658. include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
  659. __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
  660. ^~~~~~~~~~~~~~~~~~~~~
  661. In file included from include/linux/thread_info.h:11:0,
  662. from include/asm-generic/preempt.h:4,
  663. from arch/arm64/include/generated/asm/preempt.h:1,
  664. from include/linux/preempt.h:59,
  665. from include/linux/spinlock.h:50,
  666. from include/linux/rcupdate.h:38,
  667. from include/linux/rbtree.h:34,
  668. from include/linux/regmap.h:17,
  669. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  670. 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]
  671. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  672. ^
  673. include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
  674. #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
  675. ^
  676. include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
  677. VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
  678. ^~~~~~~~~~~~~~~~~~~~~~~~
  679. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  680. __module_param_call(MODULE_PARAM_PREFIX, \
  681. ^~~~~~~~~~~~~~~~~~~
  682. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  683. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  684. ^~~~~~~~~~~~~~~~~
  685. In file included from include/linux/module.h:18:0,
  686. from include/linux/gpio/driver.h:5,
  687. from include/asm-generic/gpio.h:12,
  688. from ./arch/arm64/include/asm/gpio.h:15,
  689. from include/linux/gpio.h:48,
  690. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  691. include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
  692. __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
  693. ^~~~~~~~~~~~~~~~~~~~~
  694. In file included from include/linux/thread_info.h:11:0,
  695. from include/asm-generic/preempt.h:4,
  696. from arch/arm64/include/generated/asm/preempt.h:1,
  697. from include/linux/preempt.h:59,
  698. from include/linux/spinlock.h:50,
  699. from include/linux/rcupdate.h:38,
  700. from include/linux/rbtree.h:34,
  701. from include/linux/regmap.h:17,
  702. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  703. 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]
  704. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  705. ^
  706. include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
  707. #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
  708. ^
  709. include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
  710. VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
  711. ^~~~~~~~~~~~~~~~~~~~~~~~
  712. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  713. __module_param_call(MODULE_PARAM_PREFIX, \
  714. ^~~~~~~~~~~~~~~~~~~
  715. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  716. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  717. ^~~~~~~~~~~~~~~~~
  718. In file included from include/linux/module.h:18:0,
  719. from include/linux/gpio/driver.h:5,
  720. from include/asm-generic/gpio.h:12,
  721. from ./arch/arm64/include/asm/gpio.h:15,
  722. from include/linux/gpio.h:48,
  723. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  724. include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
  725. __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
  726. ^~~~~~~~~~~~~~~~~~~~~
  727. In file included from include/linux/thread_info.h:11:0,
  728. from include/asm-generic/preempt.h:4,
  729. from arch/arm64/include/generated/asm/preempt.h:1,
  730. from include/linux/preempt.h:59,
  731. from include/linux/spinlock.h:50,
  732. from include/linux/rcupdate.h:38,
  733. from include/linux/rbtree.h:34,
  734. from include/linux/regmap.h:17,
  735. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  736. 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]
  737. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  738. ^
  739. include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
  740. #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
  741. ^
  742. include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
  743. VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
  744. ^~~~~~~~~~~~~~~~~~~~~~~~
  745. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  746. __module_param_call(MODULE_PARAM_PREFIX, \
  747. ^~~~~~~~~~~~~~~~~~~
  748. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  749. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  750. ^~~~~~~~~~~~~~~~~
  751. In file included from include/linux/module.h:18:0,
  752. from include/linux/gpio/driver.h:5,
  753. from include/asm-generic/gpio.h:12,
  754. from ./arch/arm64/include/asm/gpio.h:15,
  755. from include/linux/gpio.h:48,
  756. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  757. include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
  758. __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
  759. ^~~~~~~~~~~~~~~~~~~~~
  760. In file included from include/linux/thread_info.h:11:0,
  761. from include/asm-generic/preempt.h:4,
  762. from arch/arm64/include/generated/asm/preempt.h:1,
  763. from include/linux/preempt.h:59,
  764. from include/linux/spinlock.h:50,
  765. from include/linux/rcupdate.h:38,
  766. from include/linux/rbtree.h:34,
  767. from include/linux/regmap.h:17,
  768. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  769. 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]
  770. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  771. ^
  772. include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
  773. #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
  774. ^
  775. include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
  776. VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
  777. ^~~~~~~~~~~~~~~~~~~~~~~~
  778. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  779. __module_param_call(MODULE_PARAM_PREFIX, \
  780. ^~~~~~~~~~~~~~~~~~~
  781. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  782. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  783. ^~~~~~~~~~~~~~~~~
  784. In file included from include/linux/module.h:18:0,
  785. from include/linux/gpio/driver.h:5,
  786. from include/asm-generic/gpio.h:12,
  787. from ./arch/arm64/include/asm/gpio.h:15,
  788. from include/linux/gpio.h:48,
  789. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  790. include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
  791. __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
  792. ^~~~~~~~~~~~~~~~~~~~~
  793. In file included from include/linux/thread_info.h:11:0,
  794. from include/asm-generic/preempt.h:4,
  795. from arch/arm64/include/generated/asm/preempt.h:1,
  796. from include/linux/preempt.h:59,
  797. from include/linux/spinlock.h:50,
  798. from include/linux/rcupdate.h:38,
  799. from include/linux/rbtree.h:34,
  800. from include/linux/regmap.h:17,
  801. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  802. 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]
  803. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  804. ^
  805. include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
  806. #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
  807. ^
  808. include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
  809. VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
  810. ^~~~~~~~~~~~~~~~~~~~~~~~
  811. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  812. __module_param_call(MODULE_PARAM_PREFIX, \
  813. ^~~~~~~~~~~~~~~~~~~
  814. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  815. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  816. ^~~~~~~~~~~~~~~~~
  817. In file included from include/linux/module.h:18:0,
  818. from include/linux/gpio/driver.h:5,
  819. from include/asm-generic/gpio.h:12,
  820. from ./arch/arm64/include/asm/gpio.h:15,
  821. from include/linux/gpio.h:48,
  822. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  823. include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
  824. __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
  825. ^~~~~~~~~~~~~~~~~~~~~
  826. In file included from include/linux/thread_info.h:11:0,
  827. from include/asm-generic/preempt.h:4,
  828. from arch/arm64/include/generated/asm/preempt.h:1,
  829. from include/linux/preempt.h:59,
  830. from include/linux/spinlock.h:50,
  831. from include/linux/rcupdate.h:38,
  832. from include/linux/rbtree.h:34,
  833. from include/linux/regmap.h:17,
  834. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  835. 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]
  836. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  837. ^
  838. include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
  839. #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
  840. ^
  841. include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
  842. VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
  843. ^~~~~~~~~~~~~~~~~~~~~~~~
  844. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  845. __module_param_call(MODULE_PARAM_PREFIX, \
  846. ^~~~~~~~~~~~~~~~~~~
  847. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  848. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  849. ^~~~~~~~~~~~~~~~~
  850. In file included from include/linux/module.h:18:0,
  851. from include/linux/gpio/driver.h:5,
  852. from include/asm-generic/gpio.h:12,
  853. from ./arch/arm64/include/asm/gpio.h:15,
  854. from include/linux/gpio.h:48,
  855. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  856. include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
  857. __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
  858. ^~~~~~~~~~~~~~~~~~~~~
  859. In file included from include/linux/thread_info.h:11:0,
  860. from include/asm-generic/preempt.h:4,
  861. from arch/arm64/include/generated/asm/preempt.h:1,
  862. from include/linux/preempt.h:59,
  863. from include/linux/spinlock.h:50,
  864. from include/linux/rcupdate.h:38,
  865. from include/linux/rbtree.h:34,
  866. from include/linux/regmap.h:17,
  867. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  868. 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]
  869. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  870. ^
  871. include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
  872. #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
  873. ^
  874. include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
  875. VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
  876. ^~~~~~~~~~~~~~~~~~~~~~~~
  877. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  878. __module_param_call(MODULE_PARAM_PREFIX, \
  879. ^~~~~~~~~~~~~~~~~~~
  880. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  881. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  882. ^~~~~~~~~~~~~~~~~
  883. In file included from include/linux/module.h:18:0,
  884. from include/linux/gpio/driver.h:5,
  885. from include/asm-generic/gpio.h:12,
  886. from ./arch/arm64/include/asm/gpio.h:15,
  887. from include/linux/gpio.h:48,
  888. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  889. include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
  890. __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
  891. ^~~~~~~~~~~~~~~~~~~~~
  892. LD drivers/media/platform/msm/camera_v2/camera/built-in.o
  893. In file included from include/linux/thread_info.h:11:0,
  894. from include/asm-generic/preempt.h:4,
  895. from arch/arm64/include/generated/asm/preempt.h:1,
  896. from include/linux/preempt.h:59,
  897. from include/linux/spinlock.h:50,
  898. from include/linux/rcupdate.h:38,
  899. from include/linux/rbtree.h:34,
  900. from include/linux/regmap.h:17,
  901. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  902. 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]
  903. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  904. ^
  905. include/linux/bug.h:33:55: note: in definition of macro 'BUILD_BUG_ON_ZERO'
  906. #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
  907. ^
  908. include/linux/moduleparam.h:225:6: note: in expansion of macro 'VERIFY_OCTAL_PERMISSIONS'
  909. VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } }
  910. ^~~~~~~~~~~~~~~~~~~~~~~~
  911. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  912. __module_param_call(MODULE_PARAM_PREFIX, \
  913. ^~~~~~~~~~~~~~~~~~~
  914. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  915. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  916. ^~~~~~~~~~~~~~~~~
  917. In file included from include/linux/module.h:18:0,
  918. from include/linux/gpio/driver.h:5,
  919. from include/asm-generic/gpio.h:12,
  920. from ./arch/arm64/include/asm/gpio.h:15,
  921. from include/linux/gpio.h:48,
  922. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  923. include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
  924. __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
  925. ^~~~~~~~~~~~~~~~~~~~~
  926. In file included from include/linux/list.h:8:0,
  927. from include/linux/regmap.h:16,
  928. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  929. 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]
  930. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  931. ^
  932. include/linux/kernel.h:832:4: note: in definition of macro 'VERIFY_OCTAL_PERMISSIONS'
  933. (perms))
  934. ^~~~~
  935. include/linux/moduleparam.h:231:2: note: in expansion of macro '__module_param_call'
  936. __module_param_call(MODULE_PARAM_PREFIX, \
  937. ^~~~~~~~~~~~~~~~~~~
  938. drivers/power/qcom-charger/qpnp-smbcharger.c:9723:1: note: in expansion of macro 'module_param_call'
  939. module_param_call(usb_redetec, set_usb_redetec, NULL, NULL, 0644);
  940. ^~~~~~~~~~~~~~~~~
  941. In file included from include/linux/module.h:18:0,
  942. from include/linux/gpio/driver.h:5,
  943. from include/asm-generic/gpio.h:12,
  944. from ./arch/arm64/include/asm/gpio.h:15,
  945. from include/linux/gpio.h:48,
  946. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  947. include/linux/moduleparam.h:237:1: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'enum power_supply_property *'
  948. __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
  949. ^~~~~~~~~~~~~~~~~~~~~
  950. drivers/power/qcom-charger/qpnp-smbcharger.c:9726:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  951. {
  952. ^
  953. drivers/power/qcom-charger/qpnp-smbcharger.c:9732:45: error: storage class specified for parameter 'usb_enumeration'
  954. static struct notify_usb_enumeration_status usb_enumeration = {
  955. ^~~~~~~~~~~~~~~
  956. drivers/power/qcom-charger/qpnp-smbcharger.c:9732:15: error: parameter 'usb_enumeration' is initialized
  957. static struct notify_usb_enumeration_status usb_enumeration = {
  958. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  959. drivers/power/qcom-charger/qpnp-smbcharger.c:9733:39: error: 'notify_usb_enumeration_function' undeclared (first use in this function)
  960. .notify_usb_enumeration = notify_usb_enumeration_function,
  961. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  962. drivers/power/qcom-charger/qpnp-smbcharger.c:9733:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  963. drivers/power/qcom-charger/qpnp-smbcharger.c:9733:39: note: (near initialization for 'usb_enumeration.notify_usb_enumeration')
  964. drivers/power/qcom-charger/qpnp-smbcharger.c:9736:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  965. {
  966. ^
  967. drivers/power/qcom-charger/qpnp-smbcharger.c:10084:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  968. {
  969. ^
  970. drivers/power/qcom-charger/qpnp-smbcharger.c:10098:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  971. {
  972. ^
  973. drivers/power/qcom-charger/qpnp-smbcharger.c:10216:32: error: storage class specified for parameter 'smbchg_pm_ops'
  974. static const struct dev_pm_ops smbchg_pm_ops = {
  975. ^~~~~~~~~~~~~
  976. drivers/power/qcom-charger/qpnp-smbcharger.c:10216:21: error: parameter 'smbchg_pm_ops' is initialized
  977. static const struct dev_pm_ops smbchg_pm_ops = {
  978. ^~~~~~~~~~
  979. drivers/power/qcom-charger/qpnp-smbcharger.c:10219:37: error: expected declaration specifiers before ';' token
  980. MODULE_DEVICE_TABLE(spmi, smbchg_id);
  981. ^
  982. drivers/power/qcom-charger/qpnp-smbcharger.c:10221:31: error: storage class specified for parameter 'smbchg_driver'
  983. static struct platform_driver smbchg_driver = {
  984. ^~~~~~~~~~~~~
  985. drivers/power/qcom-charger/qpnp-smbcharger.c:10221:15: error: parameter 'smbchg_driver' is initialized
  986. static struct platform_driver smbchg_driver = {
  987. ^~~~~~~~~~~~~~~
  988. drivers/power/qcom-charger/qpnp-smbcharger.c:10228:12: error: 'smbchg_probe' undeclared (first use in this function)
  989. .probe = smbchg_probe,
  990. ^~~~~~~~~~~~
  991. drivers/power/qcom-charger/qpnp-smbcharger.c:10228:12: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  992. drivers/power/qcom-charger/qpnp-smbcharger.c:10228:12: note: (near initialization for 'smbchg_driver.probe')
  993. drivers/power/qcom-charger/qpnp-smbcharger.c:10229:13: error: 'smbchg_remove' undeclared (first use in this function)
  994. .remove = smbchg_remove,
  995. ^~~~~~~~~~~~~
  996. drivers/power/qcom-charger/qpnp-smbcharger.c:10229:13: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  997. drivers/power/qcom-charger/qpnp-smbcharger.c:10229:13: note: (near initialization for 'smbchg_driver.remove')
  998. drivers/power/qcom-charger/qpnp-smbcharger.c:10230:14: error: 'smbchg_shutdown' undeclared (first use in this function)
  999. .shutdown = smbchg_shutdown,
  1000. ^~~~~~~~~~~~~~~
  1001. drivers/power/qcom-charger/qpnp-smbcharger.c:10230:14: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  1002. drivers/power/qcom-charger/qpnp-smbcharger.c:10230:14: note: (near initialization for 'smbchg_driver.shutdown')
  1003. drivers/power/qcom-charger/qpnp-smbcharger.c:10234:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  1004. {
  1005. ^
  1006. drivers/power/qcom-charger/qpnp-smbcharger.c:10239:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  1007. {
  1008. ^
  1009. In file included from include/linux/printk.h:5:0,
  1010. from include/linux/kernel.h:13,
  1011. from include/linux/list.h:8,
  1012. from include/linux/regmap.h:16,
  1013. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  1014. include/linux/init.h:187:20: error: storage class specified for parameter '__initcall_smbchg_init6'
  1015. static initcall_t __initcall_##fn##id __used \
  1016. ^
  1017. include/linux/init.h:218:30: note: in expansion of macro '__define_initcall'
  1018. #define device_initcall(fn) __define_initcall(fn, 6)
  1019. ^~~~~~~~~~~~~~~~~
  1020. include/linux/init.h:223:24: note: in expansion of macro 'device_initcall'
  1021. #define __initcall(fn) device_initcall(fn)
  1022. ^~~~~~~~~~~~~~~
  1023. include/linux/module.h:84:24: note: in expansion of macro '__initcall'
  1024. #define module_init(x) __initcall(x);
  1025. ^~~~~~~~~~
  1026. drivers/power/qcom-charger/qpnp-smbcharger.c:10243:1: note: in expansion of macro 'module_init'
  1027. module_init(smbchg_init);
  1028. ^~~~~~~~~~~
  1029. drivers/power/qcom-charger/qpnp-smbcharger.c:10243:1: error: parameter '__initcall_smbchg_init6' is initialized
  1030. drivers/power/qcom-charger/qpnp-smbcharger.c:10243:1: warning: '__used__' attribute ignored [-Wattributes]
  1031. In file included from include/linux/printk.h:5:0,
  1032. from include/linux/kernel.h:13,
  1033. from include/linux/list.h:8,
  1034. from include/linux/regmap.h:16,
  1035. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  1036. include/linux/init.h:187:20: error: section attribute not allowed for '__initcall_smbchg_init6'
  1037. static initcall_t __initcall_##fn##id __used \
  1038. ^
  1039. include/linux/init.h:218:30: note: in expansion of macro '__define_initcall'
  1040. #define device_initcall(fn) __define_initcall(fn, 6)
  1041. ^~~~~~~~~~~~~~~~~
  1042. include/linux/init.h:223:24: note: in expansion of macro 'device_initcall'
  1043. #define __initcall(fn) device_initcall(fn)
  1044. ^~~~~~~~~~~~~~~
  1045. include/linux/module.h:84:24: note: in expansion of macro '__initcall'
  1046. #define module_init(x) __initcall(x);
  1047. ^~~~~~~~~~
  1048. drivers/power/qcom-charger/qpnp-smbcharger.c:10243:1: note: in expansion of macro 'module_init'
  1049. module_init(smbchg_init);
  1050. ^~~~~~~~~~~
  1051. drivers/power/qcom-charger/qpnp-smbcharger.c:10243:13: error: 'smbchg_init' undeclared (first use in this function)
  1052. module_init(smbchg_init);
  1053. ^
  1054. include/linux/init.h:188:58: note: in definition of macro '__define_initcall'
  1055. __attribute__((__section__(".initcall" #id ".init"))) = fn; \
  1056. ^~
  1057. include/linux/init.h:223:24: note: in expansion of macro 'device_initcall'
  1058. #define __initcall(fn) device_initcall(fn)
  1059. ^~~~~~~~~~~~~~~
  1060. include/linux/module.h:84:24: note: in expansion of macro '__initcall'
  1061. #define module_init(x) __initcall(x);
  1062. ^~~~~~~~~~
  1063. drivers/power/qcom-charger/qpnp-smbcharger.c:10243:1: note: in expansion of macro 'module_init'
  1064. module_init(smbchg_init);
  1065. ^~~~~~~~~~~
  1066. In file included from include/linux/gpio/driver.h:5:0,
  1067. from include/asm-generic/gpio.h:12,
  1068. from ./arch/arm64/include/asm/gpio.h:15,
  1069. from include/linux/gpio.h:48,
  1070. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  1071. include/linux/module.h:84:37: error: expected declaration specifiers before ';' token
  1072. #define module_init(x) __initcall(x);
  1073. ^
  1074. drivers/power/qcom-charger/qpnp-smbcharger.c:10243:1: note: in expansion of macro 'module_init'
  1075. module_init(smbchg_init);
  1076. ^~~~~~~~~~~
  1077. drivers/power/qcom-charger/qpnp-smbcharger.c:10243:25: error: expected declaration specifiers before ';' token
  1078. module_init(smbchg_init);
  1079. ^
  1080. In file included from include/linux/printk.h:5:0,
  1081. from include/linux/kernel.h:13,
  1082. from include/linux/list.h:8,
  1083. from include/linux/regmap.h:16,
  1084. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  1085. include/linux/init.h:226:20: error: storage class specified for parameter '__exitcall_smbchg_exit'
  1086. static exitcall_t __exitcall_##fn __exit_call = fn
  1087. ^
  1088. include/linux/module.h:96:24: note: in expansion of macro '__exitcall'
  1089. #define module_exit(x) __exitcall(x);
  1090. ^~~~~~~~~~
  1091. drivers/power/qcom-charger/qpnp-smbcharger.c:10244:1: note: in expansion of macro 'module_exit'
  1092. module_exit(smbchg_exit);
  1093. ^~~~~~~~~~~
  1094. drivers/power/qcom-charger/qpnp-smbcharger.c:10244:1: error: parameter '__exitcall_smbchg_exit' is initialized
  1095. drivers/power/qcom-charger/qpnp-smbcharger.c:10244:1: warning: '__used__' attribute ignored [-Wattributes]
  1096. In file included from include/linux/printk.h:5:0,
  1097. from include/linux/kernel.h:13,
  1098. from include/linux/list.h:8,
  1099. from include/linux/regmap.h:16,
  1100. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  1101. include/linux/init.h:226:20: error: section attribute not allowed for '__exitcall_smbchg_exit'
  1102. static exitcall_t __exitcall_##fn __exit_call = fn
  1103. ^
  1104. include/linux/module.h:96:24: note: in expansion of macro '__exitcall'
  1105. #define module_exit(x) __exitcall(x);
  1106. ^~~~~~~~~~
  1107. drivers/power/qcom-charger/qpnp-smbcharger.c:10244:1: note: in expansion of macro 'module_exit'
  1108. module_exit(smbchg_exit);
  1109. ^~~~~~~~~~~
  1110. drivers/power/qcom-charger/qpnp-smbcharger.c:10244:13: error: 'smbchg_exit' undeclared (first use in this function)
  1111. module_exit(smbchg_exit);
  1112. ^
  1113. include/linux/init.h:226:50: note: in definition of macro '__exitcall'
  1114. static exitcall_t __exitcall_##fn __exit_call = fn
  1115. ^~
  1116. drivers/power/qcom-charger/qpnp-smbcharger.c:10244:1: note: in expansion of macro 'module_exit'
  1117. module_exit(smbchg_exit);
  1118. ^~~~~~~~~~~
  1119. drivers/power/qcom-charger/qpnp-smbcharger.c:10244:25: error: expected declaration specifiers before ';' token
  1120. module_exit(smbchg_exit);
  1121. ^
  1122. In file included from include/linux/module.h:18:0,
  1123. from include/linux/gpio/driver.h:5,
  1124. from include/asm-generic/gpio.h:12,
  1125. from ./arch/arm64/include/asm/gpio.h:15,
  1126. from include/linux/gpio.h:48,
  1127. from drivers/power/qcom-charger/qpnp-smbcharger.c:16:
  1128. include/linux/moduleparam.h:27:3: warning: empty declaration
  1129. struct __UNIQUE_ID(name) {}
  1130. ^
  1131. include/linux/module.h:171:32: note: in expansion of macro '__MODULE_INFO'
  1132. #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
  1133. ^~~~~~~~~~~~~
  1134. include/linux/module.h:218:42: note: in expansion of macro 'MODULE_INFO'
  1135. #define MODULE_DESCRIPTION(_description) MODULE_INFO(description, _description)
  1136. ^~~~~~~~~~~
  1137. drivers/power/qcom-charger/qpnp-smbcharger.c:10246:1: note: in expansion of macro 'MODULE_DESCRIPTION'
  1138. MODULE_DESCRIPTION("QPNP SMB Charger");
  1139. ^~~~~~~~~~~~~~~~~~
  1140. include/linux/moduleparam.h:27:3: warning: empty declaration
  1141. struct __UNIQUE_ID(name) {}
  1142. ^
  1143. include/linux/module.h:171:32: note: in expansion of macro '__MODULE_INFO'
  1144. #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
  1145. ^~~~~~~~~~~~~
  1146. include/linux/module.h:209:34: note: in expansion of macro 'MODULE_INFO'
  1147. #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
  1148. ^~~~~~~~~~~
  1149. drivers/power/qcom-charger/qpnp-smbcharger.c:10247:1: note: in expansion of macro 'MODULE_LICENSE'
  1150. MODULE_LICENSE("GPL v2");
  1151. ^~~~~~~~~~~~~~
  1152. include/linux/moduleparam.h:27:3: warning: empty declaration
  1153. struct __UNIQUE_ID(name) {}
  1154. ^
  1155. include/linux/module.h:171:32: note: in expansion of macro '__MODULE_INFO'
  1156. #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
  1157. ^~~~~~~~~~~~~
  1158. include/linux/module.h:174:30: note: in expansion of macro 'MODULE_INFO'
  1159. #define MODULE_ALIAS(_alias) MODULE_INFO(alias, _alias)
  1160. ^~~~~~~~~~~
  1161. drivers/power/qcom-charger/qpnp-smbcharger.c:10248:1: note: in expansion of macro 'MODULE_ALIAS'
  1162. MODULE_ALIAS("platform:qpnp-smbcharger");
  1163. ^~~~~~~~~~~~
  1164. drivers/power/qcom-charger/qpnp-smbcharger.c:8557:12: error: old-style parameter declarations in prototyped function definition
  1165. static int qpnp_start_charging(struct smbchg_chip *chip)
  1166. ^~~~~~~~~~~~~~~~~~~
  1167. In file included from include/uapi/linux/stddef.h:1:0,
  1168. from include/linux/stddef.h:4,
  1169. from ./include/uapi/linux/posix_types.h:4,
  1170. from include/uapi/linux/types.h:13,
  1171. from include/linux/types.h:5,
  1172. from include/linux/list.h:4,
  1173. from include/linux/regmap.h:16,
  1174. from drivers/power/qcom-charger/qpnp-smbcharger.c:14:
  1175. include/linux/compiler-gcc.h:181:45: error: expected '{' at end of input
  1176. #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
  1177. ^
  1178. include/linux/compiler.h:50:23: note: in definition of macro '___PASTE'
  1179. #define ___PASTE(a,b) a##b
  1180. ^
  1181. include/linux/compiler-gcc.h:181:29: note: in expansion of macro '__PASTE'
  1182. #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
  1183. ^~~~~~~
  1184. include/linux/compiler.h:51:22: note: in expansion of macro '___PASTE'
  1185. #define __PASTE(a,b) ___PASTE(a,b)
  1186. ^~~~~~~~
  1187. include/linux/compiler-gcc.h:181:37: note: in expansion of macro '__PASTE'
  1188. #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
  1189. ^~~~~~~
  1190. include/linux/moduleparam.h:27:10: note: in expansion of macro '__UNIQUE_ID'
  1191. struct __UNIQUE_ID(name) {}
  1192. ^~~~~~~~~~~
  1193. include/linux/module.h:171:32: note: in expansion of macro '__MODULE_INFO'
  1194. #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
  1195. ^~~~~~~~~~~~~
  1196. include/linux/module.h:174:30: note: in expansion of macro 'MODULE_INFO'
  1197. #define MODULE_ALIAS(_alias) MODULE_INFO(alias, _alias)
  1198. ^~~~~~~~~~~
  1199. drivers/power/qcom-charger/qpnp-smbcharger.c:10248:1: note: in expansion of macro 'MODULE_ALIAS'
  1200. MODULE_ALIAS("platform:qpnp-smbcharger");
  1201. ^~~~~~~~~~~~
  1202. include/linux/compiler-gcc.h:181:45: warning: no return statement in function returning non-void [-Wreturn-type]
  1203. #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
  1204. ^
  1205. include/linux/compiler.h:50:23: note: in definition of macro '___PASTE'
  1206. #define ___PASTE(a,b) a##b
  1207. ^
  1208. include/linux/compiler-gcc.h:181:29: note: in expansion of macro '__PASTE'
  1209. #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
  1210. ^~~~~~~
  1211. include/linux/compiler.h:51:22: note: in expansion of macro '___PASTE'
  1212. #define __PASTE(a,b) ___PASTE(a,b)
  1213. ^~~~~~~~
  1214. include/linux/compiler-gcc.h:181:37: note: in expansion of macro '__PASTE'
  1215. #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
  1216. ^~~~~~~
  1217. include/linux/moduleparam.h:27:10: note: in expansion of macro '__UNIQUE_ID'
  1218. struct __UNIQUE_ID(name) {}
  1219. ^~~~~~~~~~~
  1220. include/linux/module.h:171:32: note: in expansion of macro '__MODULE_INFO'
  1221. #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
  1222. ^~~~~~~~~~~~~
  1223. include/linux/module.h:174:30: note: in expansion of macro 'MODULE_INFO'
  1224. #define MODULE_ALIAS(_alias) MODULE_INFO(alias, _alias)
  1225. ^~~~~~~~~~~
  1226. drivers/power/qcom-charger/qpnp-smbcharger.c:10248:1: note: in expansion of macro 'MODULE_ALIAS'
  1227. MODULE_ALIAS("platform:qpnp-smbcharger");
  1228. ^~~~~~~~~~~~
  1229. drivers/power/qcom-charger/qpnp-smbcharger.c: At top level:
  1230. drivers/power/qcom-charger/qpnp-smbcharger.c:675:13: warning: 'qpnp_check_charger_uovp' declared 'static' but never defined [-Wunused-function]
  1231. static void qpnp_check_charger_uovp(struct smbchg_chip *chip);
  1232. ^~~~~~~~~~~~~~~~~~~~~~~
  1233. drivers/power/qcom-charger/qpnp-smbcharger.c:676:12: warning: 'qpnp_check_battery_temp' used but never defined
  1234. static int qpnp_check_battery_temp(struct smbchg_chip *chip);
  1235. ^~~~~~~~~~~~~~~~~~~~~~~
  1236. drivers/power/qcom-charger/qpnp-smbcharger.c:684:12: warning: 'update_dash_unplug_status' used but never defined
  1237. static int update_dash_unplug_status(void);
  1238. ^~~~~~~~~~~~~~~~~~~~~~~~~
  1239. drivers/power/qcom-charger/qpnp-smbcharger.c:686:12: warning: 'set_dash_charger_present' used but never defined
  1240. static int set_dash_charger_present(int status);
  1241. ^~~~~~~~~~~~~~~~~~~~~~~~
  1242. drivers/power/qcom-charger/qpnp-smbcharger.c:8557:12: warning: 'qpnp_start_charging' defined but not used [-Wunused-function]
  1243. static int qpnp_start_charging(struct smbchg_chip *chip)
  1244. ^~~~~~~~~~~~~~~~~~~
  1245. CC drivers/media/platform/msm/camera_v2/isp/msm_isp_util.o
  1246. drivers/power/qcom-charger/qpnp-smbcharger.c:8511:13: warning: 'rerun_hvdcp_det_if_necessary' defined but not used [-Wunused-function]
  1247. static void rerun_hvdcp_det_if_necessary(struct smbchg_chip *chip)
  1248. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1249. drivers/power/qcom-charger/qpnp-smbcharger.c:8483:12: warning: 'set_prop_batt_health' defined but not used [-Wunused-function]
  1250. static int set_prop_batt_health(struct smbchg_chip *chip, int batt_health)
  1251. ^~~~~~~~~~~~~~~~~~~~
  1252. drivers/power/qcom-charger/qpnp-smbcharger.c:8434:12: warning: 'create_debugfs_entries' defined but not used [-Wunused-function]
  1253. static int create_debugfs_entries(struct smbchg_chip *chip)
  1254. ^~~~~~~~~~~~~~~~~~~~~~
  1255. drivers/power/qcom-charger/qpnp-smbcharger.c:8403:13: warning: 'dump_regs' defined but not used [-Wunused-function]
  1256. static void dump_regs(struct smbchg_chip *chip)
  1257. ^~~~~~~~~
  1258. drivers/power/qcom-charger/qpnp-smbcharger.c:8330:12: warning: 'smbchg_parse_peripherals' defined but not used [-Wunused-function]
  1259. static int smbchg_parse_peripherals(struct smbchg_chip *chip)
  1260. ^~~~~~~~~~~~~~~~~~~~~~~~
  1261. drivers/power/qcom-charger/qpnp-smbcharger.c:8111:12: warning: 'smbchg_request_irqs' defined but not used [-Wunused-function]
  1262. static int smbchg_request_irqs(struct smbchg_chip *chip)
  1263. ^~~~~~~~~~~~~~~~~~~
  1264. CC drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.o
  1265. drivers/power/qcom-charger/qpnp-smbcharger.c:7881:12: warning: 'smb_parse_dt' defined but not used [-Wunused-function]
  1266. static int smb_parse_dt(struct smbchg_chip *chip)
  1267. ^~~~~~~~~~~~
  1268. drivers/power/qcom-charger/qpnp-smbcharger.c:7332:12: warning: 'smbchg_hw_init' defined but not used [-Wunused-function]
  1269. static int smbchg_hw_init(struct smbchg_chip *chip)
  1270. ^~~~~~~~~~~~~~
  1271. drivers/power/qcom-charger/qpnp-smbcharger.c:7153:12: warning: 'determine_initial_status' defined but not used [-Wunused-function]
  1272. static int determine_initial_status(struct smbchg_chip *chip)
  1273. ^~~~~~~~~~~~~~~~~~~~~~~~
  1274. drivers/power/qcom-charger/qpnp-smbcharger.c:6562:12: warning: 'smbchg_dc_is_writeable' defined but not used [-Wunused-function]
  1275. static int smbchg_dc_is_writeable(struct power_supply *psy,
  1276. ^~~~~~~~~~~~~~~~~~~~~~
  1277. drivers/power/qcom-charger/qpnp-smbcharger.c:6532:12: warning: 'smbchg_dc_get_property' defined but not used [-Wunused-function]
  1278. static int smbchg_dc_get_property(struct power_supply *psy,
  1279. ^~~~~~~~~~~~~~~~~~~~~~
  1280. drivers/power/qcom-charger/qpnp-smbcharger.c:6508:12: warning: 'smbchg_dc_set_property' defined but not used [-Wunused-function]
  1281. static int smbchg_dc_set_property(struct power_supply *psy,
  1282. ^~~~~~~~~~~~~~~~~~~~~~
  1283. drivers/power/qcom-charger/qpnp-smbcharger.c:6501:35: warning: 'smbchg_dc_properties' defined but not used [-Wunused-variable]
  1284. static enum power_supply_property smbchg_dc_properties[] = {
  1285. ^~~~~~~~~~~~~~~~~~~~
  1286. drivers/power/qcom-charger/qpnp-smbcharger.c:6497:14: warning: 'smbchg_dc_supplicants' defined but not used [-Wunused-variable]
  1287. static char *smbchg_dc_supplicants[] = {
  1288. ^~~~~~~~~~~~~~~~~~~~~
  1289. drivers/power/qcom-charger/qpnp-smbcharger.c:6375:12: warning: 'smbchg_battery_get_property' defined but not used [-Wunused-function]
  1290. static int smbchg_battery_get_property(struct power_supply *psy,
  1291. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  1292. drivers/power/qcom-charger/qpnp-smbcharger.c:6349:12: warning: 'smbchg_battery_is_writeable' defined but not used [-Wunused-function]
  1293. static int smbchg_battery_is_writeable(struct power_supply *psy,
  1294. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  1295. drivers/power/qcom-charger/qpnp-smbcharger.c:6251:12: warning: 'smbchg_battery_set_property' defined but not used [-Wunused-function]
  1296. static int smbchg_battery_set_property(struct power_supply *psy,
  1297. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  1298. drivers/power/qcom-charger/qpnp-smbcharger.c:6217:35: warning: 'smbchg_battery_properties' defined but not used [-Wunused-variable]
  1299. static enum power_supply_property smbchg_battery_properties[] = {
  1300. ^~~~~~~~~~~~~~~~~~~~~~~~~
  1301. drivers/power/qcom-charger/qpnp-smbcharger.c:5162:13: warning: 'smbchg_re_det_work' defined but not used [-Wunused-function]
  1302. static void smbchg_re_det_work(struct work_struct *work)
  1303. ^~~~~~~~~~~~~~~~~~
  1304. drivers/power/qcom-charger/qpnp-smbcharger.c:4916:13: warning: 'smbchg_hvdcp_det_work' defined but not used [-Wunused-function]
  1305. static void smbchg_hvdcp_det_work(struct work_struct *work)
  1306. ^~~~~~~~~~~~~~~~~~~~~
  1307. drivers/power/qcom-charger/qpnp-smbcharger.c:4668:13: warning: 'smbchg_vfloat_adjust_work' defined but not used [-Wunused-function]
  1308. static void smbchg_vfloat_adjust_work(struct work_struct *work)
  1309. ^~~~~~~~~~~~~~~~~~~~~~~~~
  1310. drivers/power/qcom-charger/qpnp-smbcharger.c:4504:12: warning: 'smbchg_register_chg_led' defined but not used [-Wunused-function]
  1311. static int smbchg_register_chg_led(struct smbchg_chip *chip)
  1312. ^~~~~~~~~~~~~~~~~~~~~~~
  1313. drivers/power/qcom-charger/qpnp-smbcharger.c:4375:12: warning: 'smbchg_chg_led_controls' defined but not used [-Wunused-function]
  1314. static int smbchg_chg_led_controls(struct smbchg_chip *chip)
  1315. ^~~~~~~~~~~~~~~~~~~~~~~
  1316. drivers/power/qcom-charger/qpnp-smbcharger.c:4277:12: warning: 'smbchg_regulator_init' defined but not used [-Wunused-function]
  1317. static int smbchg_regulator_init(struct smbchg_chip *chip)
  1318. ^~~~~~~~~~~~~~~~~~~~~
  1319. drivers/power/qcom-charger/qpnp-smbcharger.c:4047:13: warning: 'smbchg_external_power_changed' defined but not used [-Wunused-function]
  1320. static void smbchg_external_power_changed(struct power_supply *psy)
  1321. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1322. drivers/power/qcom-charger/qpnp-smbcharger.c:4015:13: warning: 'switch_fast_chg' defined but not used [-Wunused-function]
  1323. static void switch_fast_chg(struct smbchg_chip *chip)
  1324. ^~~~~~~~~~~~~~~
  1325. drivers/power/qcom-charger/qpnp-smbcharger.c:3596:12: warning: 'smbchg_aicl_deglitch_config_cb' defined but not used [-Wunused-function]
  1326. static int smbchg_aicl_deglitch_config_cb(struct device *dev, int shorter,
  1327. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1328. drivers/power/qcom-charger/qpnp-smbcharger.c:3580:12: warning: 'smbchg_hw_aicl_rerun_disable_cb' defined but not used [-Wunused-function]
  1329. static int smbchg_hw_aicl_rerun_disable_cb(struct device *dev, int disable,
  1330. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1331. drivers/power/qcom-charger/qpnp-smbcharger.c:3558:12: warning: 'smbchg_hw_aicl_rerun_enable_indirect_cb' defined but not used [-Wunused-function]
  1332. static int smbchg_hw_aicl_rerun_enable_indirect_cb(struct device *dev,
  1333. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1334. drivers/power/qcom-charger/qpnp-smbcharger.c:2993:12: warning: 'set_usb_current_limit_vote_cb' defined but not used [-Wunused-function]
  1335. static int set_usb_current_limit_vote_cb(struct device *dev,
  1336. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1337. drivers/power/qcom-charger/qpnp-smbcharger.c:2978:12: warning: 'set_dc_current_limit_vote_cb' defined but not used [-Wunused-function]
  1338. static int set_dc_current_limit_vote_cb(struct device *dev,
  1339. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1340. drivers/power/qcom-charger/qpnp-smbcharger.c:2690:12: warning: 'set_fastchg_current_vote_cb' defined but not used [-Wunused-function]
  1341. static int set_fastchg_current_vote_cb(struct device *dev,
  1342. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  1343. drivers/power/qcom-charger/qpnp-smbcharger.c:2673:12: warning: 'dc_suspend_vote_cb' defined but not used [-Wunused-function]
  1344. static int dc_suspend_vote_cb(struct device *dev, int suspend,
  1345. ^~~~~~~~~~~~~~~~~~
  1346. drivers/power/qcom-charger/qpnp-smbcharger.c:2654:12: warning: 'usb_suspend_vote_cb' defined but not used [-Wunused-function]
  1347. static int usb_suspend_vote_cb(struct device *dev, int suspend,
  1348. ^~~~~~~~~~~~~~~~~~~
  1349. drivers/power/qcom-charger/qpnp-smbcharger.c:2637:12: warning: 'charging_suspend_vote_cb' defined but not used [-Wunused-function]
  1350. static int charging_suspend_vote_cb(struct device *dev, int suspend,
  1351. ^~~~~~~~~~~~~~~~~~~~~~~~
  1352. drivers/power/qcom-charger/qpnp-smbcharger.c:2586:13: warning: 'smbchg_parallel_usb_en_work' defined but not used [-Wunused-function]
  1353. static void smbchg_parallel_usb_en_work(struct work_struct *work)
  1354. ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  1355. drivers/power/qcom-charger/qpnp-smbcharger.c:1825:13: warning: 'smbchg_usb_update_online_work' defined but not used [-Wunused-function]
  1356. static void smbchg_usb_update_online_work(struct work_struct *work)
  1357. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1358. In file included from include/linux/power_supply.h:16:0,
  1359. from drivers/power/qcom-charger/qpnp-smbcharger.c:23:
  1360. include/linux/device.h:571:26: warning: 'dev_attr_test_authentic' defined but not used [-Wunused-variable]
  1361. struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
  1362. ^
  1363. drivers/power/qcom-charger/qpnp-smbcharger.c:1751:8: note: in expansion of macro 'DEVICE_ATTR'
  1364. static DEVICE_ATTR(test_authentic, S_IRUGO | S_IWUSR, test_authentic_show, test_authentic_store);
  1365. ^~~~~~~~~~~
  1366. include/linux/device.h:571:26: warning: 'dev_attr_test_temp' defined but not used [-Wunused-variable]
  1367. struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
  1368. ^
  1369. drivers/power/qcom-charger/qpnp-smbcharger.c:1732:8: note: in expansion of macro 'DEVICE_ATTR'
  1370. static DEVICE_ATTR(test_temp, S_IRUGO | S_IWUSR, test_temp_show, test_temp_store);
  1371. ^~~~~~~~~~~
  1372. include/linux/device.h:571:26: warning: 'dev_attr_test_chg_vol' defined but not used [-Wunused-variable]
  1373. struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
  1374. ^
  1375. drivers/power/qcom-charger/qpnp-smbcharger.c:1712:8: note: in expansion of macro 'DEVICE_ATTR'
  1376. static DEVICE_ATTR(test_chg_vol, S_IRUGO | S_IWUSR, test_chg_vol_show, test_chg_vol_store);
  1377. ^~~~~~~~~~~
  1378. drivers/power/qcom-charger/qpnp-smbcharger.c:1573:13: warning: 'use_pmi8996_tables' defined but not used [-Wunused-function]
  1379. static void use_pmi8996_tables(struct smbchg_chip *chip)
  1380. ^~~~~~~~~~~~~~~~~~
  1381. drivers/power/qcom-charger/qpnp-smbcharger.c:1558:13: warning: 'use_pmi8994_tables' defined but not used [-Wunused-function]
  1382. static void use_pmi8994_tables(struct smbchg_chip *chip)
  1383. ^~~~~~~~~~~~~~~~~~
  1384. drivers/power/qcom-charger/qpnp-smbcharger.c:464:14: warning: 'version_str' defined but not used [-Wunused-variable]
  1385. static char *version_str[] = {
  1386. ^~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement