Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp84417pxa; Mon, 3 Aug 2020 23:41:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6ZG8ik3cp0mZ4dyPh1JDZlLLYlxD72RXY8gJ587RIt/UhTBYYHg7lef9d/Z9XyaNyjFNK X-Received: by 2002:a17:906:1b0e:: with SMTP id o14mr19504957ejg.472.1596523276433; Mon, 03 Aug 2020 23:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596523276; cv=none; d=google.com; s=arc-20160816; b=WHYRtqgHCGTJUIolv0KVOkB+WzHd9Ok8mLduAFLl2E8TNaq7gZp/uob0n1+2gtxopg TubZai42AXdDa5fEr+kkFT9L3n49Om+rzb0rnr4tSL3AIRfkpArt9MQEnN7mzYkrXGsR Ez5xWQ4SCDXE3ZrU6KzE2dUL1S1608fyNUzpp/3QWzaF0PLeUyal4TSlEo92zyp26Spz 6Qw+trh7RSmd3Tq2e+KLUt2jXiTwRlcf/BuZphWLnkdxJ+Ruj9hFDFokn7xftK5CSVgE KKVSaVuN6F8Y+sW2WY9MSv3eyrV7SP7ZI3vkmWWX7FmNvQva6b0HYsuavUQdD1yaGb6r KtuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=TE//10hdNMakJtgsu2NYQmXR1jT3jpviWssZNgZuR3I=; b=HCU/urL+nwkPfJ/p3lHBe2Seq2Ju45UAg8PZvApD1nu6aX1r69lLNqSfaAM1GcFM31 GNZjw8hJM5q4e+q6g76UR6EMuqKv7TzcYrfHAqlYNTMV9a0o2dJQ+y81PKBZ7gIK22I9 ErFORzOrKcUTVBD0frcKoxub9sZnSimscPDMIKCNxVZPy8E1XpTMlCdoaZxQI/vLMt3J 4bLxZhOm4/WoU7HGDe3ohVcjW5tZLtZZWJb4u3REIXY1daYll9VIrANzEV8cI4Y66zOn m8YjuNv586+TLm9BQo2sqonT+de0iwcWRQGb86MWWKjXYb8gayAxNJ+gQLxaY1CT0wcv 70Ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi20si11587047ejb.365.2020.08.03.23.40.53; Mon, 03 Aug 2020 23:41:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726090AbgHDGjo (ORCPT + 99 others); Tue, 4 Aug 2020 02:39:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:42806 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725300AbgHDGjo (ORCPT ); Tue, 4 Aug 2020 02:39:44 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2CA57AC20; Tue, 4 Aug 2020 06:39:58 +0000 (UTC) Subject: Re: [PATCH 2/6] drm/xen-front: Fix misused IS_ERR_OR_NULL checks To: Oleksandr Andrushchenko , Oleksandr Andrushchenko , "xen-devel@lists.xenproject.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "boris.ostrovsky@oracle.com" , "airlied@linux.ie" , "daniel@ffwll.ch" Cc: "intel-gfx@lists.freedesktop.org" , "sstabellini@kernel.org" , "dan.carpenter@oracle.com" References: <20200731125109.18666-1-andr2000@gmail.com> <20200731125109.18666-3-andr2000@gmail.com> <6d719ab2-d9f6-2c3c-8979-b12a4d10b96d@suse.com> <0ed5082f-0280-16c0-7410-f6a90262bcee@epam.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <1ae2e8b4-eea3-e68b-2897-5e376a688881@suse.com> Date: Tue, 4 Aug 2020 08:39:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <0ed5082f-0280-16c0-7410-f6a90262bcee@epam.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04.08.20 08:35, Oleksandr Andrushchenko wrote: > > On 8/4/20 9:12 AM, Jürgen Groß wrote: >> On 31.07.20 14:51, Oleksandr Andrushchenko wrote: >>> From: Oleksandr Andrushchenko >>> >>> The patch c575b7eeb89f: "drm/xen-front: Add support for Xen PV >>> display frontend" from Apr 3, 2018, leads to the following static >>> checker warning: >>> >>>     drivers/gpu/drm/xen/xen_drm_front_gem.c:140 xen_drm_front_gem_create() >>>     warn: passing zero to 'ERR_CAST' >>> >>> drivers/gpu/drm/xen/xen_drm_front_gem.c >>>     133  struct drm_gem_object *xen_drm_front_gem_create(struct drm_device *dev, >>>     134                                                  size_t size) >>>     135  { >>>     136          struct xen_gem_object *xen_obj; >>>     137 >>>     138          xen_obj = gem_create(dev, size); >>>     139          if (IS_ERR_OR_NULL(xen_obj)) >>>     140                  return ERR_CAST(xen_obj); >>> >>> Fix this and the rest of misused places with IS_ERR_OR_NULL in the >>> driver. >>> >>> Fixes:  c575b7eeb89f: "drm/xen-front: Add support for Xen PV display frontend" >> >> Again forgot to Cc stable? > > I was just not sure if these minor fixes need to go the stable, but I will add I'm fine both ways. Its just a reflex when I'm seeing a Fixes: tag but no Cc: stable. :-) Juergen