From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7593BC04A6A for ; Wed, 2 Aug 2023 16:49:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aVCyIMMRa3QJmWz1s9uoRs3w6FG3Vu25NZH+Ced+cY0=; b=o5aLhhafVVutOu 8CnGyUfKYilYyTerZ/i5BQx08CXiRHnjzddKc2X08bshnHKrpzMuasNnyHhL4VenlKRMcQSpvVByO BTRxlymGORLomBK2DfszsYjWps08sA7rBedHaAmyZxperkFs28xlwtGSJQav8g1SUY3cZgIC9AOGq OxXBu0rou7c9L0sX9bv1SPI9OFSTp0J4kjF6/BnIgzwnWEJ0lWV6cTZktXuCQQIxQZ/EvJUynndxe 1BV3nD2233rBwNO2s0RlFZS34EIiyOlBAitRcw6XU5iuKiIKeATNuLqj1KZ1i5UyIe6F6q8VQEoO0 0Qa1oFQ0rH1u7LU1ExCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qRF1Y-005OPw-3C; Wed, 02 Aug 2023 16:48:36 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qRF1W-005OPD-0f for linux-arm-kernel@lists.infradead.org; Wed, 02 Aug 2023 16:48:35 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9C5C461A3C; Wed, 2 Aug 2023 16:48:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9D8EC433CB; Wed, 2 Aug 2023 16:48:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690994913; bh=Pdn2EtB/K/X3AmHuk5ox8AefKm9knP0sFeo3NYu+Yb0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hIBCvG+wTP06Y0lUk+87/LHyaSYCg9BZabwl8+s2O4iVuO+S7lgKbLbPzPu4COcYL OYzCEsqxqQ0nXz6W0mKtdFW0XER54/HkWS86YZUDQJthVTDP27KOr/OVfOzbGsnxHG f1Sx8mA1A16GnoStSPSxY9SbvJDJuv5EdsUV/HXRmXtJ+8V2hx6bRb9H5JrJ/f0UVQ 9j47BgG1z1CiRZ9x9t6zbmF5moVMSbsdC3DUHrLVhUqjZ+etIxuZwUOQQRoZXdCB/K UbaRES0STA3u6/CyT4XS9colYzQQAtLxO+jKMmOD2UUkSIq2tGob9VFzniZHpUHZPo 00VhP/b/gKR4g== Date: Wed, 2 Aug 2023 18:48:28 +0200 From: Simon Horman To: Li Zetao Cc: lars.povlsen@microchip.com, Steen.Hegelund@microchip.com, daniel.machon@microchip.com, UNGLinuxDriver@microchip.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next] net: microchip: vcap api: Use ERR_CAST() in vcap_decode_rule() Message-ID: References: <20230802093156.975743-1-lizetao1@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230802093156.975743-1-lizetao1@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230802_094834_289896_5D3F4452 X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Aug 02, 2023 at 05:31:56PM +0800, Li Zetao wrote: > There is a warning reported by coccinelle: > > ./drivers/net/ethernet/microchip/vcap/vcap_api.c:2399:9-16: WARNING: > ERR_CAST can be used with ri > > Use ERR_CAST instead of ERR_PTR + PTR_ERR to simplify the > conversion process. > > Signed-off-by: Li Zetao Reviewed-by: Simon Horman _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel