Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp644093lqh; Thu, 28 Mar 2024 11:46:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQpv8MTFtZaPECRMZlfXmz/W8n0G3ZV5N/rF81ggcIikvdLKagQhGXPjdkgr0MB3XK7T79PlJYVg8a0QEZJrZVbKN6nM9Za+PDcdDJZw== X-Google-Smtp-Source: AGHT+IF2ZW3KRd7mSHziUzARDKb6BvLJbmYGhuY/4kz4wK7C0OFXuJ1H3sqTFrybChe9BUdNwhn4 X-Received: by 2002:a05:6a20:1e52:b0:1a3:5c61:159 with SMTP id cy18-20020a056a201e5200b001a35c610159mr3459447pzb.53.1711651588018; Thu, 28 Mar 2024 11:46:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711651588; cv=pass; d=google.com; s=arc-20160816; b=mzbI9hh83qkrVPqYjj+hW5OJQMiiLhru+iXj1Zp8MfWCqLnYZHkDE1S2OPOI+Q6YDJ QCGnvB4B6wr1vqpBBHO1HlDJn6rqGFS22PJuk/7109vFu0BrituunfRkRPXGI23gKtB7 dEnMc4m+bVi1kLGpl6TlU0uSckCPNffrLWfNYbS+XbF301mptLzVX6KM+pCRb0bGobhj P+Gy8pBxnDIenmmwPv86T3RjHm2HIsqeiFTI8s6/COfLqczLHtgjwMZC06cBsQQgFhWR VE4VRp/4zINzPMVHo1auJUGDlbjPF7LDIRl4wYTTq2RKdABk5+d+UftvJa8qWDx+VPVB r+Zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=JLmNHneVTccBuH89Q21rSlSXSR0gCPVh/+/67Hf4jKk=; fh=W7EU5CoAnAUQTCAX6lhxY5KgCg8XLm2Da2W4CVz5O6U=; b=tZ7BH8yRyFT0EfARMIj4bjSDuuIKN6RbxGsHUx77ZjnVCO3P1FM9e2hv6jjgmdnQEm y6UoEFZ9ZDIGHH+IjfV6fjl8t1iSlPdOcMJpTfj2yuEqTzzq019d1dIenT1FYXqn7yKh YddtBEArt97IHE1ouqtmJ0im5sSgr+JDh+ZTfgMHJbSKu2ToZSmpDwtEw7TmTW+93qgJ su6xS8JW4jxxvdeaRgk9bOYx5Lc7SsQ4GP0FsLFdZtzQXfb+h49fHKuGvS6sLRKFyM+8 SPechjS0aBcsbM89RiWBrcRtsrxIZEHzcOIj1iawiuEz5hmW4BfeSA//pGHvIxPQdedh QSTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=LdHR18D+; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-123430-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123430-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p11-20020a63740b000000b005e43cb270e3si1916745pgc.610.2024.03.28.11.46.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 11:46:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123430-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=LdHR18D+; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-123430-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123430-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AB693293043 for ; Thu, 28 Mar 2024 18:46:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66BBE137906; Thu, 28 Mar 2024 18:46:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="LdHR18D+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F7F07E115; Thu, 28 Mar 2024 18:46:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711651573; cv=none; b=qp+5qaDEwMfUIdNHGVltDfkHCgioWd0JfwzfdbO0xMz/T2GVh8e5QmUEK07kOjP3BIVqVPxcMw16H9bcrVBtNt/DMAI0JpQulr3NbXVuFxg8VJkndMWDj/+VfGBvDlvtnKSE7bbmmdWsFQXLch2P6D88b/5jGYch9DiWIP3noAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711651573; c=relaxed/simple; bh=r9sPgfprQr4ss5yOQRQ+LuOkNETi9+8h/ITL1cLkamo=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=tgYMYGs7aWBN0OMcJ0PCa7zY7vjJpNnJu8AKaBk01FRA64U5C0uPHQrJQEUbLq4kAFT6Z4H67522ZWs0TRogQUF+1J/yF3HxBxEgUYZRoE/noVJOmOJqfr8xHX7kbVxAOuJ14PLDb/rcwcZ8z0ha0nhiXutHykJYPDVI6jbHk7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=LdHR18D+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5C88C433C7; Thu, 28 Mar 2024 18:46:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1711651573; bh=r9sPgfprQr4ss5yOQRQ+LuOkNETi9+8h/ITL1cLkamo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LdHR18D+vl35xAZ8PoRaL+NhkViGAemYSCiROgu6PEwl0+nyTZD+42wut061xBmeC 6g3Ztc66LxXtoLnUUmXABlSFwF7Rg/ZXKi64ykyqyE41OcycuD1HdN2mGC9rnwiLv2 /isOduoShBIG+Ej4piZULRL6sIyoxXagFJqs7eGY= Date: Thu, 28 Mar 2024 11:46:12 -0700 From: Andrew Morton To: Naresh Kamboju Cc: open list , lkft-triage@lists.linaro.org, linux-mm , Linux Regressions , willy@infradead.org, Arnd Bergmann Subject: Re: next: sh: mm/cache-sh4.c:250:51: error: too few arguments to function 'folio_flags' Message-Id: <20240328114612.d60b7ad4eb552281bedbff10@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 28 Mar 2024 19:12:26 +0530 Naresh Kamboju wrote: > While building sh defconfig with gcc-11 the following build warnings / > errors noticed on Linux next-20240328 tag. > > sh: > build: > * gcc-11-shx3_defconfig - Failed > * gcc-11-dreamcast_defconfig - Failed > * gcc-11-defconfig - Failed > > Reported-by: Linux Kernel Functional Testing > > Build error: > --------- > arch/sh/kernel/cpu/sh4/fpu.c:389:6: warning: no previous prototype for > 'float_raise' [-Wmissing-prototypes] > 389 | void float_raise(unsigned int flags) > | ^~~~~~~~~~~ > arch/sh/kernel/cpu/sh4/fpu.c:394:5: warning: no previous prototype for > 'float_rounding_mode' [-Wmissing-prototypes] > 394 | int float_rounding_mode(void) > | ^~~~~~~~~~~~~~~~~~~ > In file included from include/linux/thread_info.h:27, > from include/asm-generic/preempt.h:5, > from ./arch/sh/include/generated/asm/preempt.h:1, > from include/linux/preempt.h:79, > from include/linux/spinlock.h:56, > from include/linux/mmzone.h:8, > from include/linux/gfp.h:7, > from include/linux/mm.h:7, > from arch/sh/mm/cache-sh4.c:14: > arch/sh/mm/cache-sh4.c: In function 'sh4_flush_cache_page': > arch/sh/mm/cache-sh4.c:250:51: error: too few arguments to function > 'folio_flags' > 250 | test_bit(PG_dcache_clean, folio_flags(folio)) && > | ^~~~~~~~~~~ > Thanks. --- a/arch/sh/mm/cache-sh4.c~sh-remove-use-of-pg_arch_1-on-individual-pages-fix +++ a/arch/sh/mm/cache-sh4.c @@ -247,7 +247,7 @@ static void sh4_flush_cache_page(void *a * another ASID than the current one. */ map_coherent = (current_cpu_data.dcache.n_aliases && - test_bit(PG_dcache_clean, folio_flags(folio)) && + test_bit(PG_dcache_clean, folio_flags(folio, 0)) && page_mapped(page)); if (map_coherent) vaddr = kmap_coherent(page, address); _