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 85216C433ED for ; Fri, 14 May 2021 10:23:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 681B7613F2 for ; Fri, 14 May 2021 10:23:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233183AbhENKYc (ORCPT ); Fri, 14 May 2021 06:24:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233159AbhENKY3 (ORCPT ); Fri, 14 May 2021 06:24:29 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F3F9C06174A for ; Fri, 14 May 2021 03:23:18 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id l4so43967801ejc.10 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=ZBNWH5lTbRoJ/DRYoiBvMRiKmLs4/XsoD/wrb1Kvtk+F7D5TOODPAkaCa2a4kO96Fv ZS+YuQlwwRx9ToSQL99wpdXWohPHRvbvpKHAMNUj+RyeC+XO/SdFVDIUtJODxJO805Qf shAY7rC7UMo81Ryf4EzFjFWdX22bJEWDayFUG8zRcJTJ9rviK2Vj5swa60+ejO55un9Q Lwx1Cv3C6wD7hzHXOr4YxLmUanFqYIHXD4D7LIbXZzgEfmAc2xvSEUNodvMbfVZ5B+qw fq6lFTKGCoqrEJI4LlWAq3PhTsbHFEyFLQJ3b+5cdfIPSGvGMLcsuG3Z3IeZvIjAsCPd zJkw== X-Gm-Message-State: AOAM533g+tFhswr9cL+4Buvj/uKM1TQuovCPBMB6thbRLcMuTUoE8XQ+ W2uwjkIPNrNrqNr9m9wQsIaXnQ4Nad0HuFUj1Ko9XQ== 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" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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