[Letux-kernel] compile problems

Andreas Kemnade andreas at kemnade.info
Sun Jul 22 22:03:20 CEST 2018


On Sun, 22 Jul 2018 20:58:22 +0200
"H. Nikolaus Schaller" <hns at goldelico.com> wrote:

> > Am 22.07.2018 um 18:08 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> > 
> >   
> >> Am 22.07.2018 um 16:09 schrieb Andreas Kemnade <andreas at kemnade.info>:
> >> 
> >> On Sun, 22 Jul 2018 13:24:48 +0200
> >> "H. Nikolaus Schaller" <hns at goldelico.com> wrote:
> >>   
> >>>> Am 22.07.2018 um 12:30 schrieb Andreas Kemnade <andreas at kemnade.info>:
> >>>> 
> >>>> Hi,
> >>>> 
> >>>> I tried to test the newest letux-4.18-rc5-kernel.
> >>>> I came to the following problem:
> >>>> 
> >>>> CC [M]  sound/soc/omap/omap-twl4030.o
> >>>> ../sound/soc/omap/omap-twl4030.c: In function ‘omap_twl4030_init’:
> >>>> ../sound/soc/omap/omap-twl4030.c:210:23: error: passing argument 1 of ‘pdata->jack_init’ from incompatible pointer type [-Werror=incompatible-pointer-types]
> >>>>    pdata->jack_init(rtd->card))
> >>>>                     ^~~
> >>>> ../sound/soc/omap/omap-twl4030.c:210:23: note: expected ‘struct snd_soc_codec *’ but argument is of type ‘struct snd_soc_card *’
> >>>> ../sound/soc/omap/omap-twl4030.c:211:21: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
> >>>> priv->jack_remove = pdata->jack_remove;
> >>>>                   ^
> >>>> cc1: some warnings being treated as errors  
> >>> 
> >>> looks as if my compiler treats it as a warning. Needs to be fixed of course.
> >>> 4.18 has removed all snd_soc_card and replaced by snd_soc_codec and I have tried
> >>> to include this in our private patches, but I may have missed one location.
> >>> Maybe just the function declaration for pdata->jack_init.  
> >> 
> >> hmm, jack detection seems to come from this odd-looking patch:
> >> 085618a8200f4
> >> 
> >> some merge accidents probably. The jack detection should go into a
> >> single patch alltogether.  
> > 
> > Indeed. Well, it came from automatically splitting/grouping
> > patches from the old letux kernel to the permanently rebased
> > one.
> > 
> > This was done by doing a git blame on all relevant files, then
> > sorting the commit points (i.e. where something did change)
> > and try to reconstruct the original patches. This sometimes
> > needed to go back from latest linux back to before 3.14 and
> > then work forward again. Unfortunately it was not always
> > possible to identify the correct commit so that the merge
> > commit was taken. Therefore we have some patches which pretend
> > to be Linux releases...
> > 
> > Anyways this is one of the branches that have not yet been
> > cleaned up:
> > 
> > http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/work/letux-base/twl4030
> > 
> > Clean up means:
> > * find out which stuff is really needed
> > * massage the patches until they only add new things and never remove and add something else
> > * try to identify or keep the original commit message/author/date etc.
> > 
> > Volunteers welcome :)
> > 
> > For the moment, I will just add another patch that fixed the
> > snd_soc_codec issue that was indeed introduced by rebase on 4.18-rc1.  
> 
> Here its is:
> 
> http://git.goldelico.com/?p=letux-kernel.git;a=commit;h=5642c27872d716bf6bd14aa3b02f03897178e339
> 
> and I plan to merge it into letux-4.18-rc6 tomorrow.
> 
Ok, compiles. The kernel then produces the following faults:

