Received: by 10.223.164.202 with SMTP id h10csp8741wrb; Wed, 8 Nov 2017 11:05:51 -0800 (PST) X-Google-Smtp-Source: ABhQp+Q2c+pkFZ5gGdJaK0lHK9nd1lurDfDqMQqoVDcUyCY4fv6meRLX7ar4I7/5W47BxyQxErkw X-Received: by 10.99.120.13 with SMTP id t13mr1462588pgc.40.1510167951277; Wed, 08 Nov 2017 11:05:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510167951; cv=none; d=google.com; s=arc-20160816; b=W/jV5KQdrEHAbgp3ZyZeaPk3vPhZGgm6lMHe1m0by/ZtYq9rFqHL/hICHHCgEGPAVP tULgBzH2Ik/O47oC5JVicX6IFrf79EMFFfrGP3xmX1Gs9i4DoSVMACw11Mp8+wtKsum5 +ODigyXEOR/o/0EvusTfA2aMLu/0EumSrghFRnEueZNFcc83bCCxHdI8FW24IuanOBjm Tq0SIl7XjWNZ/Och8wTwwEIJ/zjTcucKLsLgbTBfry/bI04Jy5dmLc3BakgBLRcR8Osp WIMY2M5TKcIG0FPpP/zoZO0cQiKolG/5KDmnHE6+OM5v8UF4E/5TI1X8V4q9tXM3AHBz nSxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=XKikgKOFqe+OfGsNjdW8z/5Rq9F52ReqinUqIT8o2a8=; b=cpBUs9NXcQzbDc6kkm3Ejt4bez92pjowoshiNjHWOLdgwk9IOKJ6mRGmZfBswLkyza 1nyhHYrQtFOjL9Pr0XihPx7JZ3jfWyNCURR0K5TkzT0cNxBkDzy66TlnJJg48q2CXWMF nJcgBxJ+u5P4U50p6sqJPA1TJ6aSZui00o4qtBUC5ktPv9/emxWa4im+WP3VmybLkwcL FN5R7ijJxCLa6hc78BVWTOlbrexxqIf/vGG6qJUr1utMrSrnl+kCD2CJePasQkGNPpfF oHpC9ZQNHQm9cpqcg1QS0QMzGH3gugsuL7xnpEC9NdWzm9hoQsBBqEHMFM1D23rXEexS c9Sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y79si4756553pfb.41.2017.11.08.11.05.39; Wed, 08 Nov 2017 11:05:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752309AbdKHTFF (ORCPT + 84 others); Wed, 8 Nov 2017 14:05:05 -0500 Received: from mail.savoirfairelinux.com ([208.88.110.44]:57422 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751716AbdKHTFE (ORCPT ); Wed, 8 Nov 2017 14:05:04 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 592429C1AB8; Wed, 8 Nov 2017 14:05:03 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id FLHogb6XNYa1; Wed, 8 Nov 2017 14:05:02 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id DF4DB9C2D27; Wed, 8 Nov 2017 14:05:02 -0500 (EST) X-Virus-Scanned: amavisd-new at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9asoR4KbbGh5; Wed, 8 Nov 2017 14:05:02 -0500 (EST) Received: from localhost (unknown [192.168.49.104]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id B2ECD9C2379; Wed, 8 Nov 2017 14:05:02 -0500 (EST) From: Vivien Didelot To: Joe Perches , netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Andrew Lunn Subject: Re: [PATCH net-next 4/6] net: dsa: remove trans argument from vlan ops In-Reply-To: <1510163351.15768.29.camel@perches.com> References: <20171108171917.5965-1-vivien.didelot@savoirfairelinux.com> <20171108171917.5965-5-vivien.didelot@savoirfairelinux.com> <1510163351.15768.29.camel@perches.com> Date: Wed, 08 Nov 2017 14:05:02 -0500 Message-ID: <87zi7w617l.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joe, Joe Perches writes: > On Wed, 2017-11-08 at 12:19 -0500, Vivien Didelot wrote: >> The DSA switch VLAN ops pass the switchdev_trans structure down to the >> drivers, but no one is using them and they aren't supposed to anyway. > [] >> diff --git a/include/net/dsa.h b/include/net/dsa.h > [] >> @@ -410,12 +410,10 @@ struct dsa_switch_ops { >> */ >> int (*port_vlan_filtering)(struct dsa_switch *ds, int port, >> bool vlan_filtering); >> - int (*port_vlan_prepare)(struct dsa_switch *ds, int port, >> - const struct switchdev_obj_port_vlan *vlan, >> - struct switchdev_trans *trans); >> - void (*port_vlan_add)(struct dsa_switch *ds, int port, >> - const struct switchdev_obj_port_vlan *vlan, >> - struct switchdev_trans *trans); >> + int (*port_vlan_prepare)(struct dsa_switch *ds, int port, >> + const struct switchdev_obj_port_vlan *vlan); >> + void (*port_vlan_add)(struct dsa_switch *ds, int port, >> + const struct switchdev_obj_port_vlan *vlan); >> int (*port_vlan_del)(struct dsa_switch *ds, int port, >> const struct switchdev_obj_port_vlan *vlan); > > I think this bit is slightly worse. > Mixing alignment styles seems odd. > > I think it's better to either align all the (*func) uses > on a tabstop or > none of them. I couldn't use a tab here as it is done in the other functions, because of the 80-char limit. I will send a patch soon to remove all of this alignment style in this header because it doesn't bring any value. Thanks, Vivien From 1583521103518143693@xxx Wed Nov 08 17:50:05 +0000 2017 X-GM-THRID: 1583519426107842444 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread