From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C7D7C433B4 for ; Fri, 14 May 2021 10:23:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BFF43613F2 for ; Fri, 14 May 2021 10:23:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BFF43613F2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 26E686B0036; Fri, 14 May 2021 06:23:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 21D7C6B006E; Fri, 14 May 2021 06:23:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0BFED6B0070; Fri, 14 May 2021 06:23:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0216.hostedemail.com [216.40.44.216]) by kanga.kvack.org (Postfix) with ESMTP id CBAF66B0036 for ; Fri, 14 May 2021 06:23:19 -0400 (EDT) Received: from smtpin37.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 636A38249980 for ; Fri, 14 May 2021 10:23:19 +0000 (UTC) X-FDA: 78139449318.37.1BA5F07 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) by imf23.hostedemail.com (Postfix) with ESMTP id C78D0A00038F for ; Fri, 14 May 2021 10:23:18 +0000 (UTC) Received: by mail-ej1-f53.google.com with SMTP id b25so43897274eju.5 for ; Fri, 14 May 2021 03:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=qFvlD/6BZ28fWecjReUkM0S+uIcLjLXGLnAAXqLleOE=; b=DFjSplouAYxk8g+uU6Lmm98zjOYeoXUdkR3CRH8faIsFhibzsRykoB2DZhkNbhQ7QL TPhnR0j8RnnW3plqP+6O0Wxnpw6XlPuyHhGvi+jQV2QHxWG66sUB7m/mRcZLNYhfGXhy 7CoUll/tJVrk2GFia2iGHneRPtlOpj1t/VC5rDD3u8zf/tr663x5oJT8ng1NWwqBFTOP kIt+nykxS07El/02YYYfKyjv/yfpCJozD9lpQOsztnavynYi7rqMyrPwKw2mgjQetwy8 2R+4mOAny4f7A5tEVNw8YoW7Uazq99rE6YJqfnWZgFBN/8xgj2QceC1kovlcKyyJ3Y54 iDPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=qFvlD/6BZ28fWecjReUkM0S+uIcLjLXGLnAAXqLleOE=; b=sv57CFypT+XJKe6c2N4CW7jK0uhjkh5mk1lQhCoRxBY3Og/mrf9RGUN3oafjDhk9yQ j22gxiisa29mUX297RIXbr/3z5b9fNzxAs329iXX1F+ASDQk+9zkIZ0Bhk91tfq38GMf B5Gok15heqBw3ZlOc0Q3Oo+n5ZbOam6ELF8UtWAIIjgGsnoJrE6EtOA/eyytp+SAxhYu utIkbhxdSLww58asKMSctlduKHzspsaY0J1dReIGgMsoeWXjjbTiKRX0g5oVvUP7JCZB o76obiWAVj9zl3WojFTPrgtCC9r6EFIzygKjELWSR0cDRivv9MTOT6Y1HhhvozMyCpVT kt8A== X-Gm-Message-State: AOAM530JR87fZ8+q4D4cDsmmU/zsFmV19qrIrAt1rUVXWUA5QE6No77m dlxMvB0QjIvjVlFZtwFUmSIhrY8iP+pC1vL4pWVf0moDLXCaLCpN X-Google-Smtp-Source: ABdhPJy3xvOAXq45yI7qPsRL45PJ5C0F2LADSb0+HTVKyVLapOesgozoqdN35AGPQ1Be6TQ4mpGJ7eYkCDwk8eNu8Mk= X-Received: by 2002:a17:906:fcdc:: with SMTP id qx28mr16285817ejb.375.1620987796824; Fri, 14 May 2021 03:23:16 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Fri, 14 May 2021 15:53:05 +0530 Message-ID: Subject: Re : mm/mremap: use range flush that does TLB and page walk cache flush To: linux-mm , open list , Linux-Next Mailing List , linuxppc-dev Cc: "Aneesh Kumar K.V" , Andrew Morton , lkft-triage@lists.linaro.org, Chengyang Fan , Christophe Leroy , Joel Fernandes , Kalesh Singh , Michael Ellerman , Nicholas Piggin , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: C78D0A00038F Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=linaro.org header.s=google header.b=DFjSplou; spf=pass (imf23.hostedemail.com: domain of naresh.kamboju@linaro.org designates 209.85.218.53 as permitted sender) smtp.mailfrom=naresh.kamboju@linaro.org; dmarc=pass (policy=none) header.from=linaro.org X-Rspamd-Server: rspam04 X-Stat-Signature: cgaorqrxnq55f3skj3qj4ikthgfowkxh X-HE-Tag: 1620987798-342825 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The LKFT build system detected these build warnings and errors. Regressions found on parisc: - build/gcc-9-defconfig - build/gcc-9-tinyconfig - build/gcc-10-allnoconfig - build/gcc-10-tinyconfig - build/gcc-9-allnoconfig - build/gcc-10-defconfig make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/current ARCH=parisc CROSS_COMPILE=hppa-linux-gnu- 'CC=sccache hppa-linux-gnu-gcc' 'HOSTCC=sccache gcc' In file included from /builds/linux/arch/parisc/include/asm/cacheflush.h:7, from /builds/linux/include/linux/highmem.h:12, from /builds/linux/include/linux/pagemap.h:11, from /builds/linux/include/linux/ksm.h:13, from /builds/linux/mm/mremap.c:14: /builds/linux/mm/mremap.c: In function 'flush_pte_tlb_pwc_range': /builds/linux/arch/parisc/include/asm/tlbflush.h:20:2: error: 'return' with a value, in function returning void [-Werror=return-type] 20 | __flush_tlb_range((vma)->vm_mm->context, start, end) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builds/linux/mm/mremap.c:219:9: note: in expansion of macro 'flush_tlb_range' 219 | return flush_tlb_range(vma, start, end); | ^~~~~~~~~~~~~~~ /builds/linux/mm/mremap.c:214:33: note: declared here 214 | #define flush_pte_tlb_pwc_range flush_pte_tlb_pwc_range | ^~~~~~~~~~~~~~~~~~~~~~~ /builds/linux/mm/mremap.c:215:20: note: in expansion of macro 'flush_pte_tlb_pwc_range' 215 | static inline void flush_pte_tlb_pwc_range(struct vm_area_struct *vma, | ^~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [/builds/linux/scripts/Makefile.build:273: mm/mremap.o] Error 1 Reported-by: Naresh Kamboju steps to reproduce: --------------------------- #!/bin/sh # TuxMake is a command line tool and Python library that provides # portable and repeatable Linux kernel builds across a variety of # architectures, toolchains, kernel configurations, and make targets. # # TuxMake supports the concept of runtimes. # See https://docs.tuxmake.org/runtimes/, for that to work it requires # that you install podman or docker on your system. # # To install tuxmake on your system globally: # sudo pip3 install -U tuxmake # # See https://docs.tuxmake.org/ for complete documentation. tuxmake --runtime podman --target-arch parisc --toolchain gcc-9 --kconfig allnoconfig -- Linaro LKFT https://lkft.linaro.org