[Letux-kernel] compile failure

H. Nikolaus Schaller hns at goldelico.com
Mon Jun 18 23:00:05 CEST 2018


Hi Andreas,

> Am 18.06.2018 um 22:51 schrieb Andreas Kemnade <andreas at kemnade.info>:
> 
> Hi,
> I am compiling
> 
> commit dca26f608a765008b869991bf29fa241769599fb
> Author: H. Nikolaus Schaller <hns at goldelico.com>
> Date:   Mon Jun 18 21:05:54 2018 +0200
> 
>    auto-update letux_*defconfigs for 4.17.0
> 
>    Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>
> 
> and I get this error:
> 
> andi at aktux:~/gta04/gta04-kernel/4.17$ makearmkernel uImage modules dtbs
>  CHK     include/config/kernel.release
>  Using .. as source for kernel
>  GEN     ./Makefile
>  CHK     include/generated/uapi/linux/version.h
>  CHK     include/generated/utsrelease.h
>  CHK     include/generated/bounds.h
>  CHK     include/generated/timeconst.h
>  CHK     include/generated/asm-offsets.h
>  CALL    ../scripts/checksyscalls.sh
>  CHK     scripts/mod/devicetable-offsets.h
>  CHK     include/generated/compile.h
>  CHK     include/generated/ti-pm-asm-offsets.h
>  CHK     kernel/config_data.h
>  CC [M]  drivers/power/supply/bq2429x_charger.o
> ../drivers/power/supply/bq2429x_charger.c: In function ‘bq24296_input_current_limit_uA’:
> ../drivers/power/supply/bq2429x_charger.c:501:6: warning: unused variable ‘cur’ [-Wunused-variable]
>  int cur; /* in uA */
>      ^~~
> ../drivers/power/supply/bq2429x_charger.c: In function ‘bq24296_get_vsys_voltage’:
> ../drivers/power/supply/bq2429x_charger.c:840:30: warning: unused variable ‘di’ [-Wunused-variable]
>  struct bq24296_device_info *di = rdev_get_drvdata(dev);
>                              ^~
> ../drivers/power/supply/bq2429x_charger.c: In function ‘bq24296_set_vsys_voltage’:
> ../drivers/power/supply/bq2429x_charger.c:857:30: warning: unused variable ‘di’ [-Wunused-variable]
>  struct bq24296_device_info *di = rdev_get_drvdata(dev);
>                              ^~
> ../drivers/power/supply/bq2429x_charger.c: In function ‘bq24296_get_otg_voltage’:
> ../drivers/power/supply/bq2429x_charger.c:877:30: warning: unused variable ‘di’ [-Wunused-variable]
>  struct bq24296_device_info *di = rdev_get_drvdata(dev);
>                              ^~
> ../drivers/power/supply/bq2429x_charger.c: In function ‘bq24296_set_otg_voltage’:
> ../drivers/power/supply/bq2429x_charger.c:894:30: warning: unused variable ‘di’ [-Wunused-variable]
>  struct bq24296_device_info *di = rdev_get_drvdata(dev);
>                              ^~
> ../drivers/power/supply/bq2429x_charger.c: In function ‘bq24296_get_otg_current_limit’:
> ../drivers/power/supply/bq2429x_charger.c:912:30: warning: unused variable ‘di’ [-Wunused-variable]
>  struct bq24296_device_info *di = rdev_get_drvdata(dev);
>                              ^~
> ../drivers/power/supply/bq2429x_charger.c: In function ‘bq24296_set_otg_current_limit’:
> ../drivers/power/supply/bq2429x_charger.c:929:30: warning: unused variable ‘di’ [-Wunused-variable]
>  struct bq24296_device_info *di = rdev_get_drvdata(dev);
>                              ^~
> ../drivers/power/supply/bq2429x_charger.c: In function ‘bq24296_otg_disable’:
> ../drivers/power/supply/bq2429x_charger.c:964:30: warning: unused variable ‘di’ [-Wunused-variable]
>  struct bq24296_device_info *di = rdev_get_drvdata(dev);
>                              ^~
> ../drivers/power/supply/bq2429x_charger.c: In function ‘bq24296_otg_is_enabled’:
> ../drivers/power/supply/bq2429x_charger.c:978:30: warning: unused variable ‘di’ [-Wunused-variable]
>  struct bq24296_device_info *di = rdev_get_drvdata(dev);
>                              ^~
> ../drivers/power/supply/bq2429x_charger.c: In function ‘bq24296_set_property’:
> ../drivers/power/supply/bq2429x_charger.c:1397:5: warning: unused variable ‘retval’ [-Wunused-variable]
>  u8 retval = 0;
>     ^~~~~~
> ../drivers/power/supply/bq2429x_charger.c:1396:6: warning: unused variable ‘ret’ [-Wunused-variable]
>  int ret;
>      ^~~
> ../drivers/power/supply/bq2429x_charger.c: At top level:
> ../drivers/power/supply/bq2429x_charger.c:1664:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
>   .suspend = bq24296_charger_suspend,
>              ^~~~~~~~~~~~~~~~~~~~~~~
> ../drivers/power/supply/bq2429x_charger.c:1664:14: note: (near initialization for ‘bq24296_charger_driver.driver.suspend’)
> ../drivers/power/supply/bq2429x_charger.c:1665:13: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
>   .resume = bq24296_charger_resume,
>             ^~~~~~~~~~~~~~~~~~~~~~
> ../drivers/power/supply/bq2429x_charger.c:1665:13: note: (near initialization for ‘bq24296_charger_driver.driver.resume’)
> cc1: some warnings being treated as errors

