Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3402681yba; Mon, 8 Apr 2019 18:35:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwz0KPLwtS2iFMXTjB9rAExb04GupQIs7ab7m8oKYhuxbaxxTZ6CAOOWIbFKdUprlukaM+E X-Received: by 2002:a63:c505:: with SMTP id f5mr32143296pgd.87.1554773750031; Mon, 08 Apr 2019 18:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554773750; cv=none; d=google.com; s=arc-20160816; b=X7+iiAe46vP+nn0y2qe09A0yAyY+JFmv+f9czrbF5Ssg06wUR0hIpWqaXryyr4ODXG NtGUao9OmNkeEo+kXX0bQV4OqEd9/L/T/YxLf0WcEVa0UPg6dDQYTv4J4/VpRU5KxjhZ wL50fhwk5XZU7JO/sVSrfDHNF5EkpAW7HUC0AMiqqfV9Fn0ugAJebebDzu0g2REVHaFH 2R9coLwXGj57xAYA5SCBw4f+H5g1XTlj4u1oh6VCrDNmekX6UPgqRsSa6tcvYYHYUSKK ada3kXyWGjte+7A18lh+76H8X946e2GaOHJ/oTrzZsCe7oVpYWVCovlRvhm5LJLsNPr4 D4mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature; bh=yIxhe6Bl7ENcq2sbZzOlPvKyrWDWIEYZ2kgCOyaKPtE=; b=zLwQf+nc3yyia+MexMu9ajEy+3oIKso01ZZnGO+FsiJBKNttCkVmUCaSVgmRXuV0om dqZ/L+jEwRAPoIikYqQVoSg2FLD26CZfo4X7KN8o5cEOgGcGVCblyXgcl7igqdHqmi8Q 357l7QdlJlK97plCdkn27/ncJNb3z8wX/crxE0w28DK48CQxUXN/u/z1OvLl7Gk3FmJt rmbTYYnKiANMYJDssMmNMjW+rRp0AsCHmqVdvPjg93v9lYfTVAB56X05FPL4MCkrtJuV N9EfJdMbQPvHSKewZmnSbJboVRXqhuUm2I8R9Gm309ZRl8Z70GzvZCqgJeEhhzRnqEX6 C3VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=worTJd4S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si21131128pgh.541.2019.04.08.18.35.35; Mon, 08 Apr 2019 18:35:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=worTJd4S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726471AbfDIBeN (ORCPT + 99 others); Mon, 8 Apr 2019 21:34:13 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:49620 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbfDIBeN (ORCPT ); Mon, 8 Apr 2019 21:34:13 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x391SjHg073490; Tue, 9 Apr 2019 01:34:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2018-07-02; bh=yIxhe6Bl7ENcq2sbZzOlPvKyrWDWIEYZ2kgCOyaKPtE=; b=worTJd4SL33Wot6n44ngGfsTVmuYdozo+fW4e9v4IBDbWzzXCHPi3RWbrvvbCEvnCziz rlbXlFW0sn3mbMSki+F9aXdH+OFsAKhH7nXjKBMdZW/fKFRWmagzSJtKucmDMynirSsP wfbTXiakHqQI+iUA50izXJZUoVWXOHtfdq2160k4p2N99WmKVzkma4wnb7Jk1m2RLhxZ EaRrz1TCsqU5bxNNwvU7t3CahW71DK1M/jjEBXE59r2um7OH0PRDAJ9nfHIHc9Tkxm0Z nvSl/Bxh4kDOoq8FJ58BOk8zBEDqc6TksMuzpGjN+mBXZEeCMx+6wXZOGNs6u2q7DvdB 7A== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 2rpmrq1uhu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 09 Apr 2019 01:34:09 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x391WQJn121681; Tue, 9 Apr 2019 01:34:08 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 2rph7sabtq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 09 Apr 2019 01:34:08 +0000 Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x391Y7O1026755; Tue, 9 Apr 2019 01:34:08 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 08 Apr 2019 18:34:07 -0700 To: Hariprasad Kelam Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: mvumi: fix warning Using plain integer as NULL pointer From: "Martin K. Petersen" Organization: Oracle Corporation References: <20190406175331.GA22504@hari-Inspiron-1545> Date: Mon, 08 Apr 2019 21:34:05 -0400 In-Reply-To: <20190406175331.GA22504@hari-Inspiron-1545> (Hariprasad Kelam's message of "Sat, 6 Apr 2019 23:23:31 +0530") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9221 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=721 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904090008 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9221 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=750 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904090008 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hariprasad, > Changed "0 to NULL" to avoid below sparse warnings > > drivers/scsi/mvumi.c:755:58: warning: Using plain integer as NULL > pointer > drivers/scsi/mvumi.c:1797:48: warning: Using plain integer as NULL > pointer > drivers/scsi/mvumi.c:2142:50: warning: Using plain integer as NULL > pointer This has already been fixed up in 7512ddef6307. In the future, please make sure to submit patches against my for-next branch. Thanks! -- Martin K. Petersen Oracle Linux Engineering