Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3088949lqo; Tue, 14 May 2024 21:49:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWq8O3t0wc+CTjJf1CAh2xvGkw6ALVMrA/q0eZGmhQZalb0V1SAUz0MxkqfLs16YsQVX2jtdtUrSrPCddE7R4gDeArRmlBPWDZbgSEKYg== X-Google-Smtp-Source: AGHT+IEhC5JCWwhx2Gni9AM2Ii9lEWvDkmsw9IOKXaNm6DEQs4fMX0Jf9NGzsS0oUreQAoRR83x0 X-Received: by 2002:a17:90a:8c83:b0:2a4:e9d:9888 with SMTP id 98e67ed59e1d1-2b6cc452f7emr13836439a91.16.1715748585616; Tue, 14 May 2024 21:49:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715748585; cv=pass; d=google.com; s=arc-20160816; b=BR1qMUJmFEKJn6OS4IdBVdtlr9oCGPChSaHP7C3f/3t66Mef08f3v1kp6wTKm9MFCG oXQoGWUtS0Z8RFk6pZgoY/tabjFmeOikJJstittV+pka4lWSFvUnRysgGVBoMY7LhiTi E4Jmq3DLKprC79LufdiEceDxpEZoJjOvV8SqCMFxp9axK3YVjxxJanu5K0etA2LlJ+23 K+mvBoYil9ajsK4iTJj9Mn9E+k82XaiO5VWSTNperG6Ul11kJtDaxqgEWG2QPLIq84CO 046w9uDaF3AGKzlGpPn2WTr9ZU5pGEo2Zpj356SsVPjqDD/dgL5ieiCDJRaKeK+TcJTO Ka0w== 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; bh=H7e/mTEmId+LDFhfIoOfm2C4aIKVz/NT2eEvzClpjpM=; fh=F6+/l66+2m+gCnjNo6NuWLDUx+7eV5/jkdMfec/PoQw=; b=dCScfQnvd4fMeYUmRfwnZqjLwL9rIvYPrMNCsIzxKSLWzvNonvSg35xn7i/TX/miJc YDteC46DW1Sr9VGykAzvg/qDwHQlgeIMokRi62ezv/0pENC3kT+daYyOMT1qgLcKboqR yHGK5DPZNSwC6BjjHDNLLag5tlVoGX6/6ubblmD4K5KsbWpsGEWrIU9tD6ocQvrzL1HH +ff0L4a7i98IeCpwDoHfXXCoDD7PgJ9qpeYIDafxGlbwTNlDOpwZDm+HNN6r3+TA3kJa Uctrw6sfHiFooyA6zav8Xb6Rf+jXEO/AdbpNLbfoDuIP1HMkHxUMFSVdDDEthcHghBUS N2Ww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-179404-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179404-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 98e67ed59e1d1-2b628869476si14524016a91.15.2024.05.14.21.49.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 21:49:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179404-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-179404-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179404-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 44704283234 for ; Wed, 15 May 2024 04:49:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61F3C38FB6; Wed, 15 May 2024 04:49:39 +0000 (UTC) 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 D9CCE20314; Wed, 15 May 2024 04:49:38 +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=1715748578; cv=none; b=BasBgFotBsyaSgFRTFyQJgIguKzdfZ65qP81fNmg/3j3WF/EtaCJc6ARgXe/YN6FvlA0xIXnsFlQmjrkiiwo5tpPgNwOmPcKBkw2uxQlW8LYXiDIsQfXlQcs0lj5plPpf+LK7lr+DSavfr40rkm5hT8YCR5pwdJvHfWO8jf7vl0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715748578; c=relaxed/simple; bh=AVkqO/R8PDeeUExvLM3elvubZXwPS1QR3t18bGSbOlI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=sNYE9xoXlINlUOhIbyDhXu77+mqgVnqS7blFTLiL65n8Aseb4ZacZbZYOu6t9NDN+sd+KXh2QbQTSqwhAX/KVt2L0evt2S/w2WbHrNIGiefAHkQPfFZkG8K8Q6NMUfSd35dwCTLOoxY4iVo3vgYchwjoHkXnW3rF1/GhOFXdK64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E3AAC116B1; Wed, 15 May 2024 04:49:38 +0000 (UTC) Date: Wed, 15 May 2024 00:49:31 -0400 From: Steven Rostedt To: Stephen Rothwell Cc: Masami Hiramatsu , Vincent Donnefort , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the ftrace tree Message-ID: <20240515004931.0d2e7af3@rorschach.local.home> In-Reply-To: <20240515124808.06279d04@canb.auug.org.au> References: <20240515124808.06279d04@canb.auug.org.au> X-Mailer: Claws Mail 3.17.8 (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 Wed, 15 May 2024 12:48:08 +1000 Stephen Rothwell wrote: > Hi all, > > After merging the ftrace tree, today's linux-next build (powerpc > ppc64_defconfig) produced this warning: Interesting, as I didn't get reports from it via zero-day bot. > > In file included from arch/powerpc/include/asm/page.h:332, > from arch/powerpc/include/asm/mmu.h:144, > from arch/powerpc/include/asm/paca.h:18, > from arch/powerpc/include/asm/current.h:13, > from include/linux/thread_info.h:23, > from include/asm-generic/preempt.h:5, > from ./arch/powerpc/include/generated/asm/preempt.h:1, > from include/linux/preempt.h:79, > from include/linux/alloc_tag.h:11, > from include/linux/percpu.h:5, > from include/linux/context_tracking_state.h:5, > from include/linux/hardirq.h:5, > from include/linux/interrupt.h:11, > from include/linux/trace_recursion.h:5, > from kernel/trace/ring_buffer.c:7: > kernel/trace/ring_buffer.c: In function '__rb_map_vma': > kernel/trace/ring_buffer.c:6286:72: warning: passing argument 1 of 'virt_to_pfn' makes pointer from integer without a cast [-Wint-conversion] > 6286 | struct page *page = virt_to_page(cpu_buffer->subbuf_ids[s]); > | ~~~~~~~~~~~~~~~~~~~~~~^~~ > | | > | long unsigned int > include/asm-generic/memory_model.h:37:45: note: in definition of macro '__pfn_to_page' > 37 | #define __pfn_to_page(pfn) (vmemmap + (pfn)) > | ^~~ > kernel/trace/ring_buffer.c:6286:37: note: in expansion of macro 'virt_to_page' > 6286 | struct page *page = virt_to_page(cpu_buffer->subbuf_ids[s]); > | ^~~~~~~~~~~~ > arch/powerpc/include/asm/page.h:228:53: note: expected 'const void *' but argument is of type 'long unsigned int' > 228 | static inline unsigned long virt_to_pfn(const void *kaddr) > | ~~~~~~~~~~~~^~~~~ > > Introduced by commit > > 117c39200d9d ("ring-buffer: Introducing ring-buffer mapping functions") > > My arm multi_v7_defconfig build produced a similar warning. > > Is this really intended for v6.10? It seems a bit late. > Well, I submitted this for the v6.9 merge window, and Linus had issues with it. So we've been tweaking it for the entire time and it was ready a bit earlier, but due to my vacation and traveling I missed pushing it to next. :-p Most the code has been well tested, but because it is late, I kept it as a separate topic branch in case Linus still isn't happy with it. -- Steve