Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp896893ybg; Wed, 3 Jun 2020 17:10:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBKVoB6Nj5y6Qe7pyrjP1tLPUZdHgDpAeBC1QrdMmHN3XWW93iJMGSsuDL8PepHfhQHrqA X-Received: by 2002:a50:8fa1:: with SMTP id y30mr1828210edy.86.1591229403229; Wed, 03 Jun 2020 17:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591229403; cv=none; d=google.com; s=arc-20160816; b=wGFW1ehvq8GtlVes2QdA2UU/qjJ9WEm5og4vbNAyr7s6DRyfAwZ2VsG1WhvLMe+oW4 VpgiiaSYotW3crC71r1YeLWpMzqXFwksHTCJQDl7SvnNa0LGmeHbjClbbM6XbNsOiNkt mqfGWb+KCNj11pzZZ9HeVpSWZoS0cJ57fvM0ZkZ4cHZ7VjKvDQhnNfiZmjZnZyt+Z223 52U7LNQkZ+10NFAm9NXyzqVQfxVWrTK1CxHvmdwSpQ1qBC4QBPSOd7MPR89PNqZzNDw0 9qtv0aDbbTbGnus9VOlpj2mYxIlFwTYPvcNQxMab27Ryb8gyC4xI4ZkV5/sf0bfQWnQ1 6/qg== 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=wW9z6dg9gtAyJMDZbmTtIDy0Zz6R5BIjGsT/C/EraEE=; b=WRyLrIEpc6X1Wp9hOAQmlTUn1gsGsdOFXZHbQNbv8zhUUzKQU4vb+ITJc4lT1/EBqP OhFosvHxkkgbdE8mWkzWUr+Fqwb/fXc7UXRLz2HXBvRKUw07qxJ4WQY2Y2eppSAU17wi 7Q3QpSNsI4ElTn6ubH6QflAThaWScchTcK7d6W7+yqKsMfmiUYp3FRE02SVBgsNoK6PZ OIp08lcLT3s4kIuWmxtkW9D0WLrRjDJgiJc+cnnw8TDiU5G/rnXAK2G7AwSMQ3buj/gk yLhgLFLIL+sHpS0bsNKgTDLqVSn0+88DgJQ749/eMPFbwNAxXNikyXI4wPUD2A2HdUHA 0Drg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hbRusUEB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l19si606287edq.428.2020.06.03.17.09.39; Wed, 03 Jun 2020 17:10:03 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hbRusUEB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726109AbgFDAHH (ORCPT + 99 others); Wed, 3 Jun 2020 20:07:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbgFDAHG (ORCPT ); Wed, 3 Jun 2020 20:07:06 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D576C08C5C0 for ; Wed, 3 Jun 2020 17:07:06 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id fs4so288545pjb.5 for ; Wed, 03 Jun 2020 17:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wW9z6dg9gtAyJMDZbmTtIDy0Zz6R5BIjGsT/C/EraEE=; b=hbRusUEBEuXE43+h8g3Pvw81RsDWZKa0dvCSbxNYz78B1eNTcn2Pnq05G3QMZd5gzx 70P3CSV0FOq+qRA076Tlw61da/eYYkgLKinDK4FfLSA4JeKaOSz5+ojszcktpXRtI34y GdgQbxNrr+wMFg9z9z9KVx7xyCoHDnkAg41ewHMrMeFmQvH433MmUryuwVTZxzTpHmT7 nXCFnvpCkBeS2EUM4oRMqrworUamYwAajGO52p67jp+y8DJ7PDk1h2xoH5Ck3XIJH3BN YdZRpVQej+qKFERrZ0PH+nyJAvnZJbRPetvr/UssZd8jOBchORcWXDFyRMwLd+5Msjq6 7GDQ== 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=wW9z6dg9gtAyJMDZbmTtIDy0Zz6R5BIjGsT/C/EraEE=; b=uD8p1vj3if7druKqtFyZeN7YaGepHp7VyxhJaW7lNlDWjStfrmmnFi1KcDfwQ3cnXj ppYd+2fU/cEsHykYo6ErUUafygfyZFOgkPQDZ4XtCtWMIhO+6EXxyNz1BZhnvuPwmBYK +6kcYzJeL94odjbAoQ4NDX6bHGoapYzblgpHkiov1pzkVzZLBqUdKSYMnYw2k60zJpC8 gLw6m36fH7J3vGoKcbErfEyGhCN/MHTjb5uGO4WOyMhfchD46pvOVOUIDiRKl50ySaB3 /Wd2Z+cIzWS+94G4Nf3HTk8iEAUkikFCZI5hsQdVB01BrCV8QFzKjweIal0MwYZLDBS6 xxdw== X-Gm-Message-State: AOAM533t4sFyR1zrjGFXP4YjDE3VAHehdjZnY7s4Re70H9c2Z0WBpt79 QI5yxua/mVYY5VFLYayUKfI= X-Received: by 2002:a17:90b:193:: with SMTP id t19mr2899534pjs.47.1591229225665; Wed, 03 Jun 2020 17:07:05 -0700 (PDT) Received: from Asurada-Nvidia (searspoint.nvidia.com. [216.228.112.21]) by smtp.gmail.com with ESMTPSA id f136sm2691842pfa.59.2020.06.03.17.07.04 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Jun 2020 17:07:05 -0700 (PDT) Date: Wed, 3 Jun 2020 17:07:02 -0700 From: Nicolin Chen To: Shengjiu Wang Cc: timur@kernel.org, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, alsa-devel@alsa-project.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] ASoC: fsl_easrc: Fix -Wunused-but-set-variable Message-ID: <20200604000701.GB17364@Asurada-Nvidia> References: <91ceb59e3bce31c9e93abba06f5156692ff5c71e.1591155860.git.shengjiu.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <91ceb59e3bce31c9e93abba06f5156692ff5c71e.1591155860.git.shengjiu.wang@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 03, 2020 at 11:39:40AM +0800, Shengjiu Wang wrote: > Obtained with: > $ make W=1 > > sound/soc/fsl/fsl_easrc.c: In function 'fsl_easrc_set_rs_ratio': > sound/soc/fsl/fsl_easrc.c:182:15: warning: variable 'int_bits' set but not used [-Wunused-but-set-variable] > unsigned int int_bits; > ^ > sound/soc/fsl/fsl_easrc.c: In function 'fsl_easrc_set_ctx_organziation': > sound/soc/fsl/fsl_easrc.c:1204:17: warning: variable 'dev' set but not used [-Wunused-but-set-variable] > struct device *dev; > ^ > sound/soc/fsl/fsl_easrc.c: In function 'fsl_easrc_release_context': > sound/soc/fsl/fsl_easrc.c:1294:17: warning: variable 'dev' set but not used [-Wunused-but-set-variable] > struct device *dev; > ^ > Fixes: 955ac624058f ("ASoC: fsl_easrc: Add EASRC ASoC CPU DAI drivers") > Signed-off-by: Shengjiu Wang > Reported-by: kbuild test robot Acked-by: Nicolin Chen