Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp492590rwb; Wed, 5 Oct 2022 23:31:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6A16c9fa7rmoT106hoE1yhGvmp2008PLGRxFJAARe2CQmSbgaU08T+QndvVYoYHD4+41t9 X-Received: by 2002:a63:1308:0:b0:440:5517:c99d with SMTP id i8-20020a631308000000b004405517c99dmr3193646pgl.550.1665037869528; Wed, 05 Oct 2022 23:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665037869; cv=none; d=google.com; s=arc-20160816; b=uY01+7xrDBwPrMnXCvO2gAegmxJwYjS69wZmTmDvoa6iK2s2CgR7KNrzmCyW06oftD gq9DQ9rPnc1Wm2zFuzkgMaanr2eLU4WtAnSxbBKQYMaw0+cl/IWBl0s9xZqmGUiw6out 6LjtFfpDe06HLRVMA/Bad8HAU4HGa6sieYXKFUIzfpxGIKpnGoiHV/5csqqJWLVJKsPk VvR9CkFnCbUoEQDe+8A1DwLT8eEaWu28/xQoaz2QUmCs32arEJLxo2GD0P55Cuto+LbP 9dtuzBtqlob8wwM56zoPwOE4Cj7pOYhnHniWpVUFxCZNmXb4bp7ToJrV37g6oiGq3jMV TPYw== 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=L6i98yo8i+oIQVXrluWBB5cmPGvlTG4nAtqd9rjrN+M=; b=qCs7g8UBBG52470aKwZ/9dSnV+AVLGWLnJWRvV0zD9G5FrJzZVFtY4VGdJputbclqb I+FWjVt9cP/+sV/7W90ROAsgyS/RTO8lzbEPXl/50CqcMrcM9PPvhcdZlAlsfkDgdHee zYNSrZ73HjbPjZ1tzkBse9qsjzeVovqp2ZYfvMMlTcLCgsvXKfC0p03kC4Hlo4t00FPQ Qo+HaKNkacX/NbIRDoxgW4QUGHzfMF9NSdDyGri2CuhsKlhMv60I1/eF1fOC5QYdOo+D OGnlfhwZkB6HBR0lgjcGn3nomcxSdwIxrQumwA5tgualRkScT64MjiVELM+P0vjw+zYi Z7Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QU44qG4R; 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 q14-20020a170902f78e00b00174c8f14836si15157270pln.237.2022.10.05.23.30.57; Wed, 05 Oct 2022 23:31:09 -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=QU44qG4R; 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 S230061AbiJFFZ4 (ORCPT + 99 others); Thu, 6 Oct 2022 01:25:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229853AbiJFFZy (ORCPT ); Thu, 6 Oct 2022 01:25:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C67297EFD6; Wed, 5 Oct 2022 22:25:53 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 6CEC661844; Thu, 6 Oct 2022 05:25:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9888C433B5; Thu, 6 Oct 2022 05:25:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665033952; bh=COGl5uV0nSso0ASdfQpE3uWYO735hZcandisnHobVps=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QU44qG4Rm1M0zo9iHJPLh5Zj524EOifybS++udldoMyZWSqogiejpjindLfsdbkXi hIo5mZumUMD6ZXiSZfORmxbC1MBM6soHIFaMzVIntXHr5Su9l/kxgoMtCHDlwG58RI cVMXx4lT1vrUiwok/LrtWulWfs24AaH/4tptKksRVoLgqxODpcPtcpLvaAoaMW3oeX Cw6KizHXhiKMaFYMjyipdEGwBUhwLnFkuojrjavw+zJDBmnnT5vXRkGbLMa0tgYGcy LR81XyFoFtlbA/TUK5uii4Uq1jceG5Z9JuC7GE2cGDQIS0bxfVlCNz1k8hX3hQ/NtE hAjLXEJiMLBOQ== Received: by mail-ed1-f50.google.com with SMTP id s30so1271035eds.1; Wed, 05 Oct 2022 22:25:52 -0700 (PDT) X-Gm-Message-State: ACrzQf1dah5iAMQfwkn3agg20iWdxIYVRvm2L9wJqRp6+kTWE+GCQQYk lpKBzAizoQaAN6gXYcqviSUwzeUOTMxLFn0Xugw= X-Received: by 2002:a05:6402:c81:b0:458:c428:173a with SMTP id cm1-20020a0564020c8100b00458c428173amr2920220edb.298.1665033951020; Wed, 05 Oct 2022 22:25:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Huacai Chen Date: Thu, 6 Oct 2022 13:25:38 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: build failure of next-20221005 due to 4078ec1ef5ed ("LoongArch: Use TLB for ioremap()") To: Xi Ruoyao Cc: Huacai Chen , WANG Xuerui , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, Sudip Mukherjee 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, Ruoyao, On Wed, Oct 5, 2022 at 10:14 PM Xi Ruoyao wrote: > > Hi Huacai, > > Try: > > #define iounmap(addr) ((void)(addr)) This can solve the problem, and arm use the same way: #define tlb_flush(tlb) ((void) tlb) but I don't know whether this is the correct way. Huacai > > This is how we normally silence an unused variable or parameter warning. > Not sure if the kernel uses the same convention though. > > On Wed, 2022-10-05 at 13:54 +0100, Sudip Mukherjee wrote: > > On Wed, Oct 5, 2022 at 1:30 PM Huacai Chen > > wrote: > > > > > > 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". > > > > And that error will fail the build as allmodconfig will have > > CONFIG_WERROR=y. > > > > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University >