09 Dec, 2011

1 commit

  • In commit 834d0ee317b (uintxy_t removal) not all changes were trival text replacements, some converted u64 -> dma_addr_t.
    In some configurations dma_addr_t is a u32, meaning that some bit operations cause build warnings. From Randy Dunlap:

    ----------------
    on i386 (X86_32) builds:

    drivers/staging/et131x/et131x.c:2483:8: warning: right shift count >= width of type
    drivers/staging/et131x/et131x.c:2531:8: warning: right shift count >= width of type
    ----------------

    Removed these by reverting dma_addr_t back to u64 types, as well as
    reverting some other non-trivial changes from the aforementioned commit.

    Reported-by: Randy Dunlap
    Signed-off-by: Mark Einon
    Acked-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Mark Einon
     

27 Nov, 2011

7 commits


19 Nov, 2011

3 commits

  • ET131X is a network device, so it should depend on
    NETDEVICES. (This part won't be needed when the driver
    moves to drivers/net/.) It also uses PHYLIB interfaces,
    so it should select PHYLIB. Fixes these build errors:

    ERROR: "phy_connect" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_find_first" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_register" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_alloc" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_stop" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_start" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_free" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_unregister" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_print_status" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_ethtool_gset" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_ethtool_sset" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_mii_ioctl" [drivers/staging/et131x/et131x.ko] undefined!

    Signed-off-by: Randy Dunlap
    Acked-by: : Mark Einon
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • ET131X uses netdev interfaces so it should depend on NET.

    Fixes these build errors:
    ERROR: "ethtool_op_get_link" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "eth_validate_addr" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "register_netdev" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_connect" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_find_first" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_register" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_alloc" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "alloc_etherdev_mqs" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "netif_device_detach" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_stop" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "netif_device_attach" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_start" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "free_netdev" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_free" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_unregister" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "unregister_netdev" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "__netif_schedule" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_print_status" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "dev_kfree_skb_any" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "dev_alloc_skb" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "netif_rx" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "eth_type_trans" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "skb_put" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_ethtool_gset" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_ethtool_sset" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_mii_ioctl" [drivers/staging/et131x/et131x.ko] undefined!

    Signed-off-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • Randy Dunlap reports that the ex131x driver doesn't build when CONFIG_PM_SLEEP is not enabled.
    This bug was introduced when moving code around to remove some forward declarations earlier, the #endif part of #ifdef CONFIG_PM_SLEEP was not moved at the same time. Now fixed by moving it to its proper place.

    Reported-by: Randy Dunlap
    Signed-off-by: Mark Einon
    Acked-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Mark Einon
     

26 Oct, 2011

2 commits

  • Mark Einon points out that the Kconfig option for NETDEV_1000 no longer
    exists, and the merge of the staging drivers should have removed that
    for the et131x driver.

    And while checking for it, I noticed that slicoss had the same stale
    dependency. Remove that one too.

    Reported-by: Mark Einon
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1519 commits)
    staging: et131x: Remove redundant check and return statement
    staging: et131x: Mainly whitespace changes to appease checkpatch
    staging: et131x: Remove last of the forward declarations
    staging: et131x: Remove even more forward declarations
    staging: et131x: Remove yet more forward declarations
    staging: et131x: Remove more forward declarations
    staging: et131x: Remove forward declaration of et131x_adapter_setup
    staging: et131x: Remove some forward declarations
    staging: et131x: Remove unused rx_ring.recv_packet_pool
    staging: et131x: Remove call to find pci pm capability
    staging: et131x: Remove redundant et131x_reset_recv() call
    staging: et131x: Remove unused rx_ring.recv_buffer_pool
    Staging: bcm: Fix three initialization errors in InterfaceDld.c
    Staging: bcm: Fix coding style issues in InterfaceDld.c
    staging:iio:dac: Add AD5360 driver
    staging:iio:trigger:bfin-timer: Fix compile error
    Staging: vt6655: add some range checks before memcpy()
    Staging: vt6655: whitespace fixes to iotcl.c
    Staging: vt6656: add some range checks before memcpy()
    Staging: vt6656: whitespace cleanups in ioctl.c
    ...

    Fix up conflicts in:
    - drivers/{Kconfig,Makefile}, drivers/staging/{Kconfig,Makefile}:
    vg driver movement
    - drivers/staging/brcm80211/brcmfmac/{dhd_linux.c,mac80211_if.c}:
    driver removal vs now stale changes
    - drivers/staging/rtl8192e/r8192E_core.c:
    driver removal vs now stale changes
    - drivers/staging/et131x/et131*:
    driver consolidation into one file, tried to do fixups

    Linus Torvalds
     

23 Oct, 2011

27 commits