Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1657073rwj; Sat, 24 Dec 2022 00:59:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXtqktLN/kh+oWZQHWbxHXAFMON9OosoT2TMhoj/J/eBdEjE6xRpFIjt4SoB2fer/hXjK9mw X-Received: by 2002:a05:6402:2208:b0:477:ff25:867a with SMTP id cq8-20020a056402220800b00477ff25867amr8961568edb.12.1671872368266; Sat, 24 Dec 2022 00:59:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671872368; cv=none; d=google.com; s=arc-20160816; b=qgmnjui9rnl5Ww5AP7/2Q7Zusjk3LQ9hyPmpePC9OZ0p/aCL7vigrkeUoBbqsDhX31 gjcrmEBHizCpO1JPUJNObRNH65addsnLo/gvUSbm3B6J6mcQfCwlqzqb9+hdOml2ZgAz o9XvLcrtBr5BImBY+P1pnlXcuFgP/rs989ICeirOigM3IDgRDV/QnRcsdiAf2ijtMMD3 xaDMuJOigSKH/HMV5NWv8Xwr1nDJ4vWU7kB4VWPHPxjp5YvNEfOKz4i/FKEBwvn3SbjJ 6QJ85RkOMEDxHDZ3LHTrvP6PlVxb7dE9LFBkn0bpXavh8PypoW5lYSOBr521IpFNvKXl GSTA== 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=ecE4q7mB1pNNYt+pXr4w174cf1kBk1MntNrVr5jYJSU=; b=Mnl5gQVdxj8wtjGDNW6hO/w5jrIoLbi+HGxNSjp0jztpWdin12JNJtL8fQ8cVvumNW Ut0D1FenMeEUHU3BkCJ1wUJ4alPc7OaeTtxHLIl6EczsO/bfoqb5r9cNUExKDKazmBXN BuAXLOe5A9Z1qwJNHpjC42dVgRa8rh6RMvfD55mTF5SYoW4TzBblykeYTdYeU5L4bEpk 6irSSnezhxzcZ7WaPIBj1YzxdRJ/0ypM87dXuMfSm5p0WtdQzyzJZDDINLH8/JKAkBHx 9VRUNhbxX2SrNdjPaOhI1HRjgIuGU7T21SG7J+qyLNpEt0UT19mmA/0sEUOKjpjoqv2s Po5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iadjt2PB; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v18-20020a056402349200b0047b405e7746si5004478edc.1.2022.12.24.00.59.12; Sat, 24 Dec 2022 00:59:28 -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=@linuxfoundation.org header.s=korg header.b=iadjt2PB; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230404AbiLXIhx (ORCPT + 65 others); Sat, 24 Dec 2022 03:37:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiLXIht (ORCPT ); Sat, 24 Dec 2022 03:37:49 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF953B4BF; Sat, 24 Dec 2022 00:37:47 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 42F3D6020F; Sat, 24 Dec 2022 08:37:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 028CDC433D2; Sat, 24 Dec 2022 08:37:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1671871066; bh=d2QlW2jzxm0TheGGe7a2wTTUh4ptonZr6C3QaKWYxXc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iadjt2PB/+8hlq5sX0aFgfK0T8sL1rQnLHW6s3+sx17rYBsMB9sRXxGNBy1oc92Mx hbwtI7HyFV0CTdczeQj0pH4BxokJGe22rSu5IO2tKWeHZofZHaagRJnLavaB2iN3Lj lOjvP2EYFglCh0pDxQfioVks+iIVEU1D9M0H7nQM= Date: Sat, 24 Dec 2022 09:37:43 +0100 From: Greg Kroah-Hartman To: Deepak R Varma Cc: "Maciej W. Rozycki" , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Saurabh Singh Sengar , Praveen Kumar Subject: Re: [PATCH v2] tty: serial: dz: convert atomic_* to refcount_* APIs for irq_guard Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Sat, Dec 24, 2022 at 01:47:12PM +0530, Deepak R Varma wrote: > The refcount_* APIs are designed to address known issues with the > atomic_t APIs for reference counting. They provide following distinct > advantages: > - protect the reference counters from overflow/underflow > - avoid use-after-free errors > - provide improved memory ordering guarantee schemes > - neater and safer. > Hence, replace the atomic_* APIs by their equivalent refcount_t > API functions. > > This patch proposal address the following warnings generated by > the atomic_as_refcounter.cocci coccinelle script > atomic_add_return(-1, ...) > > Signed-off-by: Deepak R Varma > --- This depends on the previous patch you sent, so why wasn't this a patch series? Always send patches as a series, otherwise I would have attempted to apply this one first and it would have failed. You will recieve 0-day reports about that happening over the next few days as our testing infrastructure will also be confused. Please fix and resend all changes you wish to have done to this driver together. thanks, greg k-h