From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41LQ2R4Rl8zF0ZD for ; Thu, 5 Jul 2018 01:31:39 +1000 (AEST) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w64FSlEJ081489 for ; Wed, 4 Jul 2018 11:31:37 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2k0wbx9av1-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 04 Jul 2018 11:31:37 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 4 Jul 2018 16:31:35 +0100 From: Vaibhav Jain To: Dan Carpenter Cc: linuxppc-dev@lists.ozlabs.org Subject: Re: [bug report] cxl: Prevent adapter reset if an active context exists In-Reply-To: <20180704144050.mjex2gg7hsarhc6x@kili.mountain> References: <20180704144050.mjex2gg7hsarhc6x@kili.mountain> Date: Wed, 04 Jul 2018 21:01:30 +0530 MIME-Version: 1.0 Content-Type: text/plain Message-Id: <87o9fnnhkd.fsf@vajain21.in.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Dan Carpenter writes: > The patch 70b565bbdb91: "cxl: Prevent adapter reset if an active > context exists" from Oct 14, 2016, leads to the following static > checker warning: > > drivers/misc/cxl/main.c:290 cxl_adapter_context_get() > warn: 'atomic_inc_unless_negative(&adapter->contexts_num)' is unsigned > Thanks for reporting this. I have sent out a patch to fix this at http://patchwork.ozlabs.org/patch/939426/ -- Vaibhav Jain Linux Technology Center, IBM India Pvt. Ltd.