Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5488984imm; Tue, 18 Sep 2018 10:17:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYmF3y9wvN46jpZjxSGU5XLlb/0c8fDe5805HHRKyoKrJ3Sn81SbtLAOWYyBH29i8olHx0v X-Received: by 2002:a62:9101:: with SMTP id l1-v6mr31812360pfe.226.1537291060066; Tue, 18 Sep 2018 10:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537291060; cv=none; d=google.com; s=arc-20160816; b=sgWu27dltPYhhrc3U9U6/bb98hNQaInXiBQgMcJCDySAB4tbhx+8MJ4kApxta07veS uaVGCPFoP92lsIhjA2PTO78I/SalDIpyYulFpZYawpZgwQXqdYiJnGtd+JBea9pO8PMQ dV2liNW9OHy6BPCFP3Z05UCGgjgWZOZKXjbPABjdPRkYnliHvrIgNQe+ouT5aIqxH42L QNkNVAQ1Jf1QvQo7fGa6k5TN+csFZb3MshSgzxv1lGxzZGWqk9h2jDJ7pf9fW0PjpUZS e9hKw+0Y2ndkMl+r5/xYc99rWnVH4o2Tt541paftlls+MRhDcYzPDRCI9EIjOlshax4f 78Ow== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8wIKFqsDLnVjh58s2XzwP4xys912ppD/9lWjCPT3hJQ=; b=bxX3n5X2vb/t1B08JFfpAgpGxV9DVkr4BYyZzGpwRni5CD82MJPgxQYmnjYI/zMM6i sjvdRia0HgPUlpGmD+xmZ62XsSFCAIGVsBd+PgUAsDWH7LAdgvcwR+bSKHFgz/XHGiyS sHRVx0OA9/tF4hKSDw+1VJzfooPMA6WbemX8+k7RYSfW37vWvUYeJpBnLxja5PGlyAFa Xvau+dLhtjd+xKPzghf2qQe0QbaivpjSAnQ8FRGzDsmSbkfYT1lN+UipwQcKx4a4KtZ1 MGFOFs/amXRXGkPstYQKdjPBLW3L+LsOu34WayMDQF5w2F/4jXfIxvpJim8e4AEcNxzx NmtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U2MqTLvt; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8-v6si18140586pgl.568.2018.09.18.10.17.24; Tue, 18 Sep 2018 10:17:40 -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=@linaro.org header.s=google header.b=U2MqTLvt; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730452AbeIRWun (ORCPT + 99 others); Tue, 18 Sep 2018 18:50:43 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:41982 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729905AbeIRWun (ORCPT ); Tue, 18 Sep 2018 18:50:43 -0400 Received: by mail-pl1-f194.google.com with SMTP id b12-v6so1309717plr.8 for ; Tue, 18 Sep 2018 10:17:10 -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:content-transfer-encoding:in-reply-to :user-agent; bh=8wIKFqsDLnVjh58s2XzwP4xys912ppD/9lWjCPT3hJQ=; b=U2MqTLvtmvdphxlr8xk1BLmyI6hhjL7aooyShNrI6ov4wr74GnCZ0Zi/1vFPofaFps ogqDybsi/2hIuIo8ZT2x2qjkdqTRr4x6ANOj1OPMu4j7gVoXUvGF1MbGj9zKuq5D+HGp mbv5nyqrKRi9VONWLX58cbVhBYoLNYjq0dtZ8= 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:content-transfer-encoding :in-reply-to:user-agent; bh=8wIKFqsDLnVjh58s2XzwP4xys912ppD/9lWjCPT3hJQ=; b=jBKIqY+1Noa8WHH6gGxdvKC2zvrOHJTPQhb1lsKHqg4CjkJOG1ah6K4XLafnZJiLxH TM6PGKG1V8L9kRc4sqf6NvtEej3XnkA+K384AymmCG0wDPfnKMXpzwmKJEcAywaB/8f5 LAFscBfGMJYXPvkGF9Kh+GpbqV8E1JI+x6G+Sc1Ve3Uh+mUB+loOZoo94m4m93r/O6wH M4eFHHXwK8tVtT1HBCSW0r2FwN0ksU6uVwL5lwJ/SZqcGRk+SZjaiU+RxTDQx9Mw2kXr KjTEvcB1Kwmj9dzmRuVERxJ4uJf3XJG4pHEUVunIJ+7TlQMfxE+Ktb2OtTpTFJOGhYI6 xYvA== X-Gm-Message-State: APzg51A3/NPRPhYqUufoFdpfPdUjPxBIYWvBOcbvEzY1Fy5jbqHB4PEd 60IFz3HtzfWdOAxK2X6dWZ2lbA== X-Received: by 2002:a17:902:4081:: with SMTP id c1-v6mr30531544pld.169.1537291029574; Tue, 18 Sep 2018 10:17:09 -0700 (PDT) Received: from localhost ([209.121.128.187]) by smtp.gmail.com with ESMTPSA id f6-v6sm22130419pgf.52.2018.09.18.10.17.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Sep 2018 10:17:08 -0700 (PDT) Date: Tue, 18 Sep 2018 10:17:07 -0700 From: Andy Gross To: zhong jiang Cc: david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: qcom: Fix a uninitialized warning. Message-ID: <20180918171707.GA6240@hector.localdomain> References: <1537247208-33632-1-git-send-email-zhongjiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1537247208-33632-1-git-send-email-zhongjiang@huawei.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 18, 2018 at 01:06:48PM +0800, zhong jiang wrote: > Fix the following compile warning: > > drivers/soc/qcom/cmd-db.c:194:38: warning: ?ent.addr? may be used uninitialized in this function [-Wmaybe-uninitialized] > return ret < 0 ? 0 : le32_to_cpu(ent.addr); > > drivers/soc/qcom/cmd-db.c:247:38: warning: ?ent.len? may be used uninitialized in this function [-Wmaybe-uninitialized] > return ret < 0 ? 0 : le16_to_cpu(ent.len); > > drivers/soc/qcom/cmd-db.c:269:24: warning: ?ent.addr? may be used uninitialized in this function [-Wmaybe-uninitialized] > addr = le32_to_cpu(ent.addr); > > Signed-off-by: zhong jiang > --- > drivers/soc/qcom/cmd-db.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) This is kind of an odd subject for the patch. It should be something like drivers: qcom: cmd-db: XXXXXXXXXXXXX ASOC is sound related. Regards, Andy