Received: by 10.223.185.116 with SMTP id b49csp1032391wrg; Fri, 23 Feb 2018 10:40:37 -0800 (PST) X-Google-Smtp-Source: AH8x227oVIpdE7hPtD1sXhPO3rLOo/zl+JtrQSLVX9ayM013KiiXo11LIYAbUp+KTYb2Om+wJ4So X-Received: by 2002:a17:902:8491:: with SMTP id c17-v6mr2550873plo.105.1519411237129; Fri, 23 Feb 2018 10:40:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519411237; cv=none; d=google.com; s=arc-20160816; b=sWixw8grpBCg6TNw8MiF+KGi2PRPXBBz9LeNZV91q+pPc8dSs6YDb9323qvoLT+NuG men5sTNGVxBJJmH9wQFVmjafhHE7p+bXtyuT6Q/kqgCDEDUPtyJ4natBCKt2GbRPpSUu +rEFg2SfgLpffdkFBN6PG4vW4d9Iiy9AiDH7x0mFSsyKVIqgPV3ST87a4iKgSRjAJNGx pBkWJmC6ej6M1sGIgRio6qdKLrEyl+xvxbkooaF/Gzn5/8HmAv3mVQ/XGSWsKehjp2E4 03P6a8/lPfkiq/CE19A0jx2ZpjOeSlHaTYpDlAXriVLRKgggS12Ih2WfgfyqhyDu0C+7 W7Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=PScSqdmxyGvx3SX5suoaJeQU0F2t9BLOPcC5a8TXbY8=; b=uyM2VU6BZY/zItKM1HKhGiUxonaxIfhcYxFQaCbZrrKKbC41Gk1wKmkxh5S7xwoHKQ GNIo3FRrx0MeZ4FM3KRXd9uBWT9z3rEbjtw6KRjK8g9Yunzm7WAuwo1jB5zqOWAXtEaf ed29xKF9P11LNTpknTrVkxNzM06Ox1B8bJVg0qjGES1/v6gaREB8w74AMMfqVORQqsw2 i3WY56vlO6YkiQ6YE9frh/GLi0pv0gvN5GPtW40/qqorITYuiVsf/GMvjCWl8Hsn0xQT +flM5T+yXLJk5W0/Gnum4leNbBuW4UR0qnHxkH586IN+4BMZDH7FbazCGrsKvo6G4H5u Zy/g== 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 r59-v6si2141372plb.470.2018.02.23.10.40.22; Fri, 23 Feb 2018 10:40:37 -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; 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 S1754354AbeBWSjU (ORCPT + 99 others); Fri, 23 Feb 2018 13:39:20 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39600 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754339AbeBWSjQ (ORCPT ); Fri, 23 Feb 2018 13:39:16 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 401A9114E; Fri, 23 Feb 2018 18:39:15 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Mauro Carvalho Chehab Subject: [PATCH 4.4 140/193] [media] hdpvr: hide unused variable Date: Fri, 23 Feb 2018 19:26:13 +0100 Message-Id: <20180223170347.768919081@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit b97baa3e22e18dac42001e665cf27ad1211bf878 upstream. The i2c client pointer is only used when CONFIG_I2C is set, and otherwise produces a compile-time warning: drivers/media/usb/hdpvr/hdpvr-core.c: In function 'hdpvr_probe': drivers/media/usb/hdpvr/hdpvr-core.c:276:21: error: unused variable 'client' [-Werror=unused-variable] This uses the same #ifdef to hide the variable when the code using it is hidden. Signed-off-by: Arnd Bergmann Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/usb/hdpvr/hdpvr-core.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/media/usb/hdpvr/hdpvr-core.c +++ b/drivers/media/usb/hdpvr/hdpvr-core.c @@ -273,7 +273,9 @@ static int hdpvr_probe(struct usb_interf struct hdpvr_device *dev; struct usb_host_interface *iface_desc; struct usb_endpoint_descriptor *endpoint; +#if IS_ENABLED(CONFIG_I2C) struct i2c_client *client; +#endif size_t buffer_size; int i; int retval = -ENOMEM;