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 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E563EC282D0 for ; Tue, 4 Mar 2025 11:29:01 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Z6YNX3mz9z2xdb; Tue, 4 Mar 2025 22:29:00 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1741087740; cv=none; b=R8GQ78QYESs4C8/OjGvtCh+jjUOzesQSOHUloCbi7mJ5WaYVCzKiDMOey0PxwivqbyyXJ3ADc93sHbamfoIx8gKAyAl7807zbMsR3ODB8DHlKMceoSUbN/JvpTIuiOzawcTUZF9mwQwYYUJi30jpZ5Vl4SUCLSgpoYyojwspZCA20ecSVQlca2rzwnnNccdPFgmu3GvQ5uKILhZ44HIxwCEOnpE1V+lCUKMj+U3Ky0T6+ZAatWtgCZS6FUZy07OXWJtcm6eaJZ70ZThgjkNalvzMkzf6msI8egHRst2arW07GoG3Ig8yf6iADcrynUPqEqvHKU5yMHAvpPH7nJ94Ow== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1741087740; c=relaxed/relaxed; bh=HB09KYDfr5AgqHYVGRS5BenMKUM+GUnC0qmbOWI8zsE=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=Q3+sCBguIMDS6VG1eCnYkPKz/PBHeqUya4EQMlbOtOT11hWzEiI152flYpqgrtO6FHFN8m8Tu3DigBNdVE0obm2LkSJhjAwZwf1vFYt0UyUO2ZGuiHknh8J3K8Y2K5VOA0PVxxdjK7OTFb66s02hOVqLp/y4JE+8rguG7pjgGLBI4IGrLfyb2VeBKqVReRYPt5UVGyy8cjDHMUN4TPFviSEbhgpsqBzShe5NXqPlUAGcgEb5F/9UtBI7uCbvQLtgYkTtDV4tP+8YyKkyikcPSeCEP9Hy3HA+8LyCKyk1djXZBvTUUpR1D4zsbmpn/qdjOxnNjPfEzge8HMEuowCTkg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=VV4St/cn; dkim-atps=neutral; spf=pass (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=maddy@linux.ibm.com; receiver=lists.ozlabs.org) smtp.mailfrom=linux.ibm.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=VV4St/cn; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=maddy@linux.ibm.com; receiver=lists.ozlabs.org) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Z6YNW59ssz2x9M for ; Tue, 4 Mar 2025 22:28:58 +1100 (AEDT) Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5243jgqn021527; Tue, 4 Mar 2025 11:28:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=HB09KY Dfr5AgqHYVGRS5BenMKUM+GUnC0qmbOWI8zsE=; b=VV4St/cndBGXFGGeVBHVkn sHXAoyQSNdhnPwWhZCHthEhRCWMGwgUkSKY+Dw4t7iTxqtcAxQVssyC74o+yxid6 S4dTKYRMK288aoF0gUNsxOu9rf9Mkk2axONd/AfCH0NG1QkILAlYs3W4eFdhOFuR LriJ0LOAsd4PhTugYpTMiuM8vsuIcCbGWEQmjkmUKJxq7+xkcRcZFMKml3Al3thZ kC8GurlOj17jrXqRbsed/PN3Qxiu0UV1ymEaHdCyUepe8xzSU/7Dsvkg45UBWe0s flMaEBZ4RPjCtLkrStCxFAvPk39MWXwYz8rVb4T6vHvwgDMbmZTgxbwz8GCrqfjw == Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 455sw7j4eg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Mar 2025 11:28:43 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 5249VsZb025044; Tue, 4 Mar 2025 11:28:42 GMT Received: from smtprelay01.wdc07v.mail.ibm.com ([172.16.1.68]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 454f91vny8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Mar 2025 11:28:42 +0000 Received: from smtpav02.dal12v.mail.ibm.com (smtpav02.dal12v.mail.ibm.com [10.241.53.101]) by smtprelay01.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 524BSf1127329098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Mar 2025 11:28:41 GMT Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 68B3A5805A; Tue, 4 Mar 2025 11:28:41 +0000 (GMT) Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3EB8358051; Tue, 4 Mar 2025 11:28:37 +0000 (GMT) Received: from [9.43.105.169] (unknown [9.43.105.169]) by smtpav02.dal12v.mail.ibm.com (Postfix) with ESMTP; Tue, 4 Mar 2025 11:28:36 +0000 (GMT) Message-ID: Date: Tue, 4 Mar 2025 16:58:34 +0530 X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Build Warnings at arch/powerpc/ To: Christophe Leroy , Venkat Rao Bagalkote , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Stephen Rothwell , Michael Ellerman References: <8c4c3fc2-2bd7-4148-af68-2f504d6119e0@linux.ibm.com> <47aa8b75-96b6-4e37-bb62-ad758b414076@linux.ibm.com> <8ba544e7-cf2a-4807-a056-683115805721@csgroup.eu> Content-Language: en-US From: Madhavan Srinivasan In-Reply-To: <8ba544e7-cf2a-4807-a056-683115805721@csgroup.eu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: F-gHy7AAVCittyDFXVYiNSidux3HVXLP X-Proofpoint-GUID: F-gHy7AAVCittyDFXVYiNSidux3HVXLP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1093,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-03-04_05,2025-03-03_04,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 bulkscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2502100000 definitions=main-2503040097 On 3/4/25 2:26 PM, Christophe Leroy wrote: > > > Le 04/03/2025 à 07:13, Madhavan Srinivasan a écrit : >> >> >> On 3/4/25 10:42 AM, Venkat Rao Bagalkote wrote: >>> Greetings!! >>> >>> >>> Observing build warnings with linux-next and powerpc repo's. Issue is currently not seen on mainline yet. >>> >>> PPC Repo: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fpowerpc%2Flinux.git&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C8e0f8501f09c48dbb43608dd5ae3c9bf%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638766656585342184%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=e5BrJzcrtlITkLF31KltGExQ5Qe8fDVTMV6VfR4w9o8%3D&reserved=0 merge branch >>> >>> PPC Kernel Version: 6.14.0-rc4-g1304f486dbf1 >>> next Repo: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fnext%2Flinux-next.git&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C8e0f8501f09c48dbb43608dd5ae3c9bf%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638766656585355246%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=meQyZfB75HhJFCL6AX93slsyVwnogGPYFabDXl%2FLzDA%3D&reserved=0 master branch >>> >>> next Kernel Version: 6.14.0-rc5-next-20250303 >>> >>> >>> On linux-next kernel issue got introduced b/w next-20250227 and next-20250303 >>> >>> >>> Build Warnings: >>> >>> arch/powerpc/kvm/book3s_hv_rmhandlers.o: warning: objtool: .text+0xe84: intra_function_call not a direct call >>> arch/powerpc/crypto/ghashp8-ppc.o: warning: objtool: .text+0x22c: unannotated intra-function call >>> arch/powerpc/kernel/switch.o: warning: objtool: .text+0x4: intra_function_call not a direct call >>> >>> >> >> Can you please specific the compiler and compiler version you found this issue with >> > > Can you also tell which defconfig you are using or provide your .config > > It might also be helpfull if you can provide a disassembly of the three file.o around the warned address. I could recreate the issue with gcc 11.4.1 20231218 with today's linux-next (but could not recreate with gcc 14 or gcc 11.3.0) (20d5c66e1810 (HEAD -> master, tag: next-20250304, origin/master, origin/HEAD) Add linux-next specific files for 20250304) warning for one of the switch.S file : CC arch/powerpc/kernel/syscalls.o AS arch/powerpc/kernel/switch.o arch/powerpc/kernel/switch.o: warning: objtool: .text+0x4: intra_function_call not a direct call CC arch/powerpc/kernel/irq.o CC arch/powerpc/kernel/align.o CC arch/powerpc/kernel/signal_64.o Objdump of switch.o: arch/powerpc/kernel/switch.o: file format elf64-powerpcle Disassembly of section .text: 0000000000000000 : 0: a6 02 28 7d mflr r9 4: 05 00 00 48 bl 8 8: 05 00 00 48 bl c c: 05 00 00 48 bl 10 10: 05 00 00 48 bl 14 14: 05 00 00 48 bl 18 18: 05 00 00 48 bl 1c 1c: 05 00 00 48 bl 20 20: 05 00 00 48 bl 24 24: 05 00 00 48 bl 28 28: 05 00 00 48 bl 2c arch/powerpc/kernel/switch.S failing src section: .balign 32 .global flush_branch_caches flush_branch_caches: /* Save LR into r9 */ mflr r9 // Flush the link stack .rept 64 ANNOTATE_INTRA_FUNCTION_CALL bl .+4 .endr b 1f nops 6 Maddy > > Christophe