Release 3.2 kernel issue tracking thread


I've noticed something bad some weeks ago, but i now report it.

Tested under Slackware, with the official kernel:


Feb 1 15:43:28 darkstar syslogd 1.5.0: restart.
Feb 1 15:43:29 darkstar kernel: klogd 1.5.0, log source = /proc/kmsg started.
Feb 1 15:43:29 darkstar kernel: [ 0.000000] Linux version 3.2.53 (notaz@pixelinis) (gcc version 4.5.2 (Sourcery G++ Lite 2011.03-41) ) #950 Tue Jan 21 23:45:27 EET 2014
Feb 1 15:43:29 darkstar kernel: [ 0.000000] cma: CMA: reserved 4 MiB at 86000000
Feb 1 15:43:29 darkstar kernel: [ 0.000000] Initialized persistent memory from 80fe0000-80ffffff
Feb 1 15:43:29 darkstar kernel: [ 0.000000] cma: CMA: reserved 64 MiB at 8c000000

...

Feb 1 15:43:29 darkstar kernel: [ 4.876312] Adding 262140k swap on /dev/mmcblk0p2. Priority:-1 extents:1 across:262140k SS

...

Feb 1 15:43:53 darkstar kernel: [ 33.616577] zram: num_devices not specified. Using default: 1
Feb 1 15:43:53 darkstar kernel: [ 33.616607] zram: Creating 1 devices ...
Feb 1 15:43:53 darkstar kernel: [ 33.777496] Adding 65532k swap on /dev/zram0. Priority:5 extents:1 across:65532k SS
Feb 1 15:44:13 darkstar kernel: [ 53.399444] zram: Error allocating memory for compressed page: 7289, size=2326
Feb 1 15:44:13 darkstar kernel: [ 53.425323] zram: Error allocating memory for compressed page: 7291, size=1801
Feb 1 15:44:13 darkstar kernel: [ 53.529632] zram: Error allocating memory for compressed page: 7292, size=2852
Feb 1 15:44:13 darkstar kernel: [ 53.534210] zram: Error allocating memory for compressed page: 7293, size=1363
Feb 1 15:44:13 darkstar kernel: [ 53.638580] zram: Error allocating memory for compressed page: 7294, size=1277
...
16:00:06 darkstar kernel: [ 184.507171] zram: Error allocating memory for compressed page: 7910, size=2257
Feb 1 16:00:06 darkstar kernel: [ 184.508270] zram: Error allocating memory for compressed page: 7911, size=2566
Feb 1 16:00:06 darkstar kernel: [ 184.509490] zram: Error allocating memory for compressed page: 7912, size=2575
Feb 1 16:00:06 darkstar kernel: [ 184.510589] zram: Error allocating memory for compressed page: 7913, size=2485


Then when using the OP, i have a lot of write-error on swap-device

The system seems stable though.
 
Parts of syslog:

