Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp575121pxb; Tue, 15 Feb 2022 22:34:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJynVl0WeBl2GoTfRgnZYdDl6A5sZbPzd9G4l8TRaMeHTq747QCK21exUdSoY1z0SpYR2Pf1 X-Received: by 2002:a17:90b:1e11:b0:1b9:d23:bc3c with SMTP id pg17-20020a17090b1e1100b001b90d23bc3cmr112521pjb.77.1644993290704; Tue, 15 Feb 2022 22:34:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644993290; cv=pass; d=google.com; s=arc-20160816; b=t/Wvyxd53Ouzn+L2UnfzbPVuj/ht1clZensr7EIP2UQT1jgaJuzS3qA08ep6rNOnVF nab0/9yxoKUzkSq1x15KmRMUhPgBSoBuAo7fDi6fuLC2T8/TFYoy3Ky3HR8f4hpPgJ1Q AcEDn3bB4JX8hVP+1FPo9kxTDWvM2IqefPYIGNLj9JrrzqHyhZ9l3EqztMVcJgvMi2H/ Bpv1vnk8ASdvRGRT54Cqn8Yhky0kPo+wDk1nEf9KGJ5PqKrU6cwYr+prPWqm7lYUm9PW cTMbSVdaOXM+5AmPmjtFUooaQ9Sf4ZM1m132RUwOIRfWBTpLTOEBkpIL0fUIiKlyjMBO 7HDQ== 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=9BOOJgIZOLBd+ek16E1YPVTpg1WVe2HP+ySsoJBlSVk=; b=GLn2bgszPEFspN4BL4ulzl6stu+SKBKQ8xzA7LqGIl2hqyBx59SRvHS8Ig4MA/BBJH dyXLr/6Lg40CC3zlHZGJmxJDFx0Bxn3wzUZmTAtarsu87pyPC6PP8pJPmK28lYNWJU5/ 0qfOFZ8KJUw2KXb0KG1ZA4SXt6tFndZA+8HGw42weiJ9l7c4/NSVd6yP91w6ReWWwFFv KRnhIfujkTOPmjU6L1FvF2/f+1iXD54f6Pto1DX/PYHAKTkpBkpnQZZVYApNhQpQk9WO EYcGZiVlCKkunliDoI4qni6qoDiMmFbHDOEHhz8g4VHfGl1Xk/PuAMYzalETWw99jB9o dBQw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=qRMR79lp; arc=pass (i=1); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bg9si16603481plb.425.2022.02.15.22.34.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:34:50 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=qRMR79lp; arc=pass (i=1); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7FD5527CDB; Tue, 15 Feb 2022 22:26:30 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237114AbiBOLvc (ORCPT + 99 others); Tue, 15 Feb 2022 06:51:32 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:57272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229707AbiBOLvb (ORCPT ); Tue, 15 Feb 2022 06:51:31 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80053.outbound.protection.outlook.com [40.107.8.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BD4789307; Tue, 15 Feb 2022 03:51:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LkS537Bwaex2wQb1to21PnEt1xVVYyQZ4mTeXZj5d5GfwCFm+0zzyQw6wKzCyqSOhnM0d+qSxBMdyVh4r0D9DazwuvxXnzi6o3v6xQTjX9U23MSWRa1kbAMuKLGmCr4i6bWYvDEABNXUBB5rtRHTObx7wpHgW8naq4R/dRLF7/w8297R71L6p36Aar9Wt1j8BOz/2hLUL5glp/YLjewbfoHv7n+NU+AlH+Q+4s6onQtTBnjBTslsO33w6dFtVACiblhbpbDle4aFuvTurSEScBmzH5UV+UJgx0/6rO+CDij1rDoC7Nldtev+coU0lE5S3u/wu1CJQLfsOAy42ahWjg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9BOOJgIZOLBd+ek16E1YPVTpg1WVe2HP+ySsoJBlSVk=; b=fZ+JaHxSJ0pvYKqWWTfvOgCfpgpnGGC+E1ZEzHM9pTnPxYuwi5gY4o7RS9l1Ys9131cVn9eS9ZRuk0QJaj1CtrC5c/zxNV9JP4bg5MXsrRSxddjlRo8tILbXeTYNKL2w6wx4P3EPWzaA37P9x034iHoea67iCmRK/7vJX5sxYjKWo8kKh5K0JKy4Gma9Ir+oqWR4oWoUHJP2cbRAVnAZuk86QTcQhVV5kSCPh0yICErlZ2eXNX/ormu6bFnchP72HdZrxHFCiatlKKSNUXWUgbrMj4vqp8HYJdq1xhSkckwve0w20Cm/4raUftcjz+Vxgo1oaUbkIwnPaa4vZS0Rmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=9BOOJgIZOLBd+ek16E1YPVTpg1WVe2HP+ySsoJBlSVk=; b=qRMR79lpCNsXAlydC0e0mLUWxs+PcegrYCT3EirML+WI2ixlRWEcQZyntk0fkdvOn8SKhnaaSrRiUc7co7EXWkSwaGA3LDRRp1GmCxnCkmJ7z+A6VQBzAeODYLRB+UQdyzTUCoXmUxYfs33PMccdYjIDu4B+Y97IEWwD1v/e5JI= Received: from AM9PR04MB8555.eurprd04.prod.outlook.com (2603:10a6:20b:436::16) by AM5PR0402MB2705.eurprd04.prod.outlook.com (2603:10a6:203:96::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.19; Tue, 15 Feb 2022 11:51:18 +0000 Received: from AM9PR04MB8555.eurprd04.prod.outlook.com ([fe80::5df9:5bf0:7ac1:a793]) by AM9PR04MB8555.eurprd04.prod.outlook.com ([fe80::5df9:5bf0:7ac1:a793%8]) with mapi id 15.20.4995.014; Tue, 15 Feb 2022 11:51:18 +0000 From: Ioana Ciornei To: "trix@redhat.com" CC: "davem@davemloft.net" , "kuba@kernel.org" , "nathan@kernel.org" , "ndesaulniers@google.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "llvm@lists.linux.dev" Subject: Re: [PATCH] dpaa2-switch: fix default return of dpaa2_switch_flower_parse_mirror_key Thread-Topic: [PATCH] dpaa2-switch: fix default return of dpaa2_switch_flower_parse_mirror_key Thread-Index: AQHYIblgcwa2mr3+1UqnRzNxN8McnayUgTuA Date: Tue, 15 Feb 2022 11:51:18 +0000 Message-ID: <20220215115117.zz56xxvymbntumvi@skbuf> References: <20220214154139.2891275-1-trix@redhat.com> In-Reply-To: <20220214154139.2891275-1-trix@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 41573e99-fb4c-4fa6-a623-08d9f0797a9b x-ms-traffictypediagnostic: AM5PR0402MB2705:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:260; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OVbUqGgZVCRL8cz3qTI9pv/EypJ+VK5l+N3F9igduz/g/ZlFIiYzU1pwCKm6f+4FFs7++xobsSruaD9AvRrO7h6xBWNFTPHhwxdemJpZsglAot34s9DmvlAceFasNM+SDG6oE3gw+bAE/TSuvvrwnoRukqTdIQbOqDgj66RSsy9JQCw7MCmlIQpIX3Xqx09h6GLpv+3YxY0YeqYr+q5adG7FaKfiV4yvDHrULWDre9wICQCP2RLSevk1uqkcv7cER8h4lQiDw4DZv6YluMsp9mhELZyV8r1vyPoszaT1nN/+S71VHwwiEvhQKowdW4BiEqu+TdP07uWqrqUAoXwyn1jdSRQj3Ly3N0DqiCEJTigM7g2mXU2eeYbHzJSkgiJBFaJhhrGDbEV2StHg+PEGJNNyfWXjU6eBERU2u4u4gcn2mH8o+vCC/X1euXM1NKdXs/fERzaCSSAgvjI3QfEUQt6TGXrYP6DsMDDa2emWmfMuzlo/lHVxQUPL8plnZDfmmiJ05jjHFQEBpATepgts+5tHlWulhuAN2AJ59b5gyn54+gVPRqBOi5op21Bpmadb8QL5NkB/bWHwvduv8QbrHLDpu59uNNyX9+8hT4vmHjy0Z0PernSGwfU70bkNqHvWpsd/0OYpU5Ua7xDtIR2tRCp/2IoYsxsnrzr5EVocJFej+7V4E+AjkGa8Da4cNkyN2AtG7iF+HFe3hBXdvGFAOA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8555.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(7916004)(4636009)(366004)(76116006)(91956017)(38100700002)(122000001)(8676002)(6486002)(8936002)(5660300002)(44832011)(83380400001)(66556008)(4326008)(86362001)(66946007)(508600001)(316002)(71200400001)(38070700005)(33716001)(26005)(6512007)(9686003)(186003)(64756008)(6506007)(1076003)(2906002)(54906003)(4744005)(6916009)(66446008)(66476007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?K5BgCHSqii7a34O2ZePzS08Sr/dMHtbSzwB7GANFMCcAG3MNnslXHTSd9lqo?= =?us-ascii?Q?MNBDx/XBD24l3/1szYOarLwc5Tk14lluj1Yms6CAiFKY+1mVUi30CyFYSfTf?= =?us-ascii?Q?kEb2iL/zVA8isqK1iJPhXMjXVY8jOA7HDdb1sfJPKsOdSa89YW3uKCcZFNA0?= =?us-ascii?Q?JFfIbyuNrKCK0VeC1slQs5c8Db/o5NVYB4XTpBCowmjtrwFdX1mC4OkTR3Bh?= =?us-ascii?Q?hwL29EqcNh6QSig5TGSBoKEnYJqgExmydY9da7aT593Ce2g0FxkpkQYs0eMk?= =?us-ascii?Q?HQLO+Fli1q77d1azK0ZnTv+mDVpLpuQoN5YBp777yUh2ROOp8Pk3hb8xtX/O?= =?us-ascii?Q?ThLPeuzX0pns8K90IC/q4TsTmWPyFBEu/V+OERIznnAoNQiwdKX+8suZIcrc?= =?us-ascii?Q?IODvcj7IPsubBdLbOoN/0IyzQ9DfdmwLkm7L4pfKac9N92b3yDSeZgefuzMF?= =?us-ascii?Q?T7VRPBLiYqVZPeKhnmdzp7OOpEX07NtTVz/3EK5jnwopPXf/2JXVfG2/g07t?= =?us-ascii?Q?4eoRbT/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IYHUH5e?= =?us-ascii?Q?UtlXI5R72Iso1fgAEcwkoPxAWTDuD81HhTsuoJ14NCyAHtWWLm9HnPLHFLXQ?= =?us-ascii?Q?1oNXlDwUe3xpSCgr4U/JVAfh5e7QpqCIoU/YioUuTuH2JOExaCcEmO48oLtD?= =?us-ascii?Q?gKzAyncKyTSoJpDixjLqgML4hhTfVgcK2NT0Tx0RjDooir1MEKTLrx8KfIzJ?= =?us-ascii?Q?l+FLbRu+HE7KcvPEeo0yZ0w=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: <89082DB9BEA00E499CFD3141C238E8F3@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: AM9PR04MB8555.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41573e99-fb4c-4fa6-a623-08d9f0797a9b X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2022 11:51:18.7428 (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: XrulDJF++XEXZtUHGe8rkRjjI20hkfViyS37bsOYwIo126aXjOE2G6ZOsGWAdW/2MRSHTLFfs1fyPbxtLOI8FA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0402MB2705 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 14, 2022 at 07:41:39AM -0800, trix@redhat.com wrote: > From: Tom Rix >=20 > Clang static analysis reports this representative problem > dpaa2-switch-flower.c:616:24: warning: The right operand of '=3D=3D' > is a garbage value > tmp->cfg.vlan_id =3D=3D vlan) { > ^ ~~~~ > vlan is set in dpaa2_switch_flower_parse_mirror_key(). However > this function can return success without setting vlan. So > change the default return to -EOPNOTSUPP. >=20 > Fixes: 0f3faece5808 ("dpaa2-switch: add VLAN based mirroring") > Signed-off-by: Tom Rix Reviewed-by: Ioana Ciornei Thanks!