Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3483803rwb; Fri, 9 Dec 2022 15:25:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf5XgH+uZ9qxY8FwEfFJtOlCkpOpG0XsPurtPCUrofHJcw1x1LIGN023Dc5ymJTSqlP+KgIY X-Received: by 2002:a17:906:9a9:b0:7a0:d2c9:e15f with SMTP id q9-20020a17090609a900b007a0d2c9e15fmr6225297eje.58.1670628327681; Fri, 09 Dec 2022 15:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670628327; cv=none; d=google.com; s=arc-20160816; b=fu0Qxa87rHzm2oyCzLY5carmOpsXl5YDvT5E+lu5pAcmXCt7NBsZwXnkfb+xi0cJoK 6wb5F+4zmio93XedkxFPQJsDetKULZ4/WhmmmAMbQa7p04u1OXbiGs9vmpfQruOqZ/78 y3nzmVGElaWHUAiFGhNQlMPOZB/xnmZIOj/XicI+adMGLV3Ueov6d6Fx33fRMO7f5G1X JxmQVdLU+pnS2mjWTAQWZqXGJvXqW/Nm3jvAK0zNl3VeD17CEaDiy8XGWH1Q1d7QLYm0 7tU4p1fCp9wkW8KS60XgbnxYMQjevAfhW6aw5TthXmbrt1Be/RK5WJRu3QygsjedrZXV U4dg== 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=EABoT7dZpo3rJmaMyhA0E1HAb5w79M7WwC7+Gsjt9xM=; b=GS0QCHLDt6dYQsd3rXAAfUa4Km0yC6FlrrLfZUeMTBaB9iSAjInLnmKyALQDzy5IXI fUaIuoFB+ZwDI9neLNKfscTHnaBQivTUu/U75/fpqURtCojxSwfQWmVh2Q6iIjztBtRx CpC8+mqzuY/lMwYOrW/FvnW18o6b6SzkeGTXYpMDDNyJsL7NolwA6yV/98h/4FHg/JV0 Wj5eUP6ovNSvanINi0OaTIghPnFWJb4tjgBd9dee67/2zL9K/AL2iu6ZXEPIjDwmXxpc ZbCBT+GQ7Y/gJsl5EskGALjg41WpEYBFLIDSrDg+iN9hJiJfVQ7MeoM3eIEeswZk5HUT cltg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oRLw7Idk; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wd12-20020a170907d60c00b007c12c63d1f4si832909ejc.813.2022.12.09.15.25.07; Fri, 09 Dec 2022 15:25:27 -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=@kernel.org header.s=k20201202 header.b=oRLw7Idk; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229637AbiLIXUB (ORCPT + 76 others); Fri, 9 Dec 2022 18:20:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbiLIXT7 (ORCPT ); Fri, 9 Dec 2022 18:19:59 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41A049B296; Fri, 9 Dec 2022 15:19:58 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E2ADEB829BA; Fri, 9 Dec 2022 23:19:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CE5DC433EF; Fri, 9 Dec 2022 23:19:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670627995; bh=EABoT7dZpo3rJmaMyhA0E1HAb5w79M7WwC7+Gsjt9xM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oRLw7IdkQXqinseyhGTzsbT5BDDCXmleUUBQOwr2NC67heZwen2xlhCeyYZf88CBU z72RXOb2q6uqdVOD2CqTRurGDNVpMBDNgeUa6BcHj0D6BIIOEh8/eG3aSHOSQbXdZX 448qa9TIexdpyX3cjPeuKBpfODKVUMj8bhnV0R31cWlAgMuYEvSb+CUpHFPYENsc9D OUbXSKsBqjHvRm0qcceAUCsnBIPLIvxxMlr2t0IywtYt3tJZQWp02zIS/BUXn0R8/3 P6MFCYzpK5JokC5CPVkHQ09jTRfqvc/kihlsxy3UPXWD/AJuuvlmYXMOEF/QuMDl6L IilSsu2cw26wA== Date: Fri, 9 Dec 2022 15:19:53 -0800 From: Saeed Mahameed To: Horatiu Vultur Cc: linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Steen.Hegelund@microchip.com, daniel.machon@microchip.com, lars.povlsen@microchip.com, UNGLinuxDriver@microchip.com, kernel test robot , Dan Carpenter Subject: Re: [PATCH net-next] net: microchip: vcap: Fix initialization of value and mask Message-ID: References: <20221209120701.218937-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20221209120701.218937-1-horatiu.vultur@microchip.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 09 Dec 13:07, Horatiu Vultur wrote: >Fix the following smatch warning: > >smatch warnings: >drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.c:103 vcap_debugfs_show_rule_keyfield() error: uninitialized symbol 'value'. >drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.c:106 vcap_debugfs_show_rule_keyfield() error: uninitialized symbol 'mask'. > >In case the vcap field was VCAP_FIELD_U128 and the key was different >than IP6_S/DIP then the value and mask were not initialized, therefore >initialize them. > >Fixes: 610c32b2ce66 ("net: microchip: vcap: Add vcap_get_rule") >Reported-by: kernel test robot >Reported-by: Dan Carpenter >Signed-off-by: Horatiu Vultur Reviewed-by: Saeed Mahameed