Code:
Feb  1 16:00:02 darkstar kernel: [  180.954315] Write-error on swap-device (253:0:55400)
Feb  1 16:00:02 darkstar kernel: [  180.957092] fc-cache: page allocation failure: order:0, mode:0x12
Feb  1 16:00:02 darkstar kernel: [  180.957153] [<c001a660>] (unwind_backtrace+0x0/0xf8) from [<c0093964>] (warn_alloc_failed+0xdc/0x124)
Feb  1 16:00:02 darkstar kernel: [  180.957214] [<c0093964>] (warn_alloc_failed+0xdc/0x124) from [<c0097d68>] (__alloc_pages_nodemask+0x45c/0x688)
Feb  1 16:00:02 darkstar kernel: [  180.957244] [<c0097d68>] (__alloc_pages_nodemask+0x45c/0x688) from [<bf0659a0>] (zram_bvec_rw.clone.25+0x76c/0x820 [zram])
Feb  1 16:00:02 darkstar kernel: [  180.957275] [<bf0659a0>] (zram_bvec_rw.clone.25+0x76c/0x820 [zram]) from [<bf065f68>] (zram_make_request+0x208/0x2b4 [zram])
Feb  1 16:00:02 darkstar kernel: [  180.957336] [<bf065f68>] (zram_make_request+0x208/0x2b4 [zram]) from [<c01ed7ac>] (generic_make_request+0xac/0xcc)
Feb  1 16:00:02 darkstar kernel: [  180.957366] [<c01ed7ac>] (generic_make_request+0xac/0xcc) from [<c01ed860>] (submit_bio+0x94/0x120)
Feb  1 16:00:02 darkstar kernel: [  180.957397] [<c01ed860>] (submit_bio+0x94/0x120) from [<c00bc500>] (swap_writepage+0x74/0xa4)
Feb  1 16:00:02 darkstar kernel: [  180.957427] [<c00bc500>] (swap_writepage+0x74/0xa4) from [<c009eb54>] (shrink_page_list+0x5bc/0x958)
Feb  1 16:00:02 darkstar kernel: [  180.957427] [<c009eb54>] (shrink_page_list+0x5bc/0x958) from [<c009f33c>] (shrink_inactive_list+0x1b0/0x30c)
Feb  1 16:00:02 darkstar kernel: [  180.957458] [<c009f33c>] (shrink_inactive_list+0x1b0/0x30c) from [<c009fa64>] (shrink_zone+0x5cc/0x810)
Feb  1 16:00:02 darkstar kernel: [  180.957489] [<c009fa64>] (shrink_zone+0x5cc/0x810) from [<c00a0c1c>] (try_to_free_pages+0x164/0x484)
Feb  1 16:00:02 darkstar kernel: [  180.957519] [<c00a0c1c>] (try_to_free_pages+0x164/0x484) from [<c009300c>] (__perform_reclaim+0x60/0x8c)
Feb  1 16:00:02 darkstar kernel: [  180.957550] [<c009300c>] (__perform_reclaim+0x60/0x8c) from [<c0097ca0>] (__alloc_pages_nodemask+0x394/0x688)
Feb  1 16:00:02 darkstar kernel: [  180.957580] [<c0097ca0>] (__alloc_pages_nodemask+0x394/0x688) from [<c00ae728>] (handle_pte_fault+0x4e4/0x6ac)
Feb  1 16:00:02 darkstar kernel: [  180.957611] [<c00ae728>] (handle_pte_fault+0x4e4/0x6ac) from [<c00aea68>] (handle_mm_fault+0x178/0x1dc)
Feb  1 16:00:02 darkstar kernel: [  180.957641] [<c00aea68>] (handle_mm_fault+0x178/0x1dc) from [<c001ea7c>] (do_page_fault+0x1cc/0x308)
Feb  1 16:00:02 darkstar kernel: [  180.957672] [<c001ea7c>] (do_page_fault+0x1cc/0x308) from [<c00083d8>] (do_DataAbort+0x34/0x9c)
Feb  1 16:00:02 darkstar kernel: [  180.957702] [<c00083d8>] (do_DataAbort+0x34/0x9c) from [<c00139a8>] (__dabt_usr+0x28/0x40)
Feb  1 16:00:02 darkstar kernel: [  180.957733] Exception stack(0xcaefdfb0 to 0xcaefdff8)
Feb  1 16:00:02 darkstar kernel: [  180.957733] dfa0:                                     00020009 00010af1 00000000 01b44508
Feb  1 16:00:02 darkstar kernel: [  180.957763] dfc0: 00000001 403024d4 01b64510 00020000 00004001 01b44510 40302504 bed87898
Feb  1 16:00:02 darkstar kernel: [  180.957794] dfe0: 00020009 bed87780 4022c638 4022a77c 60000010 ffffffff
Feb  1 16:00:02 darkstar kernel: [  180.957794] Mem-info:
Feb  1 16:00:02 darkstar kernel: [  180.957794] Normal per-cpu:
Feb  1 16:00:02 darkstar kernel: [  180.957824] CPU    0: hi:   90, btch:  15 usd:  80
Feb  1 16:00:02 darkstar kernel: [  180.957824] active_anon:21897 inactive_anon:21951 isolated_anon:16
Feb  1 16:00:02 darkstar kernel: [  180.957855]  active_file:5363 inactive_file:5146 isolated_file:0
Feb  1 16:00:02 darkstar kernel: [  180.957855]  unevictable:0 dirty:11 writeback:1 unstable:0
Feb  1 16:00:02 darkstar kernel: [  180.957855]  free:3200 slab_reclaimable:1179 slab_unreclaimable:818
Feb  1 16:00:02 darkstar kernel: [  180.957885]  mapped:552 shmem:0 pagetables:168 bounce:0
Feb  1 16:00:02 darkstar kernel: [  180.957916] Normal free:12800kB min:12852kB low:16064kB high:19276kB active_anon:87588kB inactive_anon:87804kB active_file:21452kB inactive_file:20584kB unevictable:0kB isolated(anon):64kB isolated(file):0kB present:260096kB mlocked:0kB dirty:44kB writeback:4kB mapped:2208kB shmem:0kB slab_reclaimable:4716kB slab_unreclaimable:3272kB kernel_stack:864kB pagetables:672kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:149 all_unreclaimable? no
Feb  1 16:00:02 darkstar kernel: [  180.957946] lowmem_reserve[]: 0 0
Feb  1 16:00:02 darkstar kernel: [  180.957977] Normal: 3180*4kB 10*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 12800kB
Feb  1 16:00:02 darkstar kernel: [  180.958007] 12185 total pagecache pages
Feb  1 16:00:02 darkstar kernel: [  180.958038] 1676 pages in swap cache
Feb  1 16:00:02 darkstar kernel: [  180.958038] Swap cache stats: add 8616, delete 6940, find 30/51
Feb  1 16:00:02 darkstar kernel: [  180.958038] Free swap  = 307744kB
Feb  1 16:00:02 darkstar kernel: [  180.958068] Total swap = 327672kB
Feb  1 16:00:02 darkstar kernel: [  180.967834] 65536 pages of RAM
Feb  1 16:00:02 darkstar kernel: [  180.967864] 3433 free pages
Feb  1 16:00:02 darkstar kernel: [  180.967864] 2103 reserved pages
Feb  1 16:00:02 darkstar kernel: [  180.967864] 1876 slab pages
Feb  1 16:00:02 darkstar kernel: [  180.967864] 2182 pages shared
Feb  1 16:00:02 darkstar kernel: [  180.967895] 1676 pages swap cached
 
