Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3529698pxt; Tue, 10 Aug 2021 05:55:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx936k2JmfBF+EJAVNFwmNwPdFevYxrc5G/aI0Nckt72wJet4W5BWt1AOEFHVtLqHs4+umv X-Received: by 2002:a50:a696:: with SMTP id e22mr4728662edc.180.1628600157606; Tue, 10 Aug 2021 05:55:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628600157; cv=pass; d=google.com; s=arc-20160816; b=jFUjRsEr5/bMKlprpK4wN8KER7+B7qkQG4KmWie9MK78jB0qHitsduVOpxaxhoUF6/ +598HQW6ySwRAKEz0t+FMP6UP1xkBC5CIdjJtEW0VmaFRnwyMPrFy7qJpV1VZ3CPzmWp vBc/p2n3Xp+gUs1I3c5NqumQpvhVDxSkdIepK8omZffpBtBDNQjhRyNXMJLhLhsDIiOy ncGHtVOKinpm9Rk2NbynzW8Z1qRZBQXZ8FCFqnIy+1SzjjKqg371Lb2rUtj1HFcO43LX eh6JxGYBXeHfTqucWIvyxXV6oicWu4fsAGZ7mzKF04lEaOhqgZIgKIEegvSTcSZr8VSl rFdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=ApJ5sLXC4cfgLIM6imu8gADWDLGOZAxD4WkS0TCOmFk=; b=eiZj5dQMo/fg1iPqoNAxnT7eQoElBNV4QHCH7AcpoV4NIRafE3dlWjFXShh13NTtdI cwjqxp7dznp/+JK3DHEegj96g9lXSFTZgnZhzKQVDqJ03oOE1Euy2arhnnyC9OSC5hcG wo9fxlGCaiV/hfVA6laUHtazIyGeqzFRnMeiqAIxukPKiH1rclnzoSz5TJ6hKkc2weel PAC0gL/Briv0fFor1OeppMvdi1XdC3lFkWnaa9a/KjVsoezw3oDB0WWLIk220mQBFsj5 1LSDqYMqDruWSZEqOU5zu8Hq623nfd/t4VdqkTGnsvjF45H1ydJZmCwnpmJfaJjZbwlU Lb9g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=XHo4+Lc6; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si1400364edv.391.2021.08.10.05.55.33; Tue, 10 Aug 2021 05:55:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=XHo4+Lc6; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237608AbhHJJfY (ORCPT + 99 others); Tue, 10 Aug 2021 05:35:24 -0400 Received: from mail-am6eur05on2076.outbound.protection.outlook.com ([40.107.22.76]:52097 "EHLO EUR05-AM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234188AbhHJJfX (ORCPT ); Tue, 10 Aug 2021 05:35:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rb6bWnJL/Jt5Xvph27YTqJEkSpHJZqeLVRqpS9LWu0emy9ovJx+ucGG6W3gNWDywqznnW+E2qf07H8XauTUmY15PMNGe6NrKLsWBh4x8xKxT6R/DsjMCHAef0FCmQVRW5mkJtLk1frYxPQIopsbZYd5dGlaRt1XL3zzcEL0KIwkPakOyb86mEaNA9aoMANR6QXgxcKV/Il4w0UQLrDpqn+PivLtuIyctNIjpLvT6OINbUJAp8v70ywfuMEcsX49mywqBw8XZ41KzAD2PJ2BCqamNCa7nioMYSIunfQrBsqPMfZuOJycWLV5TgKM0Dek5FxHSmANZcRh1hAeqm3IQOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ApJ5sLXC4cfgLIM6imu8gADWDLGOZAxD4WkS0TCOmFk=; b=nTkemH3MGNwKhJskJl4e9eKZyFssr3el/vdT9arOHkPGJ/rDeCkWLKoGU2z6CoGkxg5SAOIyPrEdP9BDi8EuWqp/TLOmpGIM898VGk3TbR6MHfFAJl44vTLkodpV03WuQWNd79F5d83lOhJCIZar4jOpTqUbI+Pq5Fpr0hcLfhY8bxoXZDzufAztfpjy+cfAhH0nAH54Tt1pIyfrMTPvMMTJICLcUSfm6dJUpKoN5Og62NXzBOzRDmcEZyCwKj4ycNqT68Ah0WIi5rJSVK5kOjx5+uZlVm44Tn8GiOfxs4YygJaDq1pd+XPGFAU4zsK1dytRMCpnpBfUWAdrmeC9+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ApJ5sLXC4cfgLIM6imu8gADWDLGOZAxD4WkS0TCOmFk=; b=XHo4+Lc6UY72wxWYr9xyMfVcnHdeIHnvIRiv9Sk/sBQ4FApyfg27JBKeKLv2x6NYW3DrBbX7EZ1e5SKRjPKq8kE+lBA83vz3u45J1b1NMTICaipKCjU8AQvpk2IfYyBWToZ4+SrW9UGFQoHc9VAugio7JT7rfdjwDOq/G/ZGyY4= Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by VI1PR04MB4813.eurprd04.prod.outlook.com (2603:10a6:803:51::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.21; Tue, 10 Aug 2021 09:34:57 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::109:1995:3e6b:5bd0]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::109:1995:3e6b:5bd0%2]) with mapi id 15.20.4394.023; Tue, 10 Aug 2021 09:34:57 +0000 From: Vladimir Oltean To: Russell King - ARM Linux admin CC: Leon Romanovsky , "netdev@vger.kernel.org" , Jakub Kicinski , "David S. Miller" , Andrew Lunn , Florian Fainelli , Vivien Didelot , Vladimir Oltean , Vadym Kochan , Taras Chornyi , Saeed Mahameed , Jiri Pirko , Ido Schimmel , Lars Povlsen , Steen Hegelund , "UNGLinuxDriver@microchip.com" , Grygorii Strashko , Julian Wiedmann , Karsten Graul , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Jianbo Liu , Vlad Buslov , Bjarni Jonasson , Vignesh Raghavendra , Tobias Waldekranz , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-omap@vger.kernel.org" , "linux-s390@vger.kernel.org" , Ido Schimmel Subject: Re: [PATCH net] net: switchdev: zero-initialize struct switchdev_notifier_fdb_info emitted by drivers towards the bridge Thread-Topic: [PATCH net] net: switchdev: zero-initialize struct switchdev_notifier_fdb_info emitted by drivers towards the bridge Thread-Index: AQHXjSAoM5FylMZBM0itAyPu8B/6WKtsTdGAgAAX6QCAAA/AAIAABjsA Date: Tue, 10 Aug 2021 09:34:57 +0000 Message-ID: <20210810093456.3ojqgvhe6ivo7sdr@skbuf> References: <20210809131152.509092-1-vladimir.oltean@nxp.com> <20210810081616.wjx6jnlh3qxqsfm2@skbuf> <20210810091238.GB1343@shell.armlinux.org.uk> In-Reply-To: <20210810091238.GB1343@shell.armlinux.org.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: armlinux.org.uk; dkim=none (message not signed) header.d=none;armlinux.org.uk; dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7288cdcd-b889-4044-a992-08d95be21e3b x-ms-traffictypediagnostic: VI1PR04MB4813: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3631; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: n7IBXFFOOBzvdblMsAiCBQcyjJDfMMA6LNhCvZLDOtd+k5OI437OD6Ues+1+7QxfoApi6ihDO6rG2rCx9k0BfBL6XDjgkOhZvuRSd0AzQvcLrPwWeP7h7p9gjexQc3sxHQoxZCuKIL7YUmF9h26z+NEQpiMnqmf6eDO2VJaszEBqqJD7nmePuX9iy4fNC0yaNxpI811tv5XzD7zMuNJmBoCwSfmaj18Qve0EFHcdKmMkjJMFABnIm/WL5o9Rz27pHOPpquMid6tgKr0nknoF9EtytePaFddBdP/3RwzGg89w8djqZ7vRSp5akjcvbRYaoXBwc0/jK5Seo9qFtM8X52mpiPSMOI7EnW59uGMrWqItwJEJoOMV8xKCJQXI1a9GKqoORQW57UljG7NDPqoveyZsusrYtm9Zhw/ZHxE6WKuDgxqWle1MPXYFHZfi+RL5Bv1WcOlCTtML0D/Em9f49mNdg3POvQ7rwg7MXDGxZOSJmUFbegj80M3KeloVvpmxi2LPj0idzkTbrFRt2//7qgr2IxhBjh6yWsq3zXAVegobOCAOT7qiA/u0cdXCLcrfeUOr03fD1TSflhQihWVA0FieJXigRf6TnhhNEoTpT/DB/Wc96+M655u7BiLlDnX6YeIuOrLU656G63dGX7eK2EgFGFKNupuVrwV9JtPCIB+wBc745+vEnnUX6zTDZqOUqMa0uOh7uIeYTlmjag5ifw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(7916004)(366004)(396003)(39860400002)(346002)(376002)(136003)(38070700005)(2906002)(6916009)(38100700002)(122000001)(83380400001)(66946007)(64756008)(6506007)(86362001)(4744005)(76116006)(91956017)(6512007)(66446008)(6486002)(9686003)(71200400001)(4326008)(5660300002)(8936002)(33716001)(54906003)(44832011)(7416002)(8676002)(26005)(7406005)(1076003)(66556008)(316002)(478600001)(186003)(66476007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?AdFSMIBUQ/cYhDRjaF/PJSR9ehCeLT+pN9T+UYnTxAqjKOHlGJRcBKRF5FV7?= =?us-ascii?Q?3dm343Dr6AlURBdKwIn1K1UY1VcWY6HpOvP/lvs/0EWL44FfcdVGSpq13N+8?= =?us-ascii?Q?VgYYyJHSe4xhXyknBx0F5RaEfUy+Nox8JV8jPbDKguQdJACNAHxphw7ri7Z3?= =?us-ascii?Q?vzYiojlLNaN+ZKWZAKKO+F6TYO0D2MNdWeEtmjnN0M4/+zb7JCvGGQuLJCPZ?= =?us-ascii?Q?wh4yHz+bDENkDgek6HWWqLJgIscsn+KJnb9OLtZ/PNMOU//PLyM1QASJ18Ng?= =?us-ascii?Q?1s1/Itde42xUS8ldvM8taaejziZJC9T2DmHufqV02s43LJQuzFPULj3yOEL0?= =?us-ascii?Q?TQKkRWWU+Le7YVwsNYjGI/7sJW4NsZD2qIqbHCmaQVOZMsSer76t99jJ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/rlXtWOS9lbPN2K953rCWIeQnOsn3prax/9Vnw/KAm10PdvZqw?= =?us-ascii?Q?DbKH4RXmEfaEMrKZDfGBo2Ty?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <191EF1BC60CEDA4BA54D63A66D8A2290@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7288cdcd-b889-4044-a992-08d95be21e3b X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2021 09:34:57.5929 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jot+X/jf4GTXyalIHpWZ7ajCVmN4bZQBGRT6bNIfdd1nD7N5agkvggXKd3UTcy6Mq8NJYvGeO51u+ndF38+ORg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4813 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 10:12:38AM +0100, Russell King - ARM Linux admin wr= ote: > There's a difference between: >=20 > struct foo bar =3D { 0 }; >=20 > and >=20 > struct foo bar =3D { }; >=20 > The former tells the compiler that you wish to set the first member of > struct foo, which will be an integer type, to zero. The latter is an > empty initialiser where all members and sub-members of the structure > default to a zero value. >=20 > You should have no problem with the latter. You will encounter problems > with the former if the first member of struct foo is not an integer > type. Ok, that's good to know. Seeing that this patch has not been applied yet I'll go for a v2.=