kernel: fix a compiler warning on 64 bit systems
authorFelix Fietkau <nbd@nbd.name>
Sun, 15 May 2016 15:12:01 +0000 (17:12 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sun, 15 May 2016 15:12:01 +0000 (17:12 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/generic/patches-4.4/642-bridge_port_isolate.patch

index 1dc32b6f539eabcf72bde2810259e871d2cde714..1f1cb1d394a1b873d6080c7672c79f142e9cade6 100644 (file)
@@ -24,7 +24,7 @@ Isolating individual bridge ports
 +      int isolate_mode = (p->flags & BR_ISOLATE_MODE) ? 1 : 0;
 +      return sprintf(buf, "%d\n", isolate_mode);
 +}
-+static ssize_t store_isolate_mode(struct net_bridge_port *p, unsigned long v)
++static int store_isolate_mode(struct net_bridge_port *p, unsigned long v)
 +{
 +      if (v)
 +              p->flags |= BR_ISOLATE_MODE;