From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751831AbcGUSTF (ORCPT ); Thu, 21 Jul 2016 14:19:05 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:52791 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751592AbcGUSTD (ORCPT ); Thu, 21 Jul 2016 14:19:03 -0400 From: Vivien Didelot To: Cong Wang Cc: Linux Kernel Network Developers , LKML , kernel@savoirfairelinux.com, "David S. Miller" , Stephen Hemminger Subject: Re: [PATCH] net: bridge: br_set_ageing_time takes a clock_t In-Reply-To: References: <20160721164219.26723-1-vivien.didelot@savoirfairelinux.com> User-Agent: Notmuch/0.22 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) Date: Thu, 21 Jul 2016 14:18:59 -0400 Message-ID: <874m7ilur0.fsf@ketchup.mtl.sfl> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Cong, Cong Wang writes: > On Thu, Jul 21, 2016 at 9:42 AM, Vivien Didelot > wrote: >> Change the ageing_time type in br_set_ageing_time() from u32 to what it >> is expected to be, i.e. a clock_t. > > You also need to change struct switchdev_attr: > > struct switchdev_attr { > struct net_device *orig_dev; > enum switchdev_attr_id id; > u32 flags; > void *complete_priv; > void (*complete)(struct net_device *dev, int err, void *priv); > union { > struct netdev_phys_item_id ppid; /* PORT_PARENT_ID */ > u8 stp_state; /* PORT_STP_STATE */ > unsigned long brport_flags; /* PORT_BRIDGE_FLAGS */ > u32 ageing_time; /* BRIDGE_AGEING_TIME */ > bool vlan_filtering; /* > BRIDGE_VLAN_FILTERING */ > } u; > }; Already changed in net/master as of eabfdda93477 ("net: switchdev: change ageing_time type to clock_t"). Thanks, Vivien