Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4156086imm; Tue, 11 Sep 2018 07:47:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdacpoFVTfIBtcR4O7EusHmjz1z9KMDAB92I+vQ7XG/xGySFlF/dDQOGzfew4W61oAoRNXxJ X-Received: by 2002:a62:cec6:: with SMTP id y189-v6mr29694261pfg.140.1536677267822; Tue, 11 Sep 2018 07:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536677267; cv=none; d=google.com; s=arc-20160816; b=bggQafSLIlzi66Rz8xBETRiw6yfR4TpRT4awB1ZSVG8NA1B5yEPrirkTAE4qqnTIi9 NwWhIhnt2/mfeEf5YAKthyVoxl0hgcXzPgDtd61kaZSb84vCjvhQ5//xCkhxYITcFC8E coBXoGtVOwxRDkfPh0QSnfnwyd/sZoNQyzPvOJd38A5ZKbJGtnzI9uTLgR+BUOuQsuQ+ wzY5kjc1W6SSNwtdaADhQUijD8vGVPNzvZ9xdW/I7LahC1jST6U0OXeWDSw60X3cylnv 2n2ic9TDfubR+fTiaTkSHRkX1p9WcDeA5RKrU1DJjmGEL8aIxfI0gLuA6boyK/loYexj CvCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date; bh=lNt8VlE3mz37CseHI13LeG47MHkUsqj9uXZXq6RTJA0=; b=XL8ILpjWUs8Ymh4+6ak6GIM5/AfupeVzaOzyXFmh6dW1sV/LgG+VYRIupZ88LrXV6O jMopXwoPny6wUwQEhTjY2+9Jm9Igg+nkCVtkURzZXgw1t+qQEAOdrB3QyY7bXiWFQPd1 p7DeK0ownA5XUdAIWVcNqwkVdJ7jC5o4lyDb7ovYCwyuFoI4Nml+ouWa+CKXR9Y/y4aD iGFrg91x/7KHNHjHnLF1pTqlaEktkAkxYAhc7G7sVMrtagnZMAPvKZoDtAGZGjvMTNHa pKsFcpOyxBzjvQqQaqTHbzR8Hdfpcl4UOMiZHRIErwb3YTl4ISsZDvEk38lC1wur9JTl owmQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2-v6si20408471pgb.417.2018.09.11.07.47.31; Tue, 11 Sep 2018 07:47:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727682AbeIKTqp (ORCPT + 99 others); Tue, 11 Sep 2018 15:46:45 -0400 Received: from mx2.suse.de ([195.135.220.15]:58988 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726761AbeIKTqp (ORCPT ); Tue, 11 Sep 2018 15:46:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 9D8B0ACD8; Tue, 11 Sep 2018 14:47:06 +0000 (UTC) Date: Tue, 11 Sep 2018 16:47:05 +0200 Message-ID: From: Takashi Iwai To: "Anders Roxell" Cc: , , Subject: Re: [PATCH v2] ALSA: hda: fix unused variable warning In-Reply-To: <20180911141836.14463-1-anders.roxell@linaro.org> References: <20180911141836.14463-1-anders.roxell@linaro.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/26 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Sep 2018 16:18:36 +0200, Anders Roxell wrote: > > When CONFIG_X86=n function azx_snoop doesn't use the variable chip it > only returns true. > > sound/pci/hda/hda_intel.c: In function ‘dma_alloc_pages’: > sound/pci/hda/hda_intel.c:2002:14: warning: unused variable ‘chip’ [-Wunused-variable] > struct azx *chip = bus_to_azx(bus); > ^~~~ > > Create a inline function of azx_snoop. > > Fixes: a41d122449be ("ALSA: hda - Embed bus into controller object") > Signed-off-by: Anders Roxell Applied, thanks. Takashi