Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2601733rwb; Fri, 16 Dec 2022 04:23:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf53u3YwtL8ipojhE8IPTI+iaGycv96ea/M0GiqIuz7tAg2mUZnpTeF6ybsdQdWJEj1Zp2Jt X-Received: by 2002:a17:906:14ce:b0:7c0:e0d9:c1df with SMTP id y14-20020a17090614ce00b007c0e0d9c1dfmr28219738ejc.10.1671193403404; Fri, 16 Dec 2022 04:23:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671193403; cv=none; d=google.com; s=arc-20160816; b=vM6uO9PiyxH6oZQ5jq1stHZozBAllMgtiVXBKRYnhZcbb+GRojh0ybKVvFnI9VQW4l /ZcQHNwnxFjE1aLrXbNn2AOGwB3r7zkoF1aSremVAgh71NH+psq+IML7bT1yWpVJ8uuW tquAQH/DZbZqqaNMzR75tlKO3t797qLeQ1zGssxZzy4Epg7CiA+cgD1UmgMAYGqoxaqt ZjjxFqQZgJXsNoQXh+sBylbiBX+nUILCopILB3ZKbIURqwIo7T9Hoq+PP0Fw1Qd+hGvI lJ+hgQvLAwi024KBOeiFKKKZfJhTwTRFyXDKCE1zzcKW67AwQtw9O89lS2PnjjtkfCuR 3XmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=tbcdfgkPK/fidwcMaDYt5NzD4e5vKLmiu/XfWXtogu0=; b=Ptt3CvNJuTjPKjQ6dzByUktsLPvmrAvxidovdXsJVYNwn2TImG3AQWLVqc+/UGRT0V 3BORdrfHBVZ/L/jNJBxptAotwTZR21vhKhqY+3mEZ5E0h3XgFjZT3vKXOzccrkdC6TcR FqvS9WYhEIKUSGg2Rw3zRqRlQEmUWMERFBMoxAm/uIozCoCKz6QdJy9rtLwfDW0mBcg8 d/uFAaLQo/ucbHk7IFEjCHJD+UhiFxOrnULojmM+wNE5UFnTST7oSeyTO0Zt+2J107r4 M6g9h+JNauDlCpb5kp3I7elzzAdND/E6rwRaT25zfnzpasSWxM7785vGZuLWu9zRAN9W OgaQ== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wg13-20020a17090705cd00b007ae0e8f697fsi2650769ejb.652.2022.12.16.04.23.07; Fri, 16 Dec 2022 04:23:23 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231185AbiLPL6U (ORCPT + 68 others); Fri, 16 Dec 2022 06:58:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbiLPL6I (ORCPT ); Fri, 16 Dec 2022 06:58:08 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E887F389FF; Fri, 16 Dec 2022 03:58:06 -0800 (PST) Received: from dggpemm500006.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NYSDS52rdzqTDf; Fri, 16 Dec 2022 19:53:44 +0800 (CST) Received: from [10.174.178.55] (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Fri, 16 Dec 2022 19:58:03 +0800 Subject: Re: [PATCH v9] kallsyms: Add self-test facility To: Andreas Schwab , Geert Uytterhoeven CC: Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , , , Masahiro Yamada , Alexei Starovoitov , Jiri Olsa , Kees Cook , Andrew Morton , Luis Chamberlain , , Steven Rostedt , Ingo Molnar , David Laight , linux-m68k , "Jason A. Donenfeld" References: <20221115083349.1662-1-thunder.leizhen@huawei.com> <87len7k1yn.fsf@igel.home> From: "Leizhen (ThunderTown)" Message-ID: <9f2d4035-c647-4bd9-ffff-b970a88bcc88@huawei.com> Date: Fri, 16 Dec 2022 19:57:51 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <87len7k1yn.fsf@igel.home> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 2022/12/16 19:44, Andreas Schwab wrote: > On Dez 15 2022, Geert Uytterhoeven wrote: > >> Changing: >> >> --- a/arch/m68k/include/asm/string.h >> +++ b/arch/m68k/include/asm/string.h >> @@ -42,7 +42,7 @@ static inline char *strncpy(char *dest, const >> char *src, size_t n) >> #define __HAVE_ARCH_STRCMP >> static inline int strcmp(const char *cs, const char *ct) >> { >> - char res; >> + signed char res; >> >> asm ("\n" >> "1: move.b (%0)+,%2\n" /* get *cs */ > > Note that strcmp needs to compute the return value from the difference > of the _unsigned_ characters. That does not explain the error, though, > since symbol names don't have characters with the high bit set. Why consider the high bit? It is not memcmp(). If the high bit is set, it is the user's fault. > -- Regards, Zhen Lei