[    7.347656] wwan_on_off_set_power:on = 1
[    7.364685] wwan_on_off_is_powered_on: gpio value = 1
[    7.398742] wwan_on_off_is_powered_on: return 'true'
[    7.425903] wwan_on_off_set_power: state 1
[    7.430206] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
[    7.514556] pgd = (ptrval)
[    7.537628] [0000000c] *pgd=be0e4831
[    7.565277] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[    7.570983] Modules linked in: pps_gpio panel_tpo_td028ttec1 snd_soc_omap_twl4030 snd_soc_simple_card snd_soc_simple_card_utils pps_core encoder_opa362 wwan_on_off(+) connector_analog_tv pwm_omap_dmtimer snd_soc_gtm601 generic_adc_battery pwm_bl bmp280_spi wlcore_sdio bq27xxx_battery_hdq bq27xxx_battery ov9655 v4l2_fwnode v4l2_common omap_hdq bmp280_i2c omap2430 bmp280 videodev at24 bmc150_magn_i2c tsc2007 bmc150_accel_i2c bmc150_magn bmc150_accel_core bno055 media leds_tca6507 industrialio_triggered_buffer phy_twl4030_usb kfifo_buf snd_soc_omap_mcbsp gpio_twl4030 snd_soc_sdma musb_hdrc twl4030_pwrbutton twl4030_vibra snd_soc_twl4030 twl4030_madc twl4030_charger industrialio gnss_w2sg0004 w2cbw003_bluetooth gnss omapdss omapdss_base cec
[    7.639343] CPU: 0 PID: 1223 Comm: udevd Not tainted 4.18.0-rc5-letux+ #2
[    7.646423] Hardware name: Generic OMAP36xx (Flattened Device Tree)
[    7.653015] PC is at regulator_is_enabled+0x4/0x44
[    7.658020] LR is at wwan_on_off_set_power+0x54/0x1b8 [wwan_on_off]
[    7.664581] pc : [<c04b1184>]    lr : [<bf22909c>]    psr: 60010013
[    7.671142] sp : ee7d9c98  ip : 00000000  fp : c01a96a8
[    7.676605] r10: 0000002e  r9 : bf22b020  r8 : ed225040
[    7.682037] r7 : 00000000  r6 : 00000001  r5 : 00000001  r4 : ed36c910
[    7.688873] r3 : 4a31c572  r2 : 4a31c572  r1 : 2ed2f000  r0 : 00000000
[    7.695709] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    7.703155] Control: 10c5387d  Table: ad078019  DAC: 00000051
[    7.709136] Process udevd (pid: 1223, stack limit = 0x(ptrval))
[    7.715332] Stack: (0xee7d9c98 to 0xee7da000)
[    7.719879] 9c80:                                                       ed36c910 00000001
[    7.728424] 9ca0: 00000001 bf22909c 00000000 ed36c910 00000000 00000000 ed225040 bf22928c
[    7.736968] 9cc0: ed225000 00000000 00000000 c0778d58 ed225000 00000005 c0b94854 c0778e48
[    7.745513] 9ce0: ed225000 00000000 c0bda510 ffffffe0 ed225040 c077901c 00000000 600e0013
[    7.754058] 9d00: ed36c910 ee23e810 ee23e800 ed225000 00000000 bf229438 ed36c910 40010113
[    7.762603] 9d20: 4a31c572 ee23e810 00000000 bf22b020 00000000 c04f6cd8 ee23e810 c0bd291c
[    7.771148] 9d40: c0bd2918 c04f51b4 ee23e810 ee23e844 bf22b020 c04f527c 00000000 00000001
[    7.779693] 9d60: ed387164 c04f5308 ee23e810 c0b03d48 bf22b020 c04f3798 00000001 ee01be58
[    7.788238] 9d80: ee23fe34 4a31c572 00000000 bf22b020 ed31e380 00000000 c0b67430 c04f46f0
[    7.796783] 9da0: bf22a6fb bf22a6fc 00000000 bf22b020 c0b99880 c0b03d48 bf22e000 c04f5f34
[    7.805328] 9dc0: ffffe000 c0b99880 c0b03d48 c0102e58 006000c0 4a31c572 00000000 a0010113
[    7.813873] 9de0: c0782d1c ee2c2000 ed035540 c0b94af8 c0b03d48 ee1fd800 006000c0 c024be10
[    7.822418] 9e00: 00000012 4a31c572 c0b03d48 a0010113 c023fb08 ed3d4a40 ee000000 4a31c572
[    7.830993] 9e20: bf22b080 bf22b080 ee7d9f44 ed3d4840 bf22b0c8 ed387140 00000001 c01ad7d8
[    7.839538] 9e40: bf22b080 00000004 bf22b080 ee7d9f44 00000001 c01ac670 bf22b08c 00007fff
[    7.848114] 9e60: bf22b080 c01a97f4 edd5f908 006000c0 c01a9718 c0b32d8c f0b168dc bf22b25c
[    7.856658] 9e80: b6dad9f8 00000000 ee780d80 f0b14000 ee780d80 ee7d9f34 00002954 00000000
[    7.865203] 9ea0: 00000000 00000000 00000000 00000000 00000000 00000000 6e72656b 00006c65
[    7.873779] 9ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    7.882324] 9ee0: 00000000 00000000 00000000 00000000 00000000 4a31c572 7fffffff 00000000
[    7.890869] 9f00: c0b03d48 b6dad9f8 00000006 c0101204 ee7d8000 0000017b 00055330 c01acecc
[    7.899444] 9f20: 7fffffff 00000000 00000003 00000000 00002954 f0b14000 00002954 00000000
[    7.907989] 9f40: 00000000 f0b14c86 f0b14000 00002954 f0b1638c f0b161fc f0b15950 00003000
[    7.916564] 9f60: 000031b0 00000000 00000000 00000000 00001bac 00000022 00000023 0000001c
[    7.925109] 9f80: 00000000 00000018 00000000 4a31c572 00000006 b6dae7d4 00051f68 39134500
[    7.933654] 9fa0: 0000017b c0101000 b6dae7d4 00051f68 00000006 b6dad9f8 00000000 b6dae31c
[    7.942199] 9fc0: b6dae7d4 00051f68 39134500 0000017b 00020000 00037f78 00050048 00055330
[    7.950775] 9fe0: bed91ed0 bed91ec0 b6da7c4b b6eb2a42 60070030 00000006 00000000 00000000
[    7.959350] [<c04b1184>] (regulator_is_enabled) from [<bf22909c>] (wwan_on_off_set_power+0x54/0x1b8 [wwan_on_off])
[    7.970214] [<bf22909c>] (wwan_on_off_set_power [wwan_on_off]) from [<bf22928c>] (wwan_on_off_rfkill_set_block+0x48/0x60 [wwan_on_off])
[    7.982940] [<bf22928c>] (wwan_on_off_rfkill_set_block [wwan_on_off]) from [<c0778d58>] (rfkill_set_block+0x98/0x118)
[    7.994049] [<c0778d58>] (rfkill_set_block) from [<c0778e48>] (__rfkill_switch_all+0x70/0x84)
[    8.002960] [<c0778e48>] (__rfkill_switch_all) from [<c077901c>] (rfkill_register+0x1c0/0x210)
[    8.011962] [<c077901c>] (rfkill_register) from [<bf229438>] (wwan_on_off_probe+0x194/0x214 [wwan_on_off])
[    8.022064] [<bf229438>] (wwan_on_off_probe [wwan_on_off]) from [<c04f6cd8>] (platform_drv_probe+0x48/0x94)
[    8.032257] [<c04f6cd8>] (platform_drv_probe) from [<c04f51b4>] (driver_probe_device+0x240/0x308)
[    8.041503] [<c04f51b4>] (driver_probe_device) from [<c04f5308>] (__driver_attach+0x8c/0xc8)
[    8.050354] [<c04f5308>] (__driver_attach) from [<c04f3798>] (bus_for_each_dev+0x64/0xa0)
[    8.058898] [<c04f3798>] (bus_for_each_dev) from [<c04f46f0>] (bus_add_driver+0x170/0x1d8)
[    8.067535] [<c04f46f0>] (bus_add_driver) from [<c04f5f34>] (driver_register+0xb4/0xf8)
[    8.075897] [<c04f5f34>] (driver_register) from [<c0102e58>] (do_one_initcall+0xbc/0x264)
[    8.084442] [<c0102e58>] (do_one_initcall) from [<c01ad7d8>] (do_init_module+0x58/0x1c8)
[    8.092895] [<c01ad7d8>] (do_init_module) from [<c01ac670>] (load_module+0x191c/0x1f70)
[    8.101257] [<c01ac670>] (load_module) from [<c01acecc>] (sys_finit_module+0x94/0xb4)
[    8.109436] [<c01acecc>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[    8.117980] Exception stack(0xee7d9fa8 to 0xee7d9ff0)
[    8.123260] 9fa0:                   b6dae7d4 00051f68 00000006 b6dad9f8 00000000 b6dae31c
[    8.131835] 9fc0: b6dae7d4 00051f68 39134500 0000017b 00020000 00037f78 00050048 00055330
[    8.140350] 9fe0: bed91ed0 bed91ec0 b6da7c4b b6eb2a42
[    8.145660] Code: e8bd8070 c08de314 c08de335 e92d4070 (e5d0300c) 
[    8.599212] omapdrm omapdrm.0: DMM not available, disable DMM support
[    8.610382] ------------[ cut here ]------------
[    8.615234] WARNING: CPU: 0 PID: 1242 at ../kernel/workqueue.c:1513 __queue_delayed_work+0xd8/0x140
[    8.624664] Modules linked in: omapdrm(+) drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm drm_panel_orientation_quirks pps_gpio panel_tpo_td028ttec1 snd_soc_omap_twl4030 snd_soc_simple_card snd_soc_simple_card_utils pps_core encoder_opa362 wwan_on_off(+) connector_analog_tv pwm_omap_dmtimer snd_soc_gtm601 generic_adc_battery pwm_bl bmp280_spi wlcore_sdio bq27xxx_battery_hdq bq27xxx_battery ov9655 v4l2_fwnode v4l2_common omap_hdq bmp280_i2c omap2430 bmp280 videodev at24 bmc150_magn_i2c tsc2007 bmc150_accel_i2c bmc150_magn bmc150_accel_core bno055 media leds_tca6507 industrialio_triggered_buffer phy_twl4030_usb kfifo_buf snd_soc_omap_mcbsp gpio_twl4030 snd_soc_sdma musb_hdrc twl4030_pwrbutton twl4030_vibra snd_soc_twl4030 twl4030_madc twl4030_charger industrialio gnss_w2sg0004 w2cbw003_bluetooth
[    8.699829]  gnss omapdss omapdss_base cec
[    8.704132] CPU: 0 PID: 1242 Comm: accelerometer Tainted: G      D           4.18.0-rc5-letux+ #2
[    8.713409] Hardware name: Generic OMAP36xx (Flattened Device Tree)
[    8.720001] [<c0111024>] (unwind_backtrace) from [<c010c610>] (show_stack+0x10/0x14)
[    8.728118] [<c010c610>] (show_stack) from [<c077ddac>] (dump_stack+0x7c/0x98)
[    8.735687] [<c077ddac>] (dump_stack) from [<c0132130>] (__warn+0xdc/0xfc)
[    8.742889] [<c0132130>] (__warn) from [<c0132260>] (warn_slowpath_null+0x38/0x44)
[    8.750823] [<c0132260>] (warn_slowpath_null) from [<c0148f1c>] (__queue_delayed_work+0xd8/0x140)
[    8.760101] [<c0148f1c>] (__queue_delayed_work) from [<c0148fcc>] (queue_delayed_work_on+0x48/0x54)
[    8.769622] [<c0148fcc>] (queue_delayed_work_on) from [<bf070600>] (accel_open+0x1c/0x2c [industrialio])
[    8.779602] [<bf070600>] (accel_open [industrialio]) from [<c05e5cf0>] (input_open_device+0x78/0xa8)
[    8.789154] [<c05e5cf0>] (input_open_device) from [<c05ee554>] (evdev_open+0xf4/0x168)
[    8.797424] [<c05ee554>] (evdev_open) from [<c02586d0>] (chrdev_open+0x150/0x180)
[    8.805267] [<c02586d0>] (chrdev_open) from [<c0251088>] (do_dentry_open+0x1fc/0x328)
[    8.813446] [<c0251088>] (do_dentry_open) from [<c02639a4>] (path_openat+0xdb8/0xf7c)
[    8.821655] [<c02639a4>] (path_openat) from [<c0263ba4>] (do_filp_open+0x3c/0x9c)
[    8.829498] [<c0263ba4>] (do_filp_open) from [<c02524ac>] (do_sys_open+0xf4/0x1d4)
[    8.837402] [<c02524ac>] (do_sys_open) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[    8.845489] Exception stack(0xed361fa8 to 0xed361ff0)
[    8.850769] 1fa0:                   00028a00 000262f0 00028a00 000a0000 00000000 00000000
[    8.859344] 1fc0: 00028a00 000262f0 00028a00 00000005 beda5c1c 00026480 00028a58 00026038
[    8.867889] 1fe0: 00000005 beda5370 b6edee91 b6ee0546
[    8.873168] ---[ end trace 8c96d4db1da6a487 ]---
[    8.877990] ------------[ cut here ]------------
[    8.882812] WARNING: CPU: 0 PID: 1242 at ../kernel/workqueue.c:1442 __queue_work+0x2dc/0x480
[    8.891601] Modules linked in: omapdrm(+) drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm drm_panel_orientation_quirks pps_gpio panel_tpo_td028ttec1 snd_soc_omap_twl4030 snd_soc_simple_card snd_soc_simple_card_utils pps_core encoder_opa362 wwan_on_off(+) connector_analog_tv pwm_omap_dmtimer snd_soc_gtm601 generic_adc_battery pwm_bl bmp280_spi wlcore_sdio bq27xxx_battery_hdq bq27xxx_battery ov9655 v4l2_fwnode v4l2_common omap_hdq bmp280_i2c omap2430 bmp280 videodev at24 bmc150_magn_i2c tsc2007 bmc150_accel_i2c bmc150_magn bmc150_accel_core bno055 media leds_tca6507 industrialio_triggered_buffer phy_twl4030_usb kfifo_buf snd_soc_omap_mcbsp gpio_twl4030 snd_soc_sdma musb_hdrc twl4030_pwrbutton twl4030_vibra snd_soc_twl4030 twl4030_madc twl4030_charger industrialio gnss_w2sg0004 w2cbw003_bluetooth
[    8.966705]  gnss omapdss omapdss_base cec
[    8.971008] CPU: 0 PID: 1242 Comm: accelerometer Tainted: G      D W         4.18.0-rc5-letux+ #2
[    8.980255] Hardware name: Generic OMAP36xx (Flattened Device Tree)
[    8.986816] [<c0111024>] (unwind_backtrace) from [<c010c610>] (show_stack+0x10/0x14)
[    8.994903] [<c010c610>] (show_stack) from [<c077ddac>] (dump_stack+0x7c/0x98)
[    9.002471] [<c077ddac>] (dump_stack) from [<c0132130>] (__warn+0xdc/0xfc)
[    9.009674] [<c0132130>] (__warn) from [<c0132260>] (warn_slowpath_null+0x38/0x44)
[    9.017608] [<c0132260>] (warn_slowpath_null) from [<c0148bd4>] (__queue_work+0x2dc/0x480)
[    9.026275] [<c0148bd4>] (__queue_work) from [<c0148fcc>] (queue_delayed_work_on+0x48/0x54)
[    9.035003] [<c0148fcc>] (queue_delayed_work_on) from [<bf070600>] (accel_open+0x1c/0x2c [industrialio])
[    9.044952] [<bf070600>] (accel_open [industrialio]) from [<c05e5cf0>] (input_open_device+0x78/0xa8)
[    9.054504] [<c05e5cf0>] (input_open_device) from [<c05ee554>] (evdev_open+0xf4/0x168)
[    9.062805] [<c05ee554>] (evdev_open) from [<c02586d0>] (chrdev_open+0x150/0x180)
[    9.070617] [<c02586d0>] (chrdev_open) from [<c0251088>] (do_dentry_open+0x1fc/0x328)
[    9.078826] [<c0251088>] (do_dentry_open) from [<c02639a4>] (path_openat+0xdb8/0xf7c)
[    9.087036] [<c02639a4>] (path_openat) from [<c0263ba4>] (do_filp_open+0x3c/0x9c)
[    9.094848] [<c0263ba4>] (do_filp_open) from [<c02524ac>] (do_sys_open+0xf4/0x1d4)
[    9.102752] [<c02524ac>] (do_sys_open) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[    9.110870] Exception stack(0xed361fa8 to 0xed361ff0)
[    9.116149] 1fa0:                   00028a00 000262f0 00028a00 000a0000 00000000 00000000
[    9.124694] 1fc0: 00028a00 000262f0 00028a00 00000005 beda5c1c 00026480 00028a58 00026038
[    9.133239] 1fe0: 00000005 beda5370 b6edee91 b6ee0546
[    9.138519] ---[ end trace 8c96d4db1da6a488 ]---
[    9.171325] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.178253] [drm] No driver support for vblank timestamp query.
[    9.198577] omapdrm omapdrm.0: Tiled buffers require DMM
[    9.207733] fbcon_init: detected unhandled fb_set_par error, error code -16
[    9.207733] Console: switching to colour frame buffer device 60x40
[    9.227874] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
[    9.234252] ---[ end trace 8c96d4db1da6a489 ]---
[    9.262847] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
[    9.418731] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    9.486663] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    9.543640] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    9.571105] cfg80211: failed to load regulatory.db

Regards,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20180722/322276ff/attachment-0001.asc>


More information about the Letux-kernel mailing list