Yes, there was some fix. Maybe I did forget to merge/push it?

I'll check asap.

For me it seems to compile with local version.
Or my compiler is not that critical...

Yes, it isn't:

  CC [M]  drivers/power/supply/bq2429x_charger.o - due to target missing
drivers/power/supply/bq2429x_charger.c: In function 'bq24296_input_current_limit_uA':
drivers/power/supply/bq2429x_charger.c:501:6: warning: unused variable 'cur' [-Wunused-variable]
  int cur; /* in uA */
      ^
drivers/power/supply/bq2429x_charger.c: In function 'bq24296_get_vsys_voltage':
drivers/power/supply/bq2429x_charger.c:840:30: warning: unused variable 'di' [-Wunused-variable]
  struct bq24296_device_info *di = rdev_get_drvdata(dev);
                              ^
drivers/power/supply/bq2429x_charger.c: In function 'bq24296_set_vsys_voltage':
drivers/power/supply/bq2429x_charger.c:857:30: warning: unused variable 'di' [-Wunused-variable]
  struct bq24296_device_info *di = rdev_get_drvdata(dev);
                              ^
drivers/power/supply/bq2429x_charger.c: In function 'bq24296_get_otg_voltage':
drivers/power/supply/bq2429x_charger.c:877:30: warning: unused variable 'di' [-Wunused-variable]
  struct bq24296_device_info *di = rdev_get_drvdata(dev);
                              ^
drivers/power/supply/bq2429x_charger.c: In function 'bq24296_set_otg_voltage':
drivers/power/supply/bq2429x_charger.c:894:30: warning: unused variable 'di' [-Wunused-variable]
  struct bq24296_device_info *di = rdev_get_drvdata(dev);
                              ^
drivers/power/supply/bq2429x_charger.c: In function 'bq24296_get_otg_current_limit':
drivers/power/supply/bq2429x_charger.c:912:30: warning: unused variable 'di' [-Wunused-variable]
  struct bq24296_device_info *di = rdev_get_drvdata(dev);
                              ^
drivers/power/supply/bq2429x_charger.c: In function 'bq24296_set_otg_current_limit':
drivers/power/supply/bq2429x_charger.c:929:30: warning: unused variable 'di' [-Wunused-variable]
  struct bq24296_device_info *di = rdev_get_drvdata(dev);
                              ^
drivers/power/supply/bq2429x_charger.c: In function 'bq24296_otg_disable':
drivers/power/supply/bq2429x_charger.c:964:30: warning: unused variable 'di' [-Wunused-variable]
  struct bq24296_device_info *di = rdev_get_drvdata(dev);
                              ^
drivers/power/supply/bq2429x_charger.c: In function 'bq24296_otg_is_enabled':
drivers/power/supply/bq2429x_charger.c:978:30: warning: unused variable 'di' [-Wunused-variable]
  struct bq24296_device_info *di = rdev_get_drvdata(dev);
                              ^
drivers/power/supply/bq2429x_charger.c: In function 'bq24296_set_property':
drivers/power/supply/bq2429x_charger.c:1397:5: warning: unused variable 'retval' [-Wunused-variable]
  u8 retval = 0;
     ^
drivers/power/supply/bq2429x_charger.c:1396:6: warning: unused variable 'ret' [-Wunused-variable]
  int ret;
      ^
drivers/power/supply/bq2429x_charger.c: At top level:
drivers/power/supply/bq2429x_charger.c:1664:3: warning: initialization from incompatible pointer type
   .suspend = bq24296_charger_suspend,
   ^
drivers/power/supply/bq2429x_charger.c:1664:3: warning: (near initialization for 'bq24296_charger_driver.driver.suspend')
drivers/power/supply/bq2429x_charger.c:1665:3: warning: initialization from incompatible pointer type
   .resume = bq24296_charger_resume,
   ^
drivers/power/supply/bq2429x_charger.c:1665:3: warning: (near initialization for 'bq24296_charger_driver.driver.resume')
  CC [M]  drivers/pps/clients/pps-ktimer.o - due to target missing

We have to fix that anyways since it does not work (the whole driver is far from being upstreamable)...
Ideas/patches how to fix this are welcome!

BR,
Nikolaus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20180618/439554ef/attachment.asc>


More information about the Letux-kernel mailing list