1. 03 10月, 2021 1 次提交
  2. 02 10月, 2021 6 次提交
  3. 30 9月, 2021 4 次提交
  4. 29 9月, 2021 23 次提交
  5. 28 9月, 2021 6 次提交
    • A
      net: hns3: fix hclge_dbg_dump_tm_pg() stack usage · c894b51e
      Arnd Bergmann 提交于
      This function copies strings around between multiple buffers
      including a large on-stack array that causes a build warning
      on 32-bit systems:
      
      drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c: In function 'hclge_dbg_dump_tm_pg':
      drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c:782:1: error: the frame size of 1424 bytes is larger than 1400 bytes [-Werror=frame-larger-than=]
      
      The function can probably be cleaned up a lot, to go back to
      printing directly into the output buffer, but dynamically allocating
      the structure is a simpler workaround for now.
      
      Fixes: 04d96139 ("net: hns3: refine function hclge_dbg_dump_tm_pri()")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c894b51e
    • H
      net: mdio: mscc-miim: Fix the mdio controller · c6995117
      Horatiu Vultur 提交于
      According to the documentation the second resource is optional. But the
      blamed commit ignores that and if the resource is not there it just
      fails.
      
      This patch reverts that to still allow the second resource to be
      optional because other SoC have the some MDIO controller and doesn't
      need to second resource.
      
      Fixes: 672a1c39 ("net: mdio: mscc-miim: Make use of the helper function devm_platform_ioremap_resource()")
      Signed-off-by: NHoratiu Vultur <horatiu.vultur@microchip.com>
      Reviewed-by: NCai Huoqing <caihuoqing@baidu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c6995117
    • R
      net: sun: SUNVNET_COMMON should depend on INET · 103bde37
      Randy Dunlap 提交于
      When CONFIG_INET is not set, there are failing references to IPv4
      functions, so make this driver depend on INET.
      
      Fixes these build errors:
      
      sparc64-linux-ld: drivers/net/ethernet/sun/sunvnet_common.o: in function `sunvnet_start_xmit_common':
      sunvnet_common.c:(.text+0x1a68): undefined reference to `__icmp_send'
      sparc64-linux-ld: drivers/net/ethernet/sun/sunvnet_common.o: in function `sunvnet_poll_common':
      sunvnet_common.c:(.text+0x358c): undefined reference to `ip_send_check'
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Aaron Young <aaron.young@oracle.com>
      Cc: Rashmi Narasimhan <rashmi.narasimhan@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      103bde37
    • S
      ionic: fix gathering of debug stats · c23bb54f
      Shannon Nelson 提交于
      Don't print stats for which we haven't reserved space as it can
      cause nasty memory bashing and related bad behaviors.
      
      Fixes: aa620993 ("ionic: pull per-q stats work out of queue loops")
      Signed-off-by: NShannon Nelson <snelson@pensando.io>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c23bb54f
    • A
      dmascc: add CONFIG_VIRT_TO_BUS dependency · 05e97b3d
      Arnd Bergmann 提交于
      Many architectures don't define virt_to_bus() any more, as drivers
      should be using the dma-mapping interfaces where possible:
      
      In file included from drivers/net/hamradio/dmascc.c:27:
      drivers/net/hamradio/dmascc.c: In function 'tx_on':
      drivers/net/hamradio/dmascc.c:976:30: error: implicit declaration of function 'virt_to_bus'; did you mean 'virt_to_fix'? [-Werror=implicit-function-declaration]
        976 |                              virt_to_bus(priv->tx_buf[priv->tx_tail]) + n);
            |                              ^~~~~~~~~~~
      arch/arm/include/asm/dma.h:109:52: note: in definition of macro 'set_dma_addr'
        109 |         __set_dma_addr(chan, (void *)__bus_to_virt(addr))
            |                                                    ^~~~
      
      Add the Kconfig dependency to prevent this from being built on
      architectures without virt_to_bus().
      
      Fixes: bc1abb9e ("dmascc: use proper 'virt_to_bus()' rather than casting to 'int'")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      05e97b3d
    • A
      net: ks8851: fix link error · 51bb08dd
      Arnd Bergmann 提交于
      An object file cannot be built for both loadable module and built-in
      use at the same time:
      
      arm-linux-gnueabi-ld: drivers/net/ethernet/micrel/ks8851_common.o: in function `ks8851_probe_common':
      ks8851_common.c:(.text+0xf80): undefined reference to `__this_module'
      
      Change the ks8851_common code to be a standalone module instead,
      and use Makefile logic to ensure this is built-in if at least one
      of its two users is.
      
      Fixes: 797047f8 ("net: ks8851: Implement Parallel bus operations")
      Link: https://lore.kernel.org/netdev/20210125121937.3900988-1-arnd@kernel.org/Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Acked-by: NMarek Vasut <marex@denx.de>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      51bb08dd