From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA7CEC31E45 for ; Thu, 13 Jun 2019 10:10:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8AC1A2147A for ; Thu, 13 Jun 2019 10:10:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YiT187fO"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QlGjKHJz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8AC1A2147A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DqPbXEa4iosORgLcGXM0cPfhrGMEta/mk+lQyQJvCzs=; b=YiT187fOcRvBst gn7hTxl0cxy1utfj401UR9dTv12RslxvhifT43nDWFUBWOWoYZ4EVx9z7xucSv62S/UEnMq8L5XRe XYHcITn/zG1Au69HXFI7UtaTDJAbAtFJ8jfz5cxwCMPWwcPyqe4lgy2rCkUMmEQjLF91iy8ycDD9e lEeRYQkE4ZJ83F+JBkbIENpBPKuwSO8Iv03kZ6QfL86fAb5vPEEji0Vp0K6VEPvr1nWymAcofQrGy V0iK5317Q54/qWXEdvsuI7L3fAsbCXtq4W5r4MwjreoONjj5TJJ9FJlB8LkYbsGqAB3UQtBSvUrLo D3enTiJsatjCEQjkxCcg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hbMgT-00086P-6E; Thu, 13 Jun 2019 10:10:17 +0000 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hbMgQ-00085g-QV for linux-arm-kernel@lists.infradead.org; Thu, 13 Jun 2019 10:10:16 +0000 Received: by mail-qk1-x731.google.com with SMTP id i125so12319069qkd.6 for ; Thu, 13 Jun 2019 03:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=G+/m82mqxjd9gIpNfnWmM7e/plUww26lxwM8xYns8rs=; b=QlGjKHJz2GJTVK6mzm0yFP2cbnl7i+MZ4Xec/pPRbnT9GCY6XuiRDaX+gJ5XWSrcuU r/Hu1CyptYg6U9chTIjTCEE0D6UwpwwgZagYGIgc5djxOj9xXYoHCrDf0udxdDjrS7Xk o9TstvnafPjdhuXreF+benUANGH5H3n3o4tVV3PBfqEIeRdXcfFNr+36VTffGZfROpgf 6H2gMVnOm7dyOt8j3Wg1ifrmysZdpT7crM3Um8X550quH4lDKsbf3luMiOFKb3Jmb1Fz T9ZqlBtKxJMGeL2M0+rmyVSP/XHiKPU/JuE8UKotyfuIvvuIn2iKjA2v6zuY2+4Fpciz jxGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=G+/m82mqxjd9gIpNfnWmM7e/plUww26lxwM8xYns8rs=; b=s3drk2lnwi7O62Iui4n18aRdZhEPs89IXHEEk0/ultlZXSMcHk9lKz2MeK5aoXw6WJ 2q7IUJT4eD49LKeW6ehkDF0tkYeuqcrV2hXSKm5cXnSBWW1Byt/kSSITeX0r8OwNF9if P37pNkUKKs7BuJGBr8cMfIqCWnSeQpwD9LIxQ3p2waxAeqJyG3awMXl5KCnMGu9xXRTp 4lYw9ChtunUfMQXQTCkMkAxWxD8f1DbMTK+7NgGtLmD+K2DH09zIUj4Sahjka0KGW+vk USCKa9F+H6AbFJsovbhLIErBH/8xoXhqeulHHyf2w3y1YMSb/s3Uvl3Jusx/Z55r1esS NwZg== X-Gm-Message-State: APjAAAXgbDjOjZdcjQYlfQ7RQE5Iz2nrpCGZC97agQqyWOukDJ+UmA2n 04/vZaM9Qyg6BDPOhTIqRhuEQQ== X-Google-Smtp-Source: APXvYqxIbHOzxEYwBro5PMImc2reA5unpanKIDqO46BvGxrEx2OSDXZil6QC+n4Uhb/HMkmgHAcJlw== X-Received: by 2002:ae9:e306:: with SMTP id v6mr70280179qkf.145.1560420611302; Thu, 13 Jun 2019 03:10:11 -0700 (PDT) Received: from leoy-ThinkPad-X240s (li1322-146.members.linode.com. [45.79.223.146]) by smtp.gmail.com with ESMTPSA id u125sm1190373qkd.5.2019.06.13.03.10.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Jun 2019 03:10:10 -0700 (PDT) Date: Thu, 13 Jun 2019 18:10:04 +0800 From: Leo Yan To: Dan Carpenter Subject: Re: [PATCH] coresight: potential uninitialized variable in probe() Message-ID: <20190613101004.GB5242@leoy-ThinkPad-X240s> References: <20190613065815.GF16334@mwanda> <20190613074922.GB21113@leoy-ThinkPad-X240s> <20190613081419.GG1893@kadam> <20190613095637.GA5242@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190613095637.GA5242@leoy-ThinkPad-X240s> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190613_031014_870195_F4335CC6 X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Poirier , Suzuki K Poulose , Alexander Shishkin , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jun 13, 2019 at 05:56:37PM +0800, Leo Yan wrote: [...] > > In my experience it's better to initialize the return as late as > > possible so that you get static checker warnings when you forget to set > > the error code. > > Just want to check one thing, which static checker you are using? Okay, I think it's smatch :) Thanks, Leo Yan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel