Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1970014rwb; Wed, 5 Oct 2022 07:23:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ncMxtEBViaaWW1C/m1SToabEnKh2OCWlP7XDk9CuUTSCjGbnnx7cpaHcl0ag+X+8ba+VO X-Received: by 2002:a17:907:7241:b0:78c:9371:4d72 with SMTP id ds1-20020a170907724100b0078c93714d72mr10234436ejc.205.1664979815027; Wed, 05 Oct 2022 07:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664979815; cv=none; d=google.com; s=arc-20160816; b=m+2GKWZF3OyRwrSrJvlUUastkWTPYsNbLTlaJ5MGAaKdqjkVNZ/UjeTTZvO67deghM EBGgO1/bra6iM9VOTzSD6s0WATxxsC6/xgI+BY+vJaZN+L3A80VoD5nS0Jc4flD6mCcq 89lM7z4imX4PhkJ01sE0n/5X9ZQT+cyRpJdJ9pQ/tdJMZ90klsJwRUumri9HBH1ra4IA /ubTave4q1JoaZnp+IEgijuHAZQKYmbTOI64R4sg7kxm/a4gv55yvhOYT88AOLpR/ID1 C9obTb7dJTKT1ZzPY5KPiH5W3cC7RAOyKujkWuhkShuWvzUgErc281j/dQORlKGYiM1p YcNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=ZECf7KU7iOtafZ/0dVIWw4XP10VzhUl+beIW14xajGs=; b=igvM1QKXjO+0xu+i3oK7hC8oXHPl3FKh44FzdMo9T5QP/yo4H2wGnFm2NGS5QH6BO2 Rf+UIz+zLl1eM9kBm9HShL+aXrIAdmdqR+5bLXfgb8OyJZZRxCDIUjIX4Kg/FTvEXnc1 MevjSddki4oAbOIdQv7y5/zweFg4/HL9jV7XgLCpolYQ6r355oeJD+Tedj/avIkt3XxI qmL8yyv4vcrefRpHsbDyxnf9z4Tyt62RrDLjDUSgK2qVtMgAqF+yu86YKiaEJPkAaSF7 F5bXNMYfzri1BYgIWDn+zRa8+v8uCokCSSK7riZxuE2mZiw+0tNHeZ8PptZ8IZXq5eL7 aHBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=EuwaX8ZT; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga24-20020a1709070c1800b00780d2b861cfsi13679117ejc.389.2022.10.05.07.23.08; Wed, 05 Oct 2022 07:23:35 -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=@xry111.site header.s=default header.b=EuwaX8ZT; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229724AbiJEOHU (ORCPT + 99 others); Wed, 5 Oct 2022 10:07:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbiJEOHS (ORCPT ); Wed, 5 Oct 2022 10:07:18 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A80587694E; Wed, 5 Oct 2022 07:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1664978835; bh=ZECf7KU7iOtafZ/0dVIWw4XP10VzhUl+beIW14xajGs=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=EuwaX8ZTGMEpX9G1rX17oNj+i9mW50v02g13o4NKOGgKIZ9wtrvAemwbG4JRj/l3V /LopbJT0lM72TxG2x2lYsjqi8Rz4+W6GId/7KRK8vv783Pq6cil46bDLfglz1/Jci+ k88H1cZWZZU24AiuCCuMHs9TMIeJVm072nJvHa8A= Received: from [IPv6:240e:358:1191:4a00:dc73:854d:832e:3] (unknown [IPv6:240e:358:1191:4a00:dc73:854d:832e:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id EB82165C3E; Wed, 5 Oct 2022 10:07:09 -0400 (EDT) Message-ID: Subject: Re: build failure of next-20221005 due to 4078ec1ef5ed ("LoongArch: Use TLB for ioremap()") From: Xi Ruoyao To: Huacai Chen Cc: WANG Xuerui , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, Sudip Mukherjee Date: Wed, 05 Oct 2022 22:06:56 +0800 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, SPF_HELO_PASS,SPF_PASS,T_PDS_OTHER_BAD_TLD 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 Huacai, Try: #define iounmap(addr) ((void)(addr)) 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: > >=20 > > Hi, Sudip, > >=20 > > 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". >=20 > And that error will fail the build as allmodconfig will have > CONFIG_WERROR=3Dy. >=20 --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University