From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) by gnuweeb.org (Postfix) with ESMTPS id 570987E58A for ; Sat, 11 Jun 2022 15:37:53 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=bytedance-com.20210112.gappssmtp.com header.i=@bytedance-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=WI6ijgRE; dkim-atps=neutral Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-30fdbe7467cso16632857b3.1 for ; Sat, 11 Jun 2022 08:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wVBr+sp0YaWjcONzTg5TTCOzwq4j7xeRR6I1R3gyRS4=; b=WI6ijgREtxqhxJh6objs+KaDjHLMXR73FotHrvH52Bl3yZVd1jYGUTLqQKFXJgjOpN KMrLQm2l7mobkJ7tXFqUU634aGz7oQjRvyK8n3Dq36tS29gN6GrFFjM2eYOjemLpx6KK MXekEXOWpqte3OpklJCJZ7URAwegp4RJ4pXUq8PjmpIEYt/RP353lYC4DUXuzJnyy3Cy uQ3Xw3c8UsS+DYLnSBOTm9cNFgjk9FoCt/6BICsDHMGMPgC6TJJLt9qsFLv5MVCx0KJV v9feTp/gMVdAMr9KzPQU7pGwr32enF08pUYwZWOgnqwkeuWJLNVq1g3f88kJK2VCmdVI sjPA== 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; bh=wVBr+sp0YaWjcONzTg5TTCOzwq4j7xeRR6I1R3gyRS4=; b=ryVOvDkzASB00y7qSCOBm74bKPlBexO+ku19aEb5m0EA1tEbm7KdAUHO2/miCu/htI WffepQTRgk/99skYDlKZN9yeSPAd0g047fwAyUGN9VERouwBVyEQ67TyVF2QcmX+EZZz DiEBf2W4vuuxHs0PgyTlmMLkMyrSfInuMRsFrdYyVVRrqvZY+QVr3JgvNpC4zaXc/rb0 z578RrxxJzUuQyZrqoqXImyhbrPsVjgbloiG54ji2YWG/FvhAQ4FGnt7SBOITlgPm0SA e80lyVK0NNLINJu7f3k1R58ADo8UvMfRbA0v4A5F64oab5Dt/Q27Wj1KVU2VESx8wa5w MgFg== X-Gm-Message-State: AOAM531Tf25/PoApDexnlAnEt15GM5uRFUPpye0pa9xepwiiXOyGzRLz vyzHgdHbL/j+sUGH230dWcSkwhsCX2sNlS5sVo5Uzw== X-Google-Smtp-Source: ABdhPJwYscYR7a8G5x9IA2z+7RgfsS1QYNZ3XzfkiSMwfEajlF8rLQULAnRq+TeuyyG3OlRTUG6+u3PtfUe7hOtnHdE= X-Received: by 2002:a81:a1d3:0:b0:30f:c7f0:7b62 with SMTP id y202-20020a81a1d3000000b0030fc7f07b62mr53053752ywg.458.1654961872482; Sat, 11 Jun 2022 08:37:52 -0700 (PDT) MIME-Version: 1.0 References: <202206111120.hjvhr7ho-lkp@intel.com> In-Reply-To: <202206111120.hjvhr7ho-lkp@intel.com> From: Muchun Song Date: Sat, 11 Jun 2022 23:37:16 +0800 Message-ID: Subject: Re: [ammarfaizi2-block:dhowells/linux-fs/netfs-linked-list 29/57] include/linux/page-flags.h:788:27: warning: passing argument 1 of 'dump_page' discards 'const' qualifier from pointer target type To: kernel test robot , David Howells Cc: kbuild-all@lists.01.org, "GNU/Weeb Mailing List" , LKML Content-Type: text/plain; charset="UTF-8" List-Id: On Sat, Jun 11, 2022 at 11:19 AM kernel test robot wrote: > > tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/netfs-linked-list > head: c19d336b7f0c53bd31e73f6d7d6c1524f0df55b8 > commit: f951c9604853872cf088bb3dbf7d49e3f96b090d [29/57] mm: Make some folio function arguments const > config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20220611/202206111120.hjvhr7ho-lkp@intel.com/config) > compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 > reproduce (this is a W=1 build): > # https://github.com/ammarfaizi2/linux-block/commit/f951c9604853872cf088bb3dbf7d49e3f96b090d > git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block > git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/netfs-linked-list > git checkout f951c9604853872cf088bb3dbf7d49e3f96b090d > # save the config file > mkdir build_dir && cp config build_dir/.config > make W=1 O=build_dir ARCH=i386 prepare > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > In file included from include/linux/gfp.h:5, > from include/linux/slab.h:15, > from include/linux/crypto.h:20, > from arch/x86/kernel/asm-offsets.c:9: > include/linux/page-flags.h: In function 'PageHead': > >> include/linux/page-flags.h:788:27: warning: passing argument 1 of 'dump_page' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] > 788 | PF_POISONED_CHECK(page); > | ^~~~ > include/linux/mmdebug.h:21:35: note: in definition of macro 'VM_BUG_ON_PAGE' > 21 | dump_page(page, "VM_BUG_ON_PAGE(" __stringify(cond)")");\ A lot of places which need to be fixed since dump_page() calls lots of helpers which do not declare the "struct page *" as "const struct page *". e.g. page_mapcount(), PageKsm(), PageAnon(), page_to_pgoff(), PageCompound(), etc. Thanks.