Received: by 10.223.148.5 with SMTP id 5csp6316381wrq; Wed, 17 Jan 2018 12:10:00 -0800 (PST) X-Google-Smtp-Source: ACJfBoveDZG8/rVEkAOfFobj9ku6PzrX7F0Zwy2XgM6oekmVCCDGAd1uvweq64nr4/NOBd+BFXtl X-Received: by 10.84.171.228 with SMTP id l91mr6113069plb.387.1516219800749; Wed, 17 Jan 2018 12:10:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516219800; cv=none; d=google.com; s=arc-20160816; b=wNTkXwa9nKrziCg2w4LgLIC/EzDnVKX1io24W3JXrkJFSC0hlSK7OIuqkmj4OCqMbr MzLVUnbwyO/uLkQ6equD/38nnpp7TkDkI/xq/5Y8ITD2s9aHfoTXtNV1k+GsoNeggEPX b/CtJ2yg+GQsFb0Ki17SNZJiWuLGtRMV5+wEmrzb4fQwHbdt/eAQbFWsS/GuB2yLZ32x 72ywlRoR5giXc4Po34tQjGGV3/tWvkT+R9q1KytxML+LcVJR0mME2pd6v/r9jDCs36k1 oVl9AU7jV37gfxz7K5cWpsU1nDLKQGOVtcSvG1JbBQwaxICHmmInEteGVYcb/se4k0hJ hh/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=gbEAguVEO+J7So8p3BYTmrAW6XfbejCjtXtGpBkXUX4=; b=08Nm67LXaeyvEmiyEllvvdvH7ZvtNfDNArkTYfZv5x4/VdH2Lh21OrhV1XaQAks+Gc cHzWJNC+jU7QvDHji/IDD3lSwznxpNmNbf6onq8XyTX373Jj0vxAA11cK5CW5ANKLnjN FCjpGbiLPgTT/4U3eHk0dyDY8R1QJvShkkWBzEoJ3Etab6yzKYEdVnwhJYCodDJ4PihN i2q6KU9mKUQYwg/dNxSpB2yCFHvxleUTkkHEh/RnpRwKOd7MJgAQHEWJtAMpyS+soG8P ql8KJIU+P5rgwxoJXUZbSvnHRCGClrru51QMI0fTFDQbJV03ckCji65HE3QzdwtSDm/8 q/xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NlNjBDNx; 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 e9si4349135pgs.52.2018.01.17.12.09.46; Wed, 17 Jan 2018 12:10:00 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NlNjBDNx; 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 S1752446AbeAQUJW (ORCPT + 99 others); Wed, 17 Jan 2018 15:09:22 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:45360 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750908AbeAQUJU (ORCPT ); Wed, 17 Jan 2018 15:09:20 -0500 Received: by mail-ot0-f194.google.com with SMTP id r4so14128560oti.12; Wed, 17 Jan 2018 12:09:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=gbEAguVEO+J7So8p3BYTmrAW6XfbejCjtXtGpBkXUX4=; b=NlNjBDNxMX74sq7wHnEjFempPAGGU8761armVwS/3jzLdUwN+ZX/Lv0Kh6+1guTFF4 ZhT17fTYNg3a1t7YxmPExKkTsZ0Z7Bd0BSaKDUAXIsmgHOYJfAtYmz0RhHtvdg597+91 CT2PlWQ7D5F90zfJfEMHP5LymrqjZ00woMI3KQxCyt61ns1nip5rtnN8fRdphIvwnrT6 9GZf4yX6x11VbPfj853X0WHRsgsMBkAXwYUGox60JVOwVo5IlYjQiB3DbhTZ+4NVqEDM l12oc5v9WIjLmmijIPQPftMhL8/3X+D3WUaFiBrQ3fIWzgZiePVHJGq9oaPj34SGb4aE 3Fbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=gbEAguVEO+J7So8p3BYTmrAW6XfbejCjtXtGpBkXUX4=; b=K6cL5GG8/0htNcLuekN5a8n9rJkd+czqyaBdyERcoOVZPokkyYEGY2X6KVO/uZ+CKZ Z/6xuFxxay4TE1KHD2tRe4eHek6oK/3aduaZQt3cOADIbJ3hlndPUPuxdddiwQiU7eeB HBOFf6d7VAV2Nz+kHcOLZnuRxtYiPHmYFQde6SMvmdN2edwBbygYJDL9QQfBq5h3nAOh X3kavBlJRznMVqApcjRUErxJEZr/YRsE/qNqD5fgIvOYIyitX2Q549s2HRwvAyZ5hRhC qZ5fjB9GJTNNALjMsgJeZC0alHpq08l7iKAcnq7vZ3PZh34U1Xj8hExH1prW3qnPpOyD 5bhA== X-Gm-Message-State: AKwxytdZzTjt3zLLNFOVmi7C/STE3rYk6g18luTQVdHHBIxdMqwYv1+j nhvD/VMwM6OhUIKyeRTgWq7AbHs9sWiKOFfl2N4= X-Received: by 10.157.50.5 with SMTP id t5mr1837262otc.172.1516219759894; Wed, 17 Jan 2018 12:09:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.17.89 with HTTP; Wed, 17 Jan 2018 12:09:19 -0800 (PST) In-Reply-To: <8dd30c35-011c-1d0f-7331-76df8fcd0c23@st.com> References: <20180117144644.2302131-1-arnd@arndb.de> <8dd30c35-011c-1d0f-7331-76df8fcd0c23@st.com> From: Arnd Bergmann Date: Wed, 17 Jan 2018 21:09:19 +0100 X-Google-Sender-Auth: Ikwn6PtaE9LKzIsWY8axsw4sNLg Message-ID: Subject: Re: [PATCH] IIO: ADC: stm32-dfsdm: remove unused variable To: Arnaud Pouliquen Cc: Mark Brown , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Maxime Coquelin , Alexandre Torgue , linux-iio@vger.kernel.org, Linux ARM , Linux Kernel Mailing List 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 On Wed, Jan 17, 2018 at 4:27 PM, Arnaud Pouliquen wrote: > Hi Arnd, > > On 01/17/2018 03:46 PM, Arnd Bergmann wrote: >> A cleanup left one variable behind that is no longer needed and >> can be removed, as shown by the gcc warning: >> >> drivers/iio/adc/stm32-dfsdm-core.c: In function 'stm32_dfsdm_probe': >> drivers/iio/adc/stm32-dfsdm-core.c:245:29: error: unused variable 'of_id' [-Werror=unused-variable] >> >> Fixes: abaca806fd13 ("IIO: ADC: stm32-dfsdm: code optimization") >> Signed-off-by: Arnd Bergmann >> --- >> drivers/iio/adc/stm32-dfsdm-core.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/drivers/iio/adc/stm32-dfsdm-core.c b/drivers/iio/adc/stm32-dfsdm-core.c >> index 84277bcc465f..6290332cfd3f 100644 >> --- a/drivers/iio/adc/stm32-dfsdm-core.c >> +++ b/drivers/iio/adc/stm32-dfsdm-core.c >> @@ -242,7 +242,6 @@ MODULE_DEVICE_TABLE(of, stm32_dfsdm_of_match); >> static int stm32_dfsdm_probe(struct platform_device *pdev) >> { >> struct dfsdm_priv *priv; >> - const struct of_device_id *of_id; >> const struct stm32_dfsdm_dev_data *dev_data; >> struct stm32_dfsdm *dfsdm; >> int ret; >> > Could you crosscheck? This is included in the patch: > https://www.spinics.net/lists/arm-kernel/msg628841.html applied in > Mark's branches ( commit abaca806fd13afd069e04e883de8ec75924b0598) The problem appears to have come from a mismerge in commit d84b4c7c706f ("Merge branch 'topic/iio' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-st-dfsdm"). abaca806fd13 was fine, but when Mark merged it into his branch, it seems there was a conflict because both sides contained a copy of my earlier patch 2353758bc2d4 ("IIO: ADC: stm32-dfsdm: avoid unused-variable warning") and 25140717414c, plus one had your abaca806fd1 patch on top. So my patch is correct, but my the 'Fixes' line in the description is wrong, it should have an explanation about the mismerge. Mark, not sure how you want to proceed from here: if this is a branch that can get rebased, it might be best to do that merge again, or even drop one of the two copies of my earlier patch. Otherwise I can send a new version of the fix with an updated explanation. Arnd