1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-14 19:23:53 +02:00
openwrt/target/linux/layerscape/patches-5.4/701-net-0180-staging-dpaa2-evb-Fix-W-1-warnings.patch
Yangbo Lu cddd459140 layerscape: add patches-5.4
Add patches for linux-5.4. The patches are from NXP LSDK-20.04 release
which was tagged LSDK-20.04-V5.4.
https://source.codeaurora.org/external/qoriq/qoriq-components/linux/

For boards LS1021A-IOT, and Traverse-LS1043 which are not involved in
LSDK, port the dts patches from 4.14.

The patches are sorted into the following categories:
  301-arch-xxxx
  302-dts-xxxx
  303-core-xxxx
  701-net-xxxx
  801-audio-xxxx
  802-can-xxxx
  803-clock-xxxx
  804-crypto-xxxx
  805-display-xxxx
  806-dma-xxxx
  807-gpio-xxxx
  808-i2c-xxxx
  809-jailhouse-xxxx
  810-keys-xxxx
  811-kvm-xxxx
  812-pcie-xxxx
  813-pm-xxxx
  814-qe-xxxx
  815-sata-xxxx
  816-sdhc-xxxx
  817-spi-xxxx
  818-thermal-xxxx
  819-uart-xxxx
  820-usb-xxxx
  821-vfio-xxxx

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2020-05-07 12:53:06 +02:00

42 lines
1.3 KiB
Diff

From 18d400e71c415adc8a5e5c91e461968907d26606 Mon Sep 17 00:00:00 2001
From: Razvan Stefanescu <razvan.stefanescu@nxp.com>
Date: Thu, 6 Apr 2017 11:02:57 +0300
Subject: [PATCH] staging: dpaa2-evb: Fix W=1 warnings
Fix warnings triggered by '-Wsign-compare' flag.
Signed-off-by: Razvan Stefanescu <razvan.stefanescu@nxp.com>
---
drivers/staging/fsl-dpaa2/evb/evb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/drivers/staging/fsl-dpaa2/evb/evb.c
+++ b/drivers/staging/fsl-dpaa2/evb/evb.c
@@ -162,7 +162,7 @@ static irqreturn_t _evb_irq0_handler_thr
/* Sanity check */
if (WARN_ON(!evb_dev || !evb_dev->irqs || !evb_dev->irqs[irq_index]))
goto out;
- if (WARN_ON(evb_dev->irqs[irq_index]->msi_desc->irq != irq_num))
+ if (WARN_ON(evb_dev->irqs[irq_index]->msi_desc->irq != (u32)irq_num))
goto out;
err = dpdmux_get_irq_status(io, 0, token, irq_index, &status);
@@ -890,7 +890,7 @@ static int evb_ethtool_get_sset_count(st
static void evb_ethtool_get_strings(struct net_device *netdev,
u32 stringset, u8 *data)
{
- int i;
+ u32 i;
switch (stringset) {
case ETH_SS_STATS:
@@ -906,7 +906,7 @@ static void evb_ethtool_get_stats(struct
u64 *data)
{
struct evb_port_priv *port_priv = netdev_priv(netdev);
- int i;
+ u32 i;
int err;
for (i = 0; i < ARRAY_SIZE(evb_ethtool_counters); i++) {