Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3265061ybl; Mon, 27 Jan 2020 00:12:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyZULhl/noyXn1VCTwH4h2KsTONHhXw/QuUMNXIzZjqvwa66IWWjQxYQXcy+u9j365PFXei X-Received: by 2002:a05:6830:4c7:: with SMTP id s7mr1049605otd.359.1580112735922; Mon, 27 Jan 2020 00:12:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580112735; cv=none; d=google.com; s=arc-20160816; b=eCfHLDJpnapmm7zRp9ncu24654EZjOAwK+6iA7NkKnU+tBz6XyXDHZb2ZctC0l7oFA YnJH4NTW+LsDVgO9Bq1inljKUFC3lKiGg7VLQZlFCX3w+DOq3HxOn3V2U003ejUWftUn Ax8a6ayZzanJKypmOeM6za3kSdZZ5dRKjocnDPaTmTEB9Uv3bgd2MY3JsFcBWS9btJJq fAEF4neu09jOADovT4PDvKH+B0Mqmx9cKpjpWi2V7aYl4LChALAXNotgwhWdHdrNe3+3 bLfdrUrAQ/F/OzzcuFdhInUInUOyCOh0z0TtmA98fSb//K7PLOo7CtWjlbE3m8kHSo9f e+6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jd96EvBODZ1OmeCFJuFhnzEFmdqOYHBsCDn6ZgiV2sM=; b=IpBAhgDHL4oJ/fYeC0Accci77A0RwsvR8TqX/2ZbtGPWnLRS3Z9HRriyVAVlNfYQFP 7nNQIf/KOTFy8OxGzRQJ2S1rGk/PpfkV0AbDq+XqvUo+ZnvIdwC2tRENp02cEigV3bCg pRpPoodGl/JW2pvowix5uf30ypF7NxfqYzMb4eOzpfHJi6CzRrmIZvWXKOGalTxWJzr7 cmCrPDFZccFAEK9pmWFEZu406/1TpbRssHtqr9AiqYAGERPMoNQ/rg4C9YYPfotCfR94 9IGaSnXZ/nm1JHUxmxcInXuqPt/60c+Zeffk83YCtm3+2TGX99XN8ax9XeNZ4goxJdtf 7pnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=CIjLD+pw; 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 x3si3347842oic.251.2020.01.27.00.12.03; Mon, 27 Jan 2020 00:12:15 -0800 (PST) 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-2019-08-05 header.b=CIjLD+pw; 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 S1728609AbgA0IKN (ORCPT + 99 others); Mon, 27 Jan 2020 03:10:13 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:36198 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbgA0IKN (ORCPT ); Mon, 27 Jan 2020 03:10:13 -0500 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 00R88NjO020434; Mon, 27 Jan 2020 08:10:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2019-08-05; bh=jd96EvBODZ1OmeCFJuFhnzEFmdqOYHBsCDn6ZgiV2sM=; b=CIjLD+pwa9IzEDfXQCAqWpdKiOFqijZCfhU2KNk3fovQVdIwTp+HghTtUvRxrqHKlkpj 57Tl42SK0fVvDfndHCaAV/L6xHDpirawDsUg9dkGWYK6jFoN0o249KbMD4DhZSQGx08z k4wewgfYZjPwsYdgBSe6hLXuP6JZQn6AoTQN/LJMlfGYywFLozwZkaTqwO+gfV7brELi aXiET5/Q2ZYJKEguC8pXqKsJoosPvTAh4ugw1OX/J8Vclg9VhZfFjehVm/1eN+ti3cLV QjA8Tw0yFpA7tv4OXPF4SWci3nhqzdasG1bysc9QedomQreIMB04Y8c+98bGbZzqrOBP SA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2xreaqwkab-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Jan 2020 08:10:05 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00R88gXq069886; Mon, 27 Jan 2020 08:10:04 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 2xryu8v17p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Jan 2020 08:10:04 +0000 Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 00R8A2ca014877; Mon, 27 Jan 2020 08:10:02 GMT Received: from kadam (/129.205.23.165) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 27 Jan 2020 00:10:02 -0800 Date: Mon, 27 Jan 2020 11:09:53 +0300 From: Dan Carpenter To: Saurav Girepunje Cc: vireshk@kernel.org, johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org, greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, saurav.girepunje@hotmail.com Subject: Re: [PATCH] staging: greybus: bootrom: fix uninitialized variables Message-ID: <20200127080953.GQ1847@kadam> References: <20200125084403.GA3386@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200125084403.GA3386@google.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9512 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001270070 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9512 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001270070 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 25, 2020 at 02:14:03PM +0530, Saurav Girepunje wrote: > fix uninitialized variables issue found using static code analysis tool > > (error) Uninitialized variable: offset > (error) Uninitialized variable: size > These are false positives as Johan said. Don't change the code just to make the static analysis tool happy, fix the tools instead. Also the patch doesn't apply. Read the first paragraph of Documentation/process/email-clients.rst and figure out why it's not working. regards, dan carpenter