Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6643579rwb; Wed, 18 Jan 2023 07:41:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXsbvqMMbxW4EpyI3zh/xP3naX+UojAhxb5rMdNAtJT+5ZF1EGwVl/Ldb1f+93iWRrLVE383 X-Received: by 2002:a05:6402:e01:b0:49b:65cc:faa6 with SMTP id h1-20020a0564020e0100b0049b65ccfaa6mr9455670edh.16.1674056498723; Wed, 18 Jan 2023 07:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674056498; cv=none; d=google.com; s=arc-20160816; b=QRjR2q20of7YZeXXyWidm3CFLFL3H2qC+YsN8Yx9jqqd3qjRXWT3oab2qeifZMBA5G jjrklNmn9WjJ8cYr1SvmZW7z1joFSClJvi+YDhpv3aIkcQoPcGAWUtARtkrBPRbLw912 SeNrEzU0rGuhnbyJqOjO4hX7UDZ7pJ/B50V/PSigwI1OUy6RigHKFgR4Iq9k+DPS+tg6 SLqkx9Kk4R7uvAPKmEeN3apTjOsjUDjQr6AJyIKc7mtrJRpAO2YkknhMxbaaTu2mMe0d uCh26ZLB50rw6HGhWNB0RBf+xQ+renbfc8z1+lX6X9+jNw6Ex1+Q54u7MahWXUWA2tlT yyAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hr87MGTJq8u+Ua6FRs2K3EZ+5I9LJ/lJvLM/9Z6W26c=; b=NzyPx/kG2h5DohSFGxywL8AAw6OXRitgrbjMCczBy1aYTlCrPZYJXrvwjL/1C91JAw IcJj8D2m6SrjuQo7XCvLh0Gx+uXo+88mkqc9orTs1dOo6ApAPWSkio38XGS1yqnoXgru BWiEgQ+vpfhm3hO7h1mm0Vp9AMEUX6wfLJnlZi4Kugehyi0pzyryib+VGLS5jC1k6vHV Xi+lRSbXVRVJ7m/Ayb415dAfZjbX+5umZAeQLLJZeiuKpUCR+liPu/f04mXJtxzyV5Hk 9ImiB/sv6DLlO/h+O9sa6fh92yOMMpNtsLKQcxx3h0Uo4Ar4mBMwUXos+L6f4/dQQqIC LVHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=j254BJ6Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i19-20020a056402055300b0048c7fb50a40si34451304edx.321.2023.01.18.07.41.27; Wed, 18 Jan 2023 07:41:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=j254BJ6Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230282AbjARPRE (ORCPT + 45 others); Wed, 18 Jan 2023 10:17:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232083AbjARPP5 (ORCPT ); Wed, 18 Jan 2023 10:15:57 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9596937B47; Wed, 18 Jan 2023 07:11:34 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id q10-20020a1cf30a000000b003db0edfdb74so1365362wmq.1; Wed, 18 Jan 2023 07:11:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=hr87MGTJq8u+Ua6FRs2K3EZ+5I9LJ/lJvLM/9Z6W26c=; b=j254BJ6QRqipO4iTY9+H2li6wfIse1SV91FB2Khs8Q81y2Xl0EisADXtc5OC0vC9lg aOxoh6ppGHuSRBhp/6mzexL/Zh4+tUQ5B+jKEbflLIO+sUlNdLjtdJlEOhaXuSrJapIM uP3nW81+eIddLAH13WClcVmUHMxf4YLUsHqxzzlGk7C7r5zcf+06WBX9YCX2l1J3FeOc LjDpsf1qug7OoihKcyX2cioXgOwx2G/4eoR/i8JkJRjYFdzo9ndLy2pWsmOP+yOT31As g8kmSAVg6g0P/EZYsHEcmgMcpy1sEWddSf5VM70tR0bIWCUIWPt+Xfg1f2okv83U7xqK xMBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hr87MGTJq8u+Ua6FRs2K3EZ+5I9LJ/lJvLM/9Z6W26c=; b=O+ut5qwlrVkQcOVv+QhY2T5HUamS7DHHivR4PGI7jt5ZrAAWpuQ43sQOnrBF/2cDt5 UnWZVX9K8i4mZsJ44rXZ5eGEx5YSW010xmyXEGLbtJstjhIbcHifSpHmj/tzPbG3tesG tveWyqY7wB7O9vJ1/EAv6IWZQs3TSoxKLyzlHlSafRu5USMxYw+fzEV0d/XzVDh2M33k nMIzGoEU0hi5f6Js0WWyHQ70Brb76ksDLCou6uwc8szoFLXtuN1R2iVDDjemS95UFSYQ NwVpepeBhWlwH1EwVxaXmy95HLetuMwPKtIBAo8QHCpYa1pu4wtzZY5Va9MxZ6N72GDR oPYQ== X-Gm-Message-State: AFqh2kqg+DptsAU90guJev/mLPYNlMQQTBciQarE3RdRB7BaBJ0NHW81 wxQiN/Bd7EV20GmBh99OU0TjmdoAvEqWmA== X-Received: by 2002:a05:600c:4f86:b0:3db:15b1:fb28 with SMTP id n6-20020a05600c4f8600b003db15b1fb28mr2289859wmq.19.1674054692951; Wed, 18 Jan 2023 07:11:32 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id i18-20020a05600c355200b003d9df9e59c4sm2640809wmq.37.2023.01.18.07.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 07:11:32 -0800 (PST) Date: Wed, 18 Jan 2023 18:11:24 +0300 From: Dan Carpenter To: Petr Machata Cc: Daniel Machon , netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, lars.povlsen@microchip.com, Steen.Hegelund@microchip.com, UNGLinuxDriver@microchip.com, joe@perches.com, horatiu.vultur@microchip.com, Julia.Lawall@inria.fr, vladimir.oltean@nxp.com, maxime.chevallier@bootlin.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 3/6] net: dcb: add new rewrite table Message-ID: References: <20230116144853.2446315-1-daniel.machon@microchip.com> <20230116144853.2446315-4-daniel.machon@microchip.com> <87lem0w1k3.fsf@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Wed, Jan 18, 2023 at 06:07:48PM +0300, Dan Carpenter wrote: > In Smatch, I thought it would be easy but it turned out I need to add > a hack around to change the second nla_nest_start_noflag() from unknown > to valid pointer. The second nla_nest_start_noflag() *return*, I meant. > +nla_nest_start_noflag 0-u64max 4096-ptr_max regards, dan carpenter