Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2846962rwl; Mon, 27 Mar 2023 06:11:28 -0700 (PDT) X-Google-Smtp-Source: AK7set8/s7M0fsiJkqB+YQUyTbzzF3Dbse8DZNjwGzE12nwg1EZ7esU5AZk1/25cAHHeLJPeeQQ8 X-Received: by 2002:a05:6a20:8984:b0:dd:8442:9618 with SMTP id h4-20020a056a20898400b000dd84429618mr9386961pzg.25.1679922688430; Mon, 27 Mar 2023 06:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679922688; cv=none; d=google.com; s=arc-20160816; b=tsZKUfKqBIMX/ab/nemWudBjW3Jbn4qdpqlRgbtdWkv+OoeJ3MJjmsK7aaZkMkc6q/ l82xx4OIa7lDRVZT4y+8DDP2ULWmIxgw7mgmnBLMkwZXHdm9J2PN5BtuYwr0GAd6PelD MXondTFZl4VqsIGGwdIX1HbTLafQhTZ4d7LNTrOtvXHsurqXOwloM3HvdwqbIo9dUJmy +vIXEdSterBhJfOnOVr/nPzyN/gqNiGRbr7v8cJQUngAO/5BZUCZ5dmat6LyK5GqLQGO 02HguRtdC/lj09wNY4+Rby+q3rs5Yffyq9ML0Atmom2KjpuXHZyPb5279GjoCbs2lbHy Kk7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=c+DrPasb9PevG1Gusn+sUMzGXNgvYsiu8+zv0M/1KMw=; b=qvRuGa4SwmRZIsLIIZflBkb21oWIZyN6CmilhftS1yBptUxMEna6Hs91/sUvpycuEH 5e5MwUFyo7pOtLBH/SeFaN4v7eELuOFgsJfotOT3xKU+Mxfj4TQ6UGlndgx+HcryVXPt BmpZykrq2Xz0/Rx6G69/tTDyJ6RnnduDUohVfd6IyR2L5Sfvv1vX0zscX4pOAXgdMax/ tkbLpXuHbwLARVWa6+64tW9TIDe4to6ICBUHo94sQdDxm5FiT71Apanbj3mGFDEA/D3/ oPE3iyDMm84a29WVnrwqNnmWgrO+tgn1nDr5DnTuGH90B0DWLvQ46LWt/557l9gTZ7xi iGmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Mxkpou81; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h71-20020a63834a000000b004fbd53187ecsi11873142pge.258.2023.03.27.06.11.16; Mon, 27 Mar 2023 06:11:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Mxkpou81; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230468AbjC0NHz (ORCPT + 99 others); Mon, 27 Mar 2023 09:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjC0NHy (ORCPT ); Mon, 27 Mar 2023 09:07:54 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CA5FCD; Mon, 27 Mar 2023 06:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679922473; x=1711458473; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xEhSDxvMVUikwKT6OOXXJ0JooLf8U/9nqWd8K7Tx3NA=; b=Mxkpou81NujpZaLERV5HwO6FK+YcthQDrTymhN5fQ2nFEhackd7aQae2 oHdIGH4wYb3N08ur6zWndrxEV3uP4LAowmJh1Df6etri/P0xQ5FGpMX9O jMmmzJoDrr38T7DxdlWEr6n+u+CQM5ci0mKnQ9A3ZRFkigYOZz9hwpYVB 0/+fzTC29XgZ6+V4klGTjPvxb70vOH7EDYFxJWaQDfu/S9vnXWHPVu1on 9Bly3DlXWTvnoMZPEQ7V3hrpYHvjUNtz1OQS03yoqMmkiOTatakZNFi6P pp+6UQk9RcS5sEanKbfNAHJzxNRHl2b9VXjqzFd9339kLh8Y0/0QKXkSk A==; X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="402852982" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="402852982" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2023 06:07:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="772695912" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="772695912" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP; 27 Mar 2023 06:07:50 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pgmZg-009Exk-1J; Mon, 27 Mar 2023 16:07:48 +0300 Date: Mon, 27 Mar 2023 16:07:48 +0300 From: Andy Shevchenko To: Tom Rix Cc: jic23@kernel.org, lars@metafoo.de, nathan@kernel.org, ndesaulniers@google.com, u.kleine-koenig@pengutronix.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] iio: tsl2772: remove unused prox_diode_mask variable Message-ID: References: <20230327120823.1369700-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230327120823.1369700-1-trix@redhat.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 27, 2023 at 08:08:23AM -0400, Tom Rix wrote: > clang with W=1 reports > drivers/iio/light/tsl2772.c:576:24: error: variable > 'prox_diode_mask' set but not used [-Werror,-Wunused-but-set-variable] > int i, ret, num_leds, prox_diode_mask; > ^ > This variable is not used so remove it. While from the compilation point of view this is a correct fix, I think we need to hear from the author (or interested stakeholders) about this feature. Perhaps it should be enabled / fixed differently. -- With Best Regards, Andy Shevchenko