Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp529858pxj; Fri, 14 May 2021 09:14:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz17BpF9LU3szLOgdBHhDYfyuzWwpvCth6SEqA9NKE8/FzsHVp6GimOvaLX5phfM7/ZvzYS X-Received: by 2002:a17:906:f41:: with SMTP id h1mr50513326ejj.399.1621008853959; Fri, 14 May 2021 09:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621008853; cv=none; d=google.com; s=arc-20160816; b=idqPZ3I+xCXo03WGIGMJZ9n36vPdnvf30ptsKUyRzRMtQJZaCNoXFO6CObbEqGpvba QGQT/YWOYJGQQoEhy36qUwvMgUl9WeaEjUyxHp6OoN3cvikCvBUu9jEg/YMxh2oyrn9K qCNCG/d0SiQkF6UMP2W7R2udDejcG/pLfTNRMxRSHDDe7/eatJ8kRQzC+tpprB7qzNx8 jH1dYEISruMK/BUfCjo8Lo0FF8fxFD+zvbT+sQLxtvbPhtZ3N8eaOuLTZcBlHV//VCvN ewBCxejqLER+GuE9PiYzW4N04mJa0Zh/MB8k4dJDqbtACtMmDmH8Wr4D2qVSgEfXASqZ 2kDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=qFvlD/6BZ28fWecjReUkM0S+uIcLjLXGLnAAXqLleOE=; b=sBpjIKhkZfKGlY8VvK4uS+jSWe7zpyiEY7aaUXoReMQ/HTk3aYLcwMCpxQYQCJ4C9T qHVcUIfWMnGj0I1VDB99RzyqodJsfN9LI0RFLmhoEFLQ2xP48JPE97URb49OJwROzXzY sZuum8arzP6FewFea3Lw+MeHR+5wPdcLMqGwiiTMADdVL/aAvwr46cRk4xs92BYhIlcR 7WepL0YbB+tmhCN2OSFu4xl4HKm9FAIuIttALJigmAPyG1ykGRTrk4R9OgQGQiS7StkY t+hYKDDBt4syhn+fX574TJjUnK8aMwwPEfH1AX+uZCo0+NsP+c9wxWW2O1Wjb+WY2WI+ wtgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DFjSplou; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si6048057ede.572.2021.05.14.09.13.50; Fri, 14 May 2021 09:14:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DFjSplou; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230362AbhENKYa (ORCPT + 99 others); Fri, 14 May 2021 06:24:30 -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-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