Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp131653rdb; Fri, 29 Sep 2023 20:48:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmE1sxPZCsAjUCY0pb2U64DZEXplt1MBJgeYDbPINvbLGmG9jFL3CMZIJC53RFxAM2eoul X-Received: by 2002:a05:6808:28f:b0:3ae:1d7:9c9 with SMTP id z15-20020a056808028f00b003ae01d709c9mr5776491oic.50.1696045688767; Fri, 29 Sep 2023 20:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696045688; cv=none; d=google.com; s=arc-20160816; b=wQNGZSAmDKpkBGqxxfDbCJSrIvjxgcn3YcQ0J0V0buxgeR7FW2LjeHGX+s3CY2Bwdq XO4/VPlr0HKRhizM8TuxG9Mx4Diyh1ir86DV6slo7IqjmZFC9Q8U4Ly4aGFsLcC3Qa1A fI1yVAu/OxmC3KM2cyxbZO/u6hlBSt9DCFwp62dGsaWnJgPzTS0R9RNifK6BGAssfizb fLF38p3M5z1ZQ2yB0CAy3BJQaUhFaPHDtr6pUo1w8uYxXU289JCBCS0oWkdLWaN8j1NO SWsMr8xIxhKtuOqF3SQ3eiE/2kanbEea/WhxHJOZPzjAkXpps3HNvGu2rB1fM9Evc4F+ H3hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sutjUDhTdDiAZXC/zVaX0ZtYjfFd9yMSNdgYvXTeOug=; fh=Z5SV1GKBAV9UugPvN8vi09+Q85c8MXoXDBkzaWrlMB4=; b=oGTlOm99G3nCILVZT7t/QQgwrzMV0C1XoMHJsMGTa/HkRfd+PmFAeLaDW5hdplpkDX SFerlXpRrUduIm88U2c8yMwGY9holZaxYykDWsEZDAFwOXMRQPBg3Wq2JIBiOWja1Aw6 sUAKzmaLI9EqBVzCwMJ1yNlzYjXzvhXVpKfW97wbb3b9MIHvXN5G4kwu9pNFiIvjyFB7 9BXDLEDMHhtoLvIfhf87VjC5AsmU4aSebQ03pAl4bLEVj8GZxO18SqhDC21g4SAHclwX fJKC0GNOGbUghoibNRh2co92fUtcjyF68kCIDGB3debjPOeYHHp14ikEQVIgw8eYcw06 a3Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=v0RAgpBm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id i10-20020a170902c94a00b001bf20c806b0si18918856pla.175.2023.09.29.20.48.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 20:48:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=v0RAgpBm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 08CEC804C497; Fri, 29 Sep 2023 19:46:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233069AbjI3Cpw (ORCPT + 99 others); Fri, 29 Sep 2023 22:45:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjI3Cpw (ORCPT ); Fri, 29 Sep 2023 22:45:52 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF1701B6; Fri, 29 Sep 2023 19:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=sutjUDhTdDiAZXC/zVaX0ZtYjfFd9yMSNdgYvXTeOug=; b=v0RAgpBm5ZT2ZxQnZfMcFEHZ/d BiXDSjXPSB1g39XP6qRT1ye7gQL37dsA4SBC8Dc6b1rTtzCkKsBHVkD1JiitYqxRZexcSyrSe8rNi OfxiYfx6siWmgpv0frJEbLtj7OTgheaPCzObybCqPJQAqMuSsy6eJIt01w2wyhDg8kaDgIT+MqmI/ +MmbYg+Bavpl1ZirM+m8I/jz1HPXm+xziggYgPOPZM4fmuhGkZMwZ8krSppXo9GaSRLQmvpdIkglf DoWWxyZUgQJ3YkEli1ePUDj0XxEyvOYMtoTLPvyGMiIyq3nyZqfycFnayCd1o3bdOBOazjrEEPnYy leSEulCw==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qmPz8-008ppw-1G; Sat, 30 Sep 2023 02:45:38 +0000 Message-ID: Date: Fri, 29 Sep 2023 19:45:37 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] Fixed Kunit test warning message for 'fs' module Content-Language: en-US To: Abhinav , akpm@linux-foundation.org, david@redhat.com, rppt@kernel.org, hughd@google.com, Liam.Howlett@Oracle.com, surenb@google.com, usama.anjum@collabora.com, wangkefeng.wang@huawei.com, ryan.roberts@arm.com, yuanchu@google.com Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, skhan@linuxfoundation.org References: <20230928085311.938163-1-singhabhinav9051571833@gmail.com> From: Randy Dunlap In-Reply-To: <20230928085311.938163-1-singhabhinav9051571833@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 29 Sep 2023 19:46:30 -0700 (PDT) Hi, On 9/28/23 01:53, Abhinav wrote: > fs/proc/task_mmu : fix warning > > All the caller of the function pagemap_scan_backout_range(...) are inside > ifdef preprocessor which is checking for the macro > 'CONFIG_TRANSPARENT_HUGEPAGE' is set or not. When it is not set the > function doesn't have a caller and it generates a warning unused > function. > > Putting the whole function inside the preprocessor fixes this warning. > > Signed-off-by: Abhinav We have this patch: https://lore.kernel.org/all/20230927060257.2975412-1-arnd@kernel.org/ which is already merged. Thanks. > --- > fs/proc/task_mmu.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c > index 27da6337d675..88b6b8847cf3 100644 > --- a/fs/proc/task_mmu.c > +++ b/fs/proc/task_mmu.c > @@ -2019,6 +2019,7 @@ static bool pagemap_scan_push_range(unsigned long categories, > return true; > } > > +#ifdef CONFIG_TRANSPARENT_HUGEPAGE > static void pagemap_scan_backout_range(struct pagemap_scan_private *p, > unsigned long addr, unsigned long end) > { > @@ -2031,6 +2032,7 @@ static void pagemap_scan_backout_range(struct pagemap_scan_private *p, > > p->found_pages -= (end - addr) / PAGE_SIZE; > } > +#endif > > static int pagemap_scan_output(unsigned long categories, > struct pagemap_scan_private *p, -- ~Randy