Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10363422rwl; Mon, 2 Jan 2023 00:55:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXt/N7sqmCut/f8ZL2YSfJfeagmrapjuzAI+h3LQpqoJZ5TjN7zWmXdmzlLF0H7uuoD/dHSr X-Received: by 2002:a17:902:c189:b0:189:d0f7:dfbe with SMTP id d9-20020a170902c18900b00189d0f7dfbemr18075020pld.30.1672649749107; Mon, 02 Jan 2023 00:55:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672649749; cv=none; d=google.com; s=arc-20160816; b=ZKCjWyNnPsKZkHv5cAFQ9WEoQOl61L4o8YipLgLiELOW8Mo8pjThoPRaeaMyL5QiG4 1jk1jV6w4xa/7xVZR2DvGqdufHda6q9/9eNgKsYrf86vdKqGyN3qvFQOtZKdDogpsdrP KJ2rBHrsEEZ5uh8/hso+ikKFp49rkUrYhPglYXcFbFYEOSedQNBwvLsKbQkGx5/Z0Wm6 eHJ+UYdxfK9PG7yr4bBUlTg9R0nZs9Gaun8gD31oVbo9SuTc/V9A1Hex25S/pZ78Ts31 o+lwk1ivSJMlCDo0E8WYzHemLUfIlbeKFa20YqYlhzFgRu/qeFEeiDXVSvzbjpvBuY8/ fguQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=/zbtsyLDE+wPwkATs9/xlAjvp9QCBVfBrqTl0t3/H28=; b=mj04XVpd0PgzdTeXwKOMJPeTC59MHoKlVhf5K5ifPdoi7uSoFOSEpZkgWZ7evVokjQ IFwTp3rFmmvwZnWlyfSNY/ed//7A6kzk9LvkhiOkXxVKj3djMPVG7vI6AMy/8SywSYcm KXS8xFy/rIxOClSLu2395UyEscRxOEFrXBowGZ2DA+uC8+pNyP/tW9P+rm9eV4hnQXt2 7v4x2g7ioktrowow5IFvewa9dM4qWNx0/o15x9eqB7UnWkXNzrc+j7ZByaq5neGcKGCK 0LwuxMD7AQ9egP+Sy9Xznsyi+8/qAPfgNLV8+Pfw/c4SJ7xY16bg5RNU8/VdyHaNTkLM rLMA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a1709027e4e00b0019107266358si19887399pln.434.2023.01.02.00.55.41; Mon, 02 Jan 2023 00:55:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231815AbjABI3r (ORCPT + 58 others); Mon, 2 Jan 2023 03:29:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231785AbjABI3S (ORCPT ); Mon, 2 Jan 2023 03:29:18 -0500 Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15D52111A; Mon, 2 Jan 2023 00:29:17 -0800 (PST) Received: by mail-qt1-f179.google.com with SMTP id x11so21999960qtv.13; Mon, 02 Jan 2023 00:29:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/zbtsyLDE+wPwkATs9/xlAjvp9QCBVfBrqTl0t3/H28=; b=zfVJfUjJxfNZFm+fOAIIQDoF1RPJiXlZlW5r2BTlyzO27voUQ1/MPbJNKpkgQZHYO6 ncitw7pzRBRkH+7xZXhcuAdhUcoA1Yt//GUvpWoSth7622YCysgcJEFnP8uZIrnZ8WkB bIfHd49SB8mvX/npu9WpCbqWqjS+6g5UH1HiZhcSQgdlozlYX4bI5rpOQeUXTv+ab3Vm hawHhN3d4s0h9Nsoh2c1BbsiDMK+hi2Dbjz0tuK4mZOWKSX4JM5slFQqwLAs9w3G9Ls0 TXT+jqRAoNulOGJousjyr7NWO7Si4V5jPvSO4ZJwn0gh+Q1zNepILDCldod8iDUt4Z1R zL5w== X-Gm-Message-State: AFqh2kowEi0V7KhonuEmjBN822pb4/zLjbhXewOD8EPMI5cH4xYw5PoF tM536n18Pl7EYrhg9a9uctC54z4i5EnsnA== X-Received: by 2002:ac8:7389:0:b0:3a5:264c:5f38 with SMTP id t9-20020ac87389000000b003a5264c5f38mr64140324qtp.63.1672648155889; Mon, 02 Jan 2023 00:29:15 -0800 (PST) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com. [209.85.219.171]) by smtp.gmail.com with ESMTPSA id z18-20020ac875d2000000b003995f6513b9sm17131473qtq.95.2023.01.02.00.29.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Jan 2023 00:29:15 -0800 (PST) Received: by mail-yb1-f171.google.com with SMTP id 188so13214228ybi.9; Mon, 02 Jan 2023 00:29:14 -0800 (PST) X-Received: by 2002:a25:aae1:0:b0:6fc:1c96:c9fe with SMTP id t88-20020a25aae1000000b006fc1c96c9femr5228868ybi.36.1672648154519; Mon, 02 Jan 2023 00:29:14 -0800 (PST) MIME-Version: 1.0 References: <20221019203034.3795710-1-Jason@zx2c4.com> <20221221145332.GA2399037@roeck-us.net> <1a27385c-cca6-888b-1125-d6383e48c0f5@prevas.dk> <20221221155641.GB2468105@roeck-us.net> <357cbd67260040e4bcf17d519aaafdcb@AcuMS.aculab.com> In-Reply-To: <357cbd67260040e4bcf17d519aaafdcb@AcuMS.aculab.com> From: Geert Uytterhoeven Date: Mon, 2 Jan 2023 09:29:02 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] kbuild: treat char as always unsigned To: David Laight Cc: Holger Lubitz , Linus Torvalds , Guenter Roeck , Rasmus Villemoes , "Jason A. Donenfeld" , "linux-kernel@vger.kernel.org" , "linux-kbuild@vger.kernel.org" , "linux-arch@vger.kernel.org" , "linux-toolchains@vger.kernel.org" , Masahiro Yamada , Kees Cook , Andrew Morton , Andy Shevchenko , Greg Kroah-Hartman , "linux-m68k@lists.linux-m68k.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Hi David, On Fri, Dec 30, 2022 at 12:39 PM David Laight wrote: > Thinking further the fastest strcmp() probably uses big-endian word compares > with a check for a zero byte. > Especially on 64 bit systems that support misaligned loads. > But I'd need to think hard about the actual details. arch/arc/lib/strcmp-archs.S arch/csky/abiv2/strcmp.S Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds