Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5959239pxb; Mon, 14 Feb 2022 11:43:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXKAwoYiiqfaYyV9NmYuWRFAFlueSCdWmiStPMQsnA7d1FpWAXftTd8RXAWxNvFyzV7lb3 X-Received: by 2002:a63:5454:: with SMTP id e20mr460999pgm.621.1644867789052; Mon, 14 Feb 2022 11:43:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644867789; cv=none; d=google.com; s=arc-20160816; b=sn5nlYefichvIIEdWwIPKTNU8WL8vgcTYyx4WZ/teeXqXXuyLBRm6bubSvnU5xgbWd pEYHbBVyJPYm0+XVGyCBUiAMzNIfsqLjcfyLis7glW4EMbVKJVKoy0tdSXeDZKXZ9JIG LOufufyubIf7Xm+9RcfFlpHKGmDpkxPS7DIjQUsEeXabc+XwUhPOb3XLnH/ngQxE33tH FQkTBDm0nOjWvhD29XjlE52sdAH/tEedfhr+rfRGv/51SNyMrWfGoRjfxB2KGzpEJiJd mfzQYBSNe3eSqGbNi7fyV8CNAgt04C2PAQ0qglcqkvhu1x/3kYkIMD885ZF5mKX0vjOk YroQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=hOncbTiUgMnHpSi2vPc+7MvV662pDhRudFIUCoQr0F8=; b=xNHa5WFQzQMhKdCtG9nMca/0DFurA3xuhvi3l2BZQhHSALhhPPQenOngxYj+//BkiG y0xoZLDKeQ+VjFz16NB/XIdnmwXb958iqT4270DyK3or++8rbgKsh7UzUcGZr7oQ9Te/ KVl3B10Lt6iwyXnIszMlT3aFb4Mr9wMsMy7eN5G/JZBOae+DbSBOLdgVihtJsV7920gQ WtbCNxhyzKn0sYAB2s3dkWlQYZJgbC62YKjUfucmfPUmC6rg4Svq+bfW3U3vAVm8bDVK IYDKIaNZ0bCU+YgcNMdHUiPj598J5lhhtARZKmVfqV65IkdVVUOVOTNcDQEIk2QydqxW VUCg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m12si5045645pjg.10.2022.02.14.11.43.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:43:09 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E4C85DCE05; Mon, 14 Feb 2022 11:28:16 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355742AbiBNPTX (ORCPT + 99 others); Mon, 14 Feb 2022 10:19:23 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355749AbiBNPTU (ORCPT ); Mon, 14 Feb 2022 10:19:20 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC14A5BD24; Mon, 14 Feb 2022 07:19:09 -0800 (PST) Received: from fraeml735-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Jy7CD6Xbbz6899G; Mon, 14 Feb 2022 23:18:16 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml735-chm.china.huawei.com (10.206.15.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Mon, 14 Feb 2022 16:19:07 +0100 Received: from localhost (10.202.226.41) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Mon, 14 Feb 2022 15:19:06 +0000 Date: Mon, 14 Feb 2022 15:19:05 +0000 From: Jonathan Cameron To: kernel test robot CC: Anand Ashok Dumbre , , , Manish Narani , Subject: Re: drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams' Message-ID: <20220214151905.00005a27@Huawei.com> In-Reply-To: <202202142203.4ofqbic9-lkp@intel.com> References: <202202142203.4ofqbic9-lkp@intel.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.29; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.41] X-ClientProxiedBy: lhreml718-chm.china.huawei.com (10.201.108.69) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, 14 Feb 2022 22:47:14 +0800 kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 754e0b0e35608ed5206d6a67a791563c631cec07 > commit: d5c70627a79455154f5f636096abe6fe57510605 iio: adc: Add Xilinx AMS driver > date: 8 weeks ago > config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220214/202202142203.4ofqbic9-lkp@intel.com/config) > compiler: sh4-linux-gcc (GCC) 11.2.0 > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5c70627a79455154f5f636096abe6fe57510605 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout d5c70627a79455154f5f636096abe6fe57510605 > # save the config file to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/iio/adc/ drivers/net/ethernet/freescale/ > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot I'm very tempted to say won't fix on this at least not in the IIO code. The issue I think is the stub for iounmap on sh with no MMU not using the argument because it's defined as a while loop rather than as an empty static inline function which is what we'd get it it wasn't defined at all (AFAICT). If anyone wants to take this on, my guess is drop https://elixir.bootlin.com/linux/latest/source/arch/sh/include/asm/io.h#L274 and see if everything still works and the warning goes away. +CC linux-sh for inputs. Thanks, Jonathan > > All errors (new ones prefixed by >>): > > drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_ps': > >> drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams' [-Werror=unused-variable] > 1195 | struct ams *ams = data; > | ^~~ > drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_pl': > drivers/iio/adc/xilinx-ams.c:1202:21: error: unused variable 'ams' [-Werror=unused-variable] > 1202 | struct ams *ams = data; > | ^~~ > cc1: all warnings being treated as errors > > > vim +/ams +1195 drivers/iio/adc/xilinx-ams.c > > 1192 > 1193 static void ams_iounmap_ps(void *data) > 1194 { > > 1195 struct ams *ams = data; > 1196 > 1197 iounmap(ams->ps_base); > 1198 } > 1199 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org