Noticed that i still activate zram with

echo 64*1024*1024 | bc > /sys/block/zram0/disksize
 

Seems that's not needed anymore, trying without.
 
Won't work without !

Strange i can't find those lines anywhere in the Zaxxon init.d !
 
And a technical question. I've patched the kernel for real time. Now, i can't compile it as usual:


CC mm/page_alloc.o
mm/page_alloc.c:242:8: warning: type defaults to ‘int’ in declaration of ‘DEFINE_LOCAL_IRQ_LOCK’ [-Wimplicit-int]
mm/page_alloc.c:242:1: warning: parameter names (without types) in function declaration [enabled by default]
mm/page_alloc.c: In function ‘__free_pages_ok’:
mm/page_alloc.c:782:2: error: implicit declaration of function ‘local_lock_irqsave’ [-Werror=implicit-function-declaration]
mm/page_alloc.c:782:21: error: ‘pa_lock’ undeclared (first use in this function)
mm/page_alloc.c:782:21: note: each undeclared identifier is reported only once for each function it appears in
mm/page_alloc.c:788:2: error: implicit declaration of function ‘local_unlock_irqrestore’ [-Werror=implicit-function-declaration]
mm/page_alloc.c: In function ‘drain_pages’:
mm/page_alloc.c:1253:3: error: implicit declaration of function ‘local_lock_irqsave_on’ [-Werror=implicit-function-declaration]
mm/page_alloc.c:1253:3: error: ‘pa_lock’ undeclared (first use in this function)
mm/page_alloc.c:1262:3: error: implicit declaration of function ‘local_unlock_irqrestore_on’ [-Werror=implicit-function-declaration]
mm/page_alloc.c: In function ‘free_hot_cold_page’:
mm/page_alloc.c:1344:21: error: ‘pa_lock’ undeclared (first use in this function)
mm/page_alloc.c: In function ‘buffered_rmqueue’:
mm/page_alloc.c:1495:22: error: ‘pa_lock’ undeclared (first use in this function)
mm/page_alloc.c:1527:3: error: implicit declaration of function ‘local_spin_lock_irqsave’ [-Werror=implicit-function-declaration]
mm/page_alloc.c: In function ‘__zone_pcp_update’:
mm/page_alloc.c:3936:3: error: ‘pa_lock’ undeclared (first use in this function)
mm/page_alloc.c: In function ‘page_alloc_init’:
mm/page_alloc.c:5303:2: error: implicit declaration of function ‘local_irq_lock_init’ [-Werror=implicit-function-declaration]
mm/page_alloc.c:5303:22: error: ‘pa_lock’ undeclared (first use in this function)
mm/page_alloc.c: At top level:
mm/page_alloc.c:242:8: warning: ‘DEFINE_LOCAL_IRQ_LOCK’ declared ‘static’ but never defined [-Wunused-function]
cc1: some warnings being treated as errors
make[1]: *** [mm/page_alloc.o] Error 1
make: *** [mm] Error 2
root@darkstar:/usr/src/linux#


Any tips ?
Hi,

I am facing this same issue.(http://stackoverflow.com/questions/26191390/preempt-rt-kernel-in-linux-sunxi-for-cubieboard-compilation-errorsmm-page-allo) Did you manage to solve this?
 
I have no solution for now.

I also have to use a gcc older than 4.8.2 in order to compile a working kernel natively on ARM.
 
Just tried to compile natively on Slackware armhf + gcc 5.4.0 , fails at rtl8712 module :

CC [M] drivers/staging/rtl8712/rtl8712_xmit.o
LD [M] drivers/staging/rtl8712/r8712u.o
drivers/staging/rtl8712/rtl8712_cmd.o: In function `ieee80211_is_empty_essid':
rtl8712_cmd.c:(.text+0xb8): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl8712_cmd.o: In function `ieee80211_get_hdrlen':
rtl8712_cmd.c:(.text+0x124): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_security.o: In function `ieee80211_is_empty_essid':
rtl871x_security.c:(.text+0x1f04): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_security.o: In function `ieee80211_get_hdrlen':
rtl871x_security.c:(.text+0x1f70): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_eeprom.o: In function `ieee80211_is_empty_essid':
rtl871x_eeprom.c:(.text+0x234): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_eeprom.o: In function `ieee80211_get_hdrlen':
rtl871x_eeprom.c:(.text+0x2a0): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl8712_efuse.o: In function `ieee80211_is_empty_essid':
rtl8712_efuse.c:(.text+0x4bc): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl8712_efuse.o: In function `ieee80211_get_hdrlen':
rtl8712_efuse.c:(.text+0x528): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/hal_init.o: In function `ieee80211_is_empty_essid':
hal_init.c:(.text+0x70): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/hal_init.o: In function `ieee80211_get_hdrlen':
hal_init.c:(.text+0xdc): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/usb_halinit.o: In function `ieee80211_is_empty_essid':
usb_halinit.c:(.text+0x0): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/usb_halinit.o: In function `ieee80211_get_hdrlen':
usb_halinit.c:(.text+0x6c): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/usb_ops.o: In function `ieee80211_is_empty_essid':
usb_ops.c:(.text+0x180): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/usb_ops.o: In function `ieee80211_get_hdrlen':
usb_ops.c:(.text+0x1ec): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/usb_ops_linux.o: In function `ieee80211_is_empty_essid':
usb_ops_linux.c:(.text+0x500): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/usb_ops_linux.o: In function `ieee80211_get_hdrlen':
usb_ops_linux.c:(.text+0x56c): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_io.o: In function `ieee80211_is_empty_essid':
rtl871x_io.c:(.text+0x0): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_io.o: In function `ieee80211_get_hdrlen':
rtl871x_io.c:(.text+0x6c): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl8712_io.o: In function `ieee80211_is_empty_essid':
rtl8712_io.c:(.text+0x0): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl8712_io.o: In function `ieee80211_get_hdrlen':
rtl8712_io.c:(.text+0x6c): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_ioctl_linux.o: In function `ieee80211_is_empty_essid':
rtl871x_ioctl_linux.c:(.text+0x2e58): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_ioctl_linux.o: In function `ieee80211_get_hdrlen':
rtl871x_ioctl_linux.c:(.text+0x2ec4): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_ioctl_rtl.o: In function `ieee80211_is_empty_essid':
rtl871x_ioctl_rtl.c:(.text+0x0): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_ioctl_rtl.o: In function `ieee80211_get_hdrlen':
rtl871x_ioctl_rtl.c:(.text+0x6c): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_ioctl_set.o: In function `ieee80211_is_empty_essid':
rtl871x_ioctl_set.c:(.text+0x160): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_ioctl_set.o: In function `ieee80211_get_hdrlen':
rtl871x_ioctl_set.c:(.text+0x1cc): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl8712_led.o: In function `ieee80211_is_empty_essid':
rtl8712_led.c:(.text+0x2950): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl8712_led.o: In function `ieee80211_get_hdrlen':
rtl8712_led.c:(.text+0x29bc): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_mlme.o: In function `ieee80211_is_empty_essid':
rtl871x_mlme.c:(.text+0x298): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_mlme.o: In function `ieee80211_get_hdrlen':
rtl871x_mlme.c:(.text+0x304): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/ieee80211.o: In function `ieee80211_is_empty_essid':
ieee80211.c:(.text+0x1b4): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/ieee80211.o: In function `ieee80211_get_hdrlen':
ieee80211.c:(.text+0x220): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_mp_ioctl.o: In function `ieee80211_is_empty_essid':
rtl871x_mp_ioctl.c:(.text+0x13c): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_mp_ioctl.o: In function `ieee80211_get_hdrlen':
rtl871x_mp_ioctl.c:(.text+0x1a8): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_mp.o: In function `ieee80211_is_empty_essid':
rtl871x_mp.c:(.text+0x180): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_mp.o: In function `ieee80211_get_hdrlen':
rtl871x_mp.c:(.text+0x1ec): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/mlme_linux.o: In function `ieee80211_is_empty_essid':
mlme_linux.c:(.text+0x5c): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/mlme_linux.o: In function `ieee80211_get_hdrlen':
mlme_linux.c:(.text+0xc8): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/recv_linux.o: In function `ieee80211_is_empty_essid':
recv_linux.c:(.text+0x4): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/recv_linux.o: In function `ieee80211_get_hdrlen':
recv_linux.c:(.text+0x70): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/xmit_linux.o: In function `ieee80211_is_empty_essid':
xmit_linux.c:(.text+0x0): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/xmit_linux.o: In function `ieee80211_get_hdrlen':
xmit_linux.c:(.text+0x6c): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/usb_intf.o: In function `ieee80211_is_empty_essid':
usb_intf.c:(.text+0x994): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/usb_intf.o: In function `ieee80211_get_hdrlen':
usb_intf.c:(.text+0xa00): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/os_intfs.o: In function `ieee80211_is_empty_essid':
os_intfs.c:(.text+0x360): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/os_intfs.o: In function `ieee80211_get_hdrlen':
os_intfs.c:(.text+0x3cc): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_pwrctrl.o: In function `ieee80211_is_empty_essid':
rtl871x_pwrctrl.c:(.text+0x38): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_pwrctrl.o: In function `ieee80211_get_hdrlen':
rtl871x_pwrctrl.c:(.text+0xa4): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl8712_recv.o: In function `ieee80211_is_empty_essid':
rtl8712_recv.c:(.text+0x2dc): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl8712_recv.o: In function `ieee80211_get_hdrlen':
rtl8712_recv.c:(.text+0x348): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_recv.o: In function `ieee80211_is_empty_essid':
rtl871x_recv.c:(.text+0x0): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_recv.o: In function `ieee80211_get_hdrlen':
rtl871x_recv.c:(.text+0x6c): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_sta_mgt.o: In function `ieee80211_is_empty_essid':
rtl871x_sta_mgt.c:(.text+0x0): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_sta_mgt.o: In function `ieee80211_get_hdrlen':
rtl871x_sta_mgt.c:(.text+0x6c): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl871x_xmit.o: In function `ieee80211_is_empty_essid':
rtl871x_xmit.c:(.text+0x0): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl871x_xmit.o: In function `ieee80211_get_hdrlen':
rtl871x_xmit.c:(.text+0x6c): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
drivers/staging/rtl8712/rtl8712_xmit.o: In function `ieee80211_is_empty_essid':
rtl8712_xmit.c:(.text+0x470): multiple definition of `ieee80211_is_empty_essid'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x0): first defined here
drivers/staging/rtl8712/rtl8712_xmit.o: In function `ieee80211_get_hdrlen':
rtl8712_xmit.c:(.text+0x4dc): multiple definition of `ieee80211_get_hdrlen'
drivers/staging/rtl8712/rtl871x_cmd.o:rtl871x_cmd.c:(.text+0x6c): first defined here
scripts/Makefile.build:430: recipe for target 'drivers/staging/rtl8712/r8712u.o' failed
make[3]: *** [drivers/staging/rtl8712/r8712u.o] Error 1
scripts/Makefile.build:441: recipe for target 'drivers/staging/rtl8712' failed
make[2]: *** [drivers/staging/rtl8712] Error 2
scripts/Makefile.build:441: recipe for target 'drivers/staging' failed
make[1]: *** [drivers/staging] Error 2
Makefile:947: recipe for target 'drivers' failed
make: *** [drivers] Error 2
 
Probably newer gcc is more strict about duplicate symbols (I'm still on 4.9), I guess you'll need to disable rtl8712 module in .config.
 
Roger that, thx.
[doublepost=1474338574,1474314638][/doublepost]A new error, not the same kind. About tidspbridge :
LD drivers/staging/tidspbridge/built-in.o
CC [M] drivers/staging/tidspbridge/gen/gh.o
CC [M] drivers/staging/tidspbridge/gen/uuidutil.o
CC [M] drivers/staging/tidspbridge/core/chnl_sm.o
CC [M] drivers/staging/tidspbridge/core/msg_sm.o
CC [M] drivers/staging/tidspbridge/core/io_sm.o
CC [M] drivers/staging/tidspbridge/core/tiomap3430.o
drivers/staging/tidspbridge/core/tiomap3430.c: In function ‘user_va2_pa’:
drivers/staging/tidspbridge/core/tiomap3430.c:1558:20: warning: passing argument 1 of ‘pmd_offset’ from incompatible pointer type [-Wincompatible-pointer-types]
pmd = pmd_offset(pgd, address);
^
In file included from /usr/src/pandora-kernel/arch/arm/include/asm/pgtable.h:33:0,
from include/linux/mm.h:43,
from include/linux/ring_buffer.h:5,
from include/linux/ftrace_event.h:4,
from include/trace/syscall.h:6,
from include/linux/syscalls.h:77,
from drivers/staging/tidspbridge/include/dspbridge/host_os.h:26,
from drivers/staging/tidspbridge/core/tiomap3430.c:23:
/usr/src/pandora-kernel/arch/arm/include/asm/pgtable-2level.h:159:22: note: expected ‘pud_t * {aka struct <anonymous> *}’ but argument is of type ‘pmdval_t (*)[2] {aka unsigned int (*)[2]}’
static inline pmd_t *pmd_offset(pud_t *pud, unsigned long addr)
^
CC [M] drivers/staging/tidspbridge/core/tiomap3430_pwr.o
CC [M] drivers/staging/tidspbridge/core/tiomap_io.o
CC [M] drivers/staging/tidspbridge/core/ue_deh.o
CC [M] drivers/staging/tidspbridge/core/wdt.o
CC [M] drivers/staging/tidspbridge/core/dsp-clock.o
CC [M] drivers/staging/tidspbridge/core/sync.o
CC [M] drivers/staging/tidspbridge/pmgr/chnl.o
CC [M] drivers/staging/tidspbridge/pmgr/io.o
CC [M] drivers/staging/tidspbridge/pmgr/msg.o
CC [M] drivers/staging/tidspbridge/pmgr/cod.o
CC [M] drivers/staging/tidspbridge/pmgr/dev.o
CC [M] drivers/staging/tidspbridge/pmgr/dspapi.o
drivers/staging/tidspbridge/pmgr/dspapi.c:1539:2: warning: ‘rcu_read_unlock’ is static but used in inline function ‘find_strm_handle’ which is not static
rcu_read_unlock();
^
drivers/staging/tidspbridge/pmgr/dspapi.c:1536:2: warning: ‘rcu_read_lock’ is static but used in inline function ‘find_strm_handle’ which is not static
rcu_read_lock();
^
drivers/staging/tidspbridge/pmgr/dspapi.c:1077:2: warning: ‘rcu_read_unlock’ is static but used in inline function ‘find_node_handle’ which is not static
rcu_read_unlock();
^
drivers/staging/tidspbridge/pmgr/dspapi.c:1074:2: warning: ‘rcu_read_lock’ is static but used in inline function ‘find_node_handle’ which is not static
rcu_read_lock();
^
CC [M] drivers/staging/tidspbridge/pmgr/dmm.o
CC [M] drivers/staging/tidspbridge/pmgr/cmm.o
CC [M] drivers/staging/tidspbridge/pmgr/dbll.o
In file included from include/linux/spinlock.h:55:0,
from include/linux/semaphore.h:13,
from drivers/staging/tidspbridge/include/dspbridge/host_os.h:22,
from drivers/staging/tidspbridge/pmgr/dbll.c:19:
drivers/staging/tidspbridge/pmgr/dbll.c: In function ‘dbll_rmm_alloc’:
include/linux/kernel.h:311:23: warning: ignoring return value of ‘kstrtol’, declared with attribute warn_unused_result [-Wunused-result]
#define strict_strtol kstrtol
^
drivers/staging/tidspbridge/pmgr/dbll.c:1235:3: note: in expansion of macro ‘strict_strtol’
strict_strtol(sz_last_token, 10, (long *)&req);
^
CC [M] drivers/staging/tidspbridge/rmgr/dbdcd.o
CC [M] drivers/staging/tidspbridge/rmgr/disp.o
CC [M] drivers/staging/tidspbridge/rmgr/drv.o
CC [M] drivers/staging/tidspbridge/rmgr/mgr.o
CC [M] drivers/staging/tidspbridge/rmgr/node.o
CC [M] drivers/staging/tidspbridge/rmgr/proc.o
CC [M] drivers/staging/tidspbridge/rmgr/pwr.o
CC [M] drivers/staging/tidspbridge/rmgr/rmm.o
CC [M] drivers/staging/tidspbridge/rmgr/strm.o
CC [M] drivers/staging/tidspbridge/rmgr/dspdrv.o
CC [M] drivers/staging/tidspbridge/rmgr/nldr.o
CC [M] drivers/staging/tidspbridge/rmgr/drv_interface.o
In file included from include/linux/node.h:17:0,
from include/linux/cpu.h:18,
from include/linux/perf_event.h:514,
from include/linux/ftrace_event.h:8,
from include/trace/syscall.h:6,
from include/linux/syscalls.h:77,
from drivers/staging/tidspbridge/include/dspbridge/host_os.h:26,
from drivers/staging/tidspbridge/rmgr/drv_interface.c:23:
drivers/staging/tidspbridge/rmgr/drv_interface.c: In function ‘bridge_mmap’:
drivers/staging/tidspbridge/rmgr/drv_interface.c:623:18: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 9 has type ‘pgprot_t {aka unsigned int}’ [-Wformat=]
dev_dbg(bridge, "%s: vm filp %p offset %x start %lx end %lx page_prot "
^
include/linux/device.h:896:31: note: in definition of macro ‘dev_dbg’
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^
CC [M] drivers/staging/tidspbridge/dynload/cload.o
drivers/staging/tidspbridge/dynload/cload.c: In function ‘dload_data’:
drivers/staging/tidspbridge/dynload/cload.c:1337:1: warning: the frame size of 1184 bytes is larger than 1072 bytes [-Wframe-larger-than=]
} /* dload_data */
^
CC [M] drivers/staging/tidspbridge/dynload/getsection.o
CC [M] drivers/staging/tidspbridge/dynload/reloc.o
CC [M] drivers/staging/tidspbridge/dynload/tramp.o
CC [M] drivers/staging/tidspbridge/hw/hw_mmu.o
LD [M] drivers/staging/tidspbridge/bridgedriver.o
drivers/staging/tidspbridge/core/tiomap3430.o: In function `write_ext32_bit_dsp_data':
tiomap3430.c:(.text+0x1990): multiple definition of `write_ext32_bit_dsp_data'
drivers/staging/tidspbridge/core/io_sm.o:io_sm.c:(.text+0x84): first defined here
drivers/staging/tidspbridge/core/tiomap3430.o: In function `read_ext32_bit_dsp_data':
tiomap3430.c:(.text+0x19a4): multiple definition of `read_ext32_bit_dsp_data'
drivers/staging/tidspbridge/core/io_sm.o:io_sm.c:(.text+0x98): first defined here
drivers/staging/tidspbridge/core/tiomap_io.o: In function `write_ext32_bit_dsp_data':
tiomap_io.c:(.text+0x0): multiple definition of `write_ext32_bit_dsp_data'
drivers/staging/tidspbridge/core/io_sm.o:io_sm.c:(.text+0x84): first defined here
drivers/staging/tidspbridge/core/tiomap_io.o: In function `read_ext32_bit_dsp_data':
tiomap_io.c:(.text+0x14): multiple definition of `read_ext32_bit_dsp_data'
drivers/staging/tidspbridge/core/io_sm.o:io_sm.c:(.text+0x98): first defined here
scripts/Makefile.build:430: recipe for target 'drivers/staging/tidspbridge/bridgedriver.o' failed
make[3]: *** [drivers/staging/tidspbridge/bridgedriver.o] Error 1
scripts/Makefile.build:441: recipe for target 'drivers/staging/tidspbridge' failed
make[2]: *** [drivers/staging/tidspbridge] Error 2
scripts/Makefile.build:441: recipe for target 'drivers/staging' failed
make[1]: *** [drivers/staging] Error 2
Makefile:947: recipe for target 'drivers' failed
make: *** [drivers] Error 2
 
Didi you try to add
Code:
-Wl,--allow-multiple-definition
to CFLAGS or LDFLAGS to allow multiple definition during link ?
 
I did :
CFLAGS="-Wl --allow-multiple-definition"
LDFLAGS="-Wl --allow-multiple-definition"
and restarted the make as is, still fails
 
export LDFLAGS="--allow-multiple-definition"
if getting ld errors about multiple definitions on make modules
 
Some applications (MPlayer, audacious) are now trying to use memfd() in the newest Slackware.
They work anyway, so it's not a backport request, just an information.
 
Notaz, if I recall right, you wrote somewhere in these boards a way to re-enable suspend to ram, but I can't find it back.
Can you provide some info please, I'll put them in the wiki.
 
Oh ?
I thought you reverted it back to the old behavior to avoid storage corruption.
 
Back
Top