Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1677493rwj; Sat, 24 Dec 2022 01:22:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXuh9b5lKgcazTruPSFnQr7XZ86d8dSx9rVRLkhjwGwS0gClLCyG/Bl0kD/X11lIYYeLWsKI X-Received: by 2002:a05:6a21:1518:b0:ac:f68:33c9 with SMTP id nq24-20020a056a21151800b000ac0f6833c9mr16106881pzb.33.1671873770379; Sat, 24 Dec 2022 01:22:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671873770; cv=none; d=google.com; s=arc-20160816; b=fMA1Guw1H6VvPitKbE4YbAOPowPGr0EC4uZp7sZsyLOTg6UuKYkAzPQfPvCxaXvK1T 7q0fJ8Am/npyfDaNP0HYKgz75WxxDG3cxGdLLpZeFCfGe5nT/DJJiAzcsWFSICwezLOX t1BWWew0NUea2kD43UkzV7V2fco7Y0M8GmnM8GOpABKo+Xl7j7FjPSAHvb5kBzHitACq 3vbZRg7yxvxyJ2cf3T8siM8IpiTYw+nDz5WiKt4npHRceuO9B5T8qsyRiQoXvHspf6lJ IjD+vMyIpAqJ10heA/WWulBxzOylYaeQLQd+H6f7mzcDgjhrSw/RLCBz8X4J979gYvhX X5bw== 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=7mn6qZhPS93hhFFvdZzNLnGOk77z4/UzEsHsTIiCkes=; b=C7i/LpmssTyT7TOkSKY5T5sfEv5fTE+LAjVuDzoUmax0bcp/j+ukT6ym6uEtGC8H4p mTx/l89C9sHcDmmVgDk/nto9wU1VkFu68kriIH8PxzzwBCrAkbX0G0iEtAdHCLYWYL7g bgqT9OJgeuoP2q0R8bhCEkeaiG4916DdGE9tNGQdBzQo8V28gKZt+atN0PLLeZ4ZaVwm Smx97YTzCNMbv5ZS6x466s9rv4blSYX4B9o9Ycngv2tqYr452RqRzeA9vCv9zer3hPZb BvAsOjphfqug1iPv9DuO7AEFEFsNNgTgr5TmKlU8y4g0ypd+xQWYWZotFOb7kqBz/mgk X7Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=LG+VZmfV; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a6540cb000000b0047860cd6de3si5852991pgp.641.2022.12.24.01.22.41; Sat, 24 Dec 2022 01:22:50 -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=fail header.i=@mailo.com header.s=mailo header.b=LG+VZmfV; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229688AbiLXIkT (ORCPT + 64 others); Sat, 24 Dec 2022 03:40:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbiLXIkS (ORCPT ); Sat, 24 Dec 2022 03:40:18 -0500 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9F3B12D3E; Sat, 24 Dec 2022 00:40:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1671871208; bh=N/uQxjT+1+iGIoYVplsII3AkhcPL0am2LgaSxxryuWM=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=LG+VZmfV/9mkT+gbHT2Kb8Do2V8XPevFJSHePhm770sqCBblasva9gktaLnBcvdu6 Nb+A1eR1B27/IrpPSMrThy1XeuNohX9ZZyL6WXCPOICdftWTWvAUoGDlxAIRyAS4YH iWb4zm0ILfO4qwgMeRji8dcBu1qrh300R8KjG/lM= Received: by b-1.in.mailobj.net [192.168.90.11] with ESMTP via ip-206.mailobj.net [213.182.55.206] Sat, 24 Dec 2022 09:40:08 +0100 (CET) X-EA-Auth: Gagyupn+vvbazE/cHYUasNTGfC1/PKzXCTPk2qcRVlMJnST/ehCQ4jmIVe5ClO1X/S6ScWbLypWXPgn1svmJqGQOQQX4VR9p Date: Sat, 24 Dec 2022 14:10:02 +0530 From: Deepak R Varma To: Greg Kroah-Hartman 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 09:37:43AM +0100, Greg Kroah-Hartman wrote: > 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. My apologies. I will send in the patches in a series and highlight the dependency as well. Sorry. ./drv > > Please fix and resend all changes you wish to have done to this driver > together. > > thanks, > > greg k-h