close

Kernel 3.4 to 3.10 porting guide

 

Here are some issues you may run into when porting something from 3.4 to 3.10:


  • a whole set of __dev... macros are no longer used or defined
    • Here is the list: __devinit, __devinitdata, __devinitconst, __devexit, __devexitdata, __devexitconst
    • background: These attributes were used on certain driver functions and data declarations, putting them in a separate section that could be discarded under certain circumstances. This functionality is no longer relevant, and the macros were removed in version 3.8 of the kernel. The macros should no longer be used.
    • Just remove the attributes any place they are used.
    • see this commit: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=54b956b903607

      see
      http://tinylab.org/fixup-compile-error-with-devinit-devexit/
    •  

  • sysdev.h is gone, along with all it declared:
    • struct sys_device, struct sysdev_attribute

  • arch/arm/include/asm/hardware/gic.h was moved to include/linux/irqchip/arm-gic.h
    • change #include <asm/hardware/gic.h> to #include <linux/irqchip/arm-gic.h>

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 立你斯 的頭像
    立你斯

    立你斯學習記錄

    立你斯 發表在 痞客邦 留言(0) 人氣()