Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1863206rwb; Wed, 5 Oct 2022 06:03:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4iC881lcHgPQGx9X/axrIE7Uz5Lz5D4/JfBmN6cA1IhTYEtqWHBfI2fEBsyGIoj5SbW+q1 X-Received: by 2002:a05:6402:1f06:b0:457:149d:beaa with SMTP id b6-20020a0564021f0600b00457149dbeaamr27940725edb.238.1664975010481; Wed, 05 Oct 2022 06:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664975010; cv=none; d=google.com; s=arc-20160816; b=oK3/an7lqx2T5Txm5EKjMWIKSY+3CSmP8p2TT626K3uCKZf8iTXHbGnGEuaDico1Qq cP4a+higEBzGcU5CTCrmnlXsL3b0JPnkq0tXXR+Tel580TjyKxQx771lrXhbI9LDgejo joJlZH6601gybkLTV10NLsVRinC4uqZjxCOrhBdmN1i2jfD+2zi3tyTJOnmnpX2d5Dua 6EjSFq310CuzIfjbqnp1ta7Q0bSC2bxDBj93cqLQNe21dp9DPNY/wNI9dgpPNLJ1BRuv jB+pELMdQ8WV61NSCZSmadY85TemMDLTcZCJyULcevjBhu4vrJXicJoSq8WoqU74CCdk OyLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GPfouXdagpTg/gPzKpePpn6BlcmoOe75yVfdG7kWO+M=; b=q0XQ9krHNezczuf5qC42lw6DdXiA0X4z+oRIgxEjnXW6fHZFtrLlrBBG9BG8HqV9ui H8UiBjeQ4r9FgQErrF3lLfafX0sUtOEtOVZbydoSW5ZAw/4JConMjtv6dt3KX1J0Ud8w aGcgJnB9gt910E1O+wlJzR1jcOU0MllP1E38ednhl7y4CsIRcayYqBEUpQemCaFsXGdK N779eyhCUF0p71NXNP2+aIBh6UUFwB2YD4UEj9fI6BZlKbH+anBPojjJf9CRbgtniC+L PpDyBLt5igK0DVPZ6c17vHBsF1q2WdWfQDSHD848iL2vUWlA5PlHApIpOEzWNmxnZMwz 6PLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uNkQZys6; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js18-20020a17090797d200b007837bed6470si13941708ejc.576.2022.10.05.06.02.56; Wed, 05 Oct 2022 06:03:30 -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=@kernel.org header.s=k20201202 header.b=uNkQZys6; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229754AbiJEMaz (ORCPT + 99 others); Wed, 5 Oct 2022 08:30:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbiJEMaw (ORCPT ); Wed, 5 Oct 2022 08:30:52 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2209A25E8C; Wed, 5 Oct 2022 05:30:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 9BDD5CE12FA; Wed, 5 Oct 2022 12:30:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E00E2C433D7; Wed, 5 Oct 2022 12:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664973048; bh=MUH/5Nr9NH5nKvpp0g6W1q0YMvqiwhZO2hEEaGu7mjg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uNkQZys6eTVye1mUdQlmmPlOzfcPR4HVn4+cBENggnv0hjY/R7ncfpjGyssN4t7u8 WyaJfbsbSONZ2w6dut04UzBU0rH7Gn2fAz1bkhWqMEg46XGLTruf4qerOC7A3wL30x khjyz5RvzQv/QfzwqN5AY3MOZOsEMICr0XTM7isnK2VSaZQ4nvG7x8uZOn8o5AoUL0 pse87rtFEj08C3l2ZgjOtQlXsF7uKe4/vPMMupSJO4Ee4ZfHEaDM2CHGr2LeTdHSqO CsjHkDbQ0la+igFccgmQTJ4hVhhh0wIo5URoSih3Mt8J1L0qzpxPIiD6c9WHWLnHno Lw4pIiRn2pptw== Received: by mail-ej1-f49.google.com with SMTP id kg6so19777019ejc.9; Wed, 05 Oct 2022 05:30:48 -0700 (PDT) X-Gm-Message-State: ACrzQf1OyarxO8lzeZ4ZwAIwxKx1UgUIc40qYEmdQXWsfdkgsYK/Na5G sD9xrgiNQbZTrvDabwIfa50GCEdsaUtse853C+M= X-Received: by 2002:a17:907:a05a:b0:78d:225c:bbc3 with SMTP id gz26-20020a170907a05a00b0078d225cbbc3mr4319639ejc.224.1664973047171; Wed, 05 Oct 2022 05:30:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Huacai Chen Date: Wed, 5 Oct 2022 20:30:34 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: build failure of next-20221005 due to 4078ec1ef5ed ("LoongArch: Use TLB for ioremap()") To: "Sudip Mukherjee (Codethink)" Cc: Huacai Chen , WANG Xuerui , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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, Sudip, This seems a false positive. When the implementation of iounmap() is empty (but this is completely legal I think), these drivers will cause "unused variable error". Huacai On Wed, Oct 5, 2022 at 7:43 PM Sudip Mukherjee (Codethink) wrote: > > Hi All, > > The builds of loongarch allmodconfig have failed to build next-20221005 > with errors > > sound/soc/mediatek/common/mtk-btcvsd.c: In function 'mtk_btcvsd_snd_remove': > sound/soc/mediatek/common/mtk-btcvsd.c:1394:32: error: unused variable 'btcvsd' [-Werror=unused-variable] > 1394 | struct mtk_btcvsd_snd *btcvsd = dev_get_drvdata(&pdev->dev); > | ^~~~~~ > > > sound/soc/sof/intel/hda.c: In function 'hda_dsp_remove': > sound/soc/sof/intel/hda.c:1185:26: error: unused variable 'bus' [-Werror=unused-variable] > 1185 | struct hdac_bus *bus = sof_to_bus(sdev); > | ^~~ > > > drivers/mfd/asic3.c: In function 'asic3_mfd_remove': > drivers/mfd/asic3.c:940:23: error: unused variable 'asic' [-Werror=unused-variable] > 940 | struct asic3 *asic = platform_get_drvdata(pdev); > | ^~~~ > > > drivers/gpu/drm/exynos/exynos7_drm_decon.c: In function 'decon_remove': > drivers/gpu/drm/exynos/exynos7_drm_decon.c:771:31: error: unused variable 'ctx' [-Werror=unused-variable] > 771 | struct decon_context *ctx = dev_get_drvdata(&pdev->dev); > | > > > git bisect pointed to 4078ec1ef5ed ("LoongArch: Use TLB for ioremap()") > > I will be happy to test any patch or provide any extra log if needed. > > > -- > Regards > Sudip >