Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6416107pxb; Tue, 15 Feb 2022 01:50:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUqwiRlmV6hOoiwquGpYe0ryYuyJQ/5DFlqkjbHqOOOTUrkYTV3h4ZhNdHTZvSp8hQ3qlS X-Received: by 2002:a63:1315:: with SMTP id i21mr2898118pgl.10.1644918641804; Tue, 15 Feb 2022 01:50:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644918641; cv=none; d=google.com; s=arc-20160816; b=b44kDUKXSwg3nuozUH5/KDS/WqUhxXEuLyA7Rkf/YTXnRrv56XDvQ5WzVEQZ873Be/ +zeJ5dbEqGRmbYTXCPasvojyMB9O3wPfnkLJon96t0CCz23wZ4ORMvPtpIJ36DOETPig cYpU0KqaqpuOwYQpXtypszgIeAL6tqUeG0zpy4P1xNPPSZHlmzK229znrySGwkAZmZHR I7nBO7moLFYgJ0C5MNtPmTCbxltMqRau6dt4IXL5f5pYpQhaITivs60MK54mmPEt8nDP 7/LKjeCmLECyKtpLaNbEA4F4G8polAm/RpYWHZCJvh5hY+UKlMcnLBHezqMIg0rofIfd PHkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=JlzSWMFolTNfP3vcphlo3Od6Qxz7n5teAyXWXP2T+F0=; b=bx0ZQOH+VkEMMVL+8GVhbd8yCtyW53OXSNBF+Y4ZkjovvX91yS0C+9pykpdSKMJzoR nFV2Deg4q8V8+FE90BLNfLtLoFNyA0E5YkEAzJz7DLRNPv6TcS43lB95YRwoSCi+bkA3 TRzvY0HA9gil870m/hWlmu1ntscwFy35oTKImZ9ghiDIFXmmgQWdbOUcN8fPHLs9pCId 2hEGL2CqkCPteE4jcfdFI5t4J55VQPTOQ/lv0M+G6rQf6j8RypREmWffWYodaC6GlN/A EYcC57NJx744Fg/m97FTk8/Qpu54zHbywKjBJlkRm1NxsTg2o44tY3zs05eDZhTyt1jo NNyA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k10si36386804pfc.213.2022.02.15.01.50.26; Tue, 15 Feb 2022 01:50:41 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235492AbiBOIdi convert rfc822-to-8bit (ORCPT + 99 others); Tue, 15 Feb 2022 03:33:38 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234086AbiBOId3 (ORCPT ); Tue, 15 Feb 2022 03:33:29 -0500 Received: from mail-vk1-f180.google.com (mail-vk1-f180.google.com [209.85.221.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E29A3C621A; Tue, 15 Feb 2022 00:33:19 -0800 (PST) Received: by mail-vk1-f180.google.com with SMTP id j9so2266619vkj.1; Tue, 15 Feb 2022 00:33:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=oR61WoE2PUcAYaftqeV9KOA2/duj5FvLte7fWGKCtuM=; b=JbZUl8BSz2gsWG7vZO2wQBaLDJUsVK4njR3CDP5+pzrfj8NiXKvZzfIm0Y35QFnXj4 EVQ4lsNoqbq93MbLDu+8yBc1w3a22ExU191yaXUUohnOoJWC+AHxSvyg4TQOou9P3hwC kINtdFWwCNy+JyyojNJwglxwTKD7OHEAoIIkW6dSOF8uLaTFYMT5nk1fEOVvqSRKSn9T 2krY9q36yZnC2vED2SlxzVbJDVF7+ffyq61Wes3vTyKQ54JyOQRAMFmkCZMkestp1vom eH+TN5po8u6bXVPPgl1Yebeal1gmRQJcE+KWwCej+yewpwCOJKnCT5U37OD4SoOmk7j2 U0Wg== X-Gm-Message-State: AOAM5330eOUl9nfYNiJZMsh6fqouRB5cnhEjltZFqjpUXltmxayH15LD jZmRbAdE9vqCKtYL4+/4An0wO3gTk7sOMIC5 X-Received: by 2002:a05:6122:d0b:: with SMTP id az11mr907935vkb.11.1644913998923; Tue, 15 Feb 2022 00:33:18 -0800 (PST) Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com. [209.85.217.42]) by smtp.gmail.com with ESMTPSA id t3sm430827vkl.53.2022.02.15.00.33.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Feb 2022 00:33:18 -0800 (PST) Received: by mail-vs1-f42.google.com with SMTP id j20so7898598vsg.5; Tue, 15 Feb 2022 00:33:18 -0800 (PST) X-Received: by 2002:a05:6102:440d:: with SMTP id df13mr953197vsb.5.1644913998142; Tue, 15 Feb 2022 00:33:18 -0800 (PST) MIME-Version: 1.0 References: <202202142203.4ofqbic9-lkp@intel.com> <20220214151905.00005a27@Huawei.com> In-Reply-To: <20220214151905.00005a27@Huawei.com> From: Geert Uytterhoeven Date: Tue, 15 Feb 2022 09:33:07 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams' To: Jonathan Cameron Cc: kernel test robot , Anand Ashok Dumbre , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Manish Narani , linux-sh@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, 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 Hi Jonathan. On Mon, Feb 14, 2022 at 8:17 PM Jonathan Cameron wrote: > 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 Indeed. > 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). We would get that only if would be included... > 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. Nope: error: implicit declaration of function ‘iounmap’ > +CC linux-sh for inputs. Thanks, I'll post a fix. > > 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 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds