Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2392810rwb; Fri, 16 Dec 2022 01:09:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf4uNCakfB/rIQWvJX7igA+iKPypBJhDnsQQz2XX/9T/BG06Rm1hrbcpSXuqZi5e8ldBGKHv X-Received: by 2002:a05:6402:2944:b0:463:18d1:c33c with SMTP id ed4-20020a056402294400b0046318d1c33cmr26009588edb.3.1671181762089; Fri, 16 Dec 2022 01:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671181762; cv=none; d=google.com; s=arc-20160816; b=AVGBNPsV7CxbMuHCJnzFzTwy1IhBaLO2UjetDNcbZlNFVq2vMpgF5ozC4BWlVliAHC mojgH51T18dqo3A+4tn1H6QPXmdOOd1BwOBBSvitXkysTugrkJE0/PurNxvFYuBCZ6TU y3itt3Yocpmx+SJCdx4l73Exb0x+Qhlk9RRH6Ed4FbvHNc5yZmEgQ0Jvg0kbfgQJAEiN xmLs32ruxNYH8wqYp6as2imux5/4xqF1f43P4KwV9je0itDzslSDTvysPZ7wAXhfxOib M5qCZLU/tGed+A+DkTvT1Fui3Vl6JRTMTom9Is083iH+zvdt3bS/hRQ0wYn4Fbd8PD+a q+VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=C47C5YKsEEOLh7Ov5Yw1SNJT0ACWPQcUkx6/t/V/fus=; b=TXr79SS3xhEpV/EN7vOSjnVUWs3ebh9X/wQmMTzwXuCnNtnXEwqfUbW4BWscj0SbCA oEVWaifQalJPkPFGJaB+Hh3smx/vtOZk6hUXvzhDxhuNmJdG+rm+7WH5zisB/mLD0uoZ 60JYAJDT7cm352lISm5EgYx4qRiasXulp99H/ky3NyJiYa0+WyL+mfXizCbdy5MfB6z9 z+l1DZSsGf+iASpikMG/uqDc1U2vNyMhH3HVofWG+FeoKQM3uZT7EzItdIUstH8IiEtu ZYZCx0yc+Xwkdn1lTAA6UTwRQrZvDnhc1SlfQ5Wyh1JVZVluY1kLkEX34Pe3QtQmQWZJ cpGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m4-20020a056402430400b0045d5b83114esi2433004edc.112.2022.12.16.01.09.05; Fri, 16 Dec 2022 01:09:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229930AbiLPIu4 (ORCPT + 68 others); Fri, 16 Dec 2022 03:50:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbiLPIuw (ORCPT ); Fri, 16 Dec 2022 03:50:52 -0500 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DF696541 for ; Fri, 16 Dec 2022 00:50:49 -0800 (PST) Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4NYN9L4tYkz8R039; Fri, 16 Dec 2022 16:50:46 +0800 (CST) Received: from xaxapp03.zte.com.cn ([10.88.40.52]) by mse-fl1.zte.com.cn with SMTP id 2BG8obeY048049; Fri, 16 Dec 2022 16:50:38 +0800 (+08) (envelope-from guo.ziliang@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid32; Fri, 16 Dec 2022 16:50:40 +0800 (CST) Date: Fri, 16 Dec 2022 16:50:40 +0800 (CST) X-Zmail-TransId: 2afa639c3160ffffffffb8630f8e X-Mailer: Zmail v1.0 Message-ID: <202212161650404440816@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , Subject: =?UTF-8?B?W1BBVENIXSBhcm02NC91cHJvYmVzOiBjaGFuZ2UgdGhlIHVwcm9iZV9vcGNvZGVfdCB0eXBlZGVmIHRvIGZpeCB0aGUgc3BhcnNlIHdhcm5pbmc=?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl1.zte.com.cn 2BG8obeY048049 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.250.137.novalocal with ID 639C3166.001 by FangMail milter! X-FangMail-Envelope: 1671180646/4NYN9L4tYkz8R039/639C3166.001/10.5.228.132/[10.5.228.132]/mse-fl1.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 639C3166.001/4NYN9L4tYkz8R039 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: junhua huang After we fixed the uprobe inst endian in aarch_be, the sparse check report the following warning info: sparse warnings: (new ones prefixed by >>) >> kernel/events/uprobes.c:223:25: sparse: sparse: restricted __le32 degrades to integer >> kernel/events/uprobes.c:574:56: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected unsigned int [addressable] [usertype] opcode @@ got restricted __le32 [usertype] @@ kernel/events/uprobes.c:574:56: sparse: expected unsigned int [addressable] [usertype] opcode kernel/events/uprobes.c:574:56: sparse: got restricted __le32 [usertype] >> kernel/events/uprobes.c:1483:32: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] insn @@ got restricted __le32 [usertype] @@ kernel/events/uprobes.c:1483:32: sparse: expected unsigned int [usertype] insn kernel/events/uprobes.c:1483:32: sparse: got restricted __le32 [usertype] use the __le32 to u32 for uprobe_opcode_t, to keep the same. Fixes: 60f07e22a73d ("arm64:uprobe fix the uprobe SWBP_INSN in big-endian") Reported-by: kernel test robot Signed-off-by: junhua huang --- arch/arm64/include/asm/uprobes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/uprobes.h b/arch/arm64/include/asm/uprobes.h index ba4bff5ca674..2b09495499c6 100644 --- a/arch/arm64/include/asm/uprobes.h +++ b/arch/arm64/include/asm/uprobes.h @@ -16,7 +16,7 @@ #define UPROBE_SWBP_INSN_SIZE AARCH64_INSN_SIZE #define UPROBE_XOL_SLOT_BYTES MAX_UINSN_BYTES -typedef u32 uprobe_opcode_t; +typedef __le32 uprobe_opcode_t; struct arch_uprobe_task { }; -- 2.15.2