Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1115067rwd; Thu, 18 May 2023 08:08:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Ep4ikoiZ7ZajoBYuToGj6JFrYVlbAYSNxcbz8rqBEcy3rBiEWjMcKBJD9RKPFTPPibzV/ X-Received: by 2002:a17:90a:ead2:b0:253:2f05:84b0 with SMTP id ev18-20020a17090aead200b002532f0584b0mr2951617pjb.17.1684422514720; Thu, 18 May 2023 08:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684422514; cv=none; d=google.com; s=arc-20160816; b=Odu5QKu1pPmBO/eXKQfUR3QtCoYCdNC2s73EJSMVjomwFC0QcLzI29ntugpT2cDeVP KjWzVNMQ5fQ4NLr1tcjSzrddlYgPbrJV7GzdMdxIFnzbF3PQ27HsttCwf7OkMyWgVoKv 0FyV0PhOwlkf+jdyxdzi4KibTpJgDvAtjuQPDer5lR9sT0cszH6a/85qhksVABUtY117 zDhq5Rx1jcx+pJ5vxWOZO4h+zRE3mmsOgbTLmi70L1kPea2V4R3/+B85SMmbqA93iwG9 OU4pFIzt91etMBcZsYjBZ6MZPZ/bZ2tvL+sjcBJA/YeYPKZZ/3y5OEXmQNMsi56LmBNh aZGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Peq3hixOqMcxkMOcrbfoNUG6Iq6VZyfPpUX85pucqBw=; b=e8on+507Ri3KFx0Vdadklcqun6kT75wvhrLRBtnVJH1ldBbMLpyY8JjWF0W6+MkNqf 6eU2cqT8lC2jwpJQVmvzI5iDHHBmnzBtrkaN7NpYayWY3wStIQ30UT22YKCDhYKtwSbs 4ktE4fIhF058HNZs6MIJoUWsPZGU2+kw3suZzICkCsIbFVfORKVa4iYV+QNTOp99dQCq jqzJTXni5oqUzyq0cXZ5CBaziJJ3K+hUfNC0J1S0vBRgFfLJFsOFFNfiYO5B9ACmAyIP P4cRsrqjYaBnwPi71Zg+a/vuvC8MVh0j3LbXpsbw9Kp8bX7tNP5z1dmbcHY8exV1Wby6 sf9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wd9pVuNp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w63-20020a638242000000b0050fb1a00d3dsi1748168pgd.46.2023.05.18.08.08.21; Thu, 18 May 2023 08:08:34 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wd9pVuNp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230416AbjEROzm (ORCPT + 99 others); Thu, 18 May 2023 10:55:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231748AbjEROz2 (ORCPT ); Thu, 18 May 2023 10:55:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0543F12C for ; Thu, 18 May 2023 07:55:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6060964FEA for ; Thu, 18 May 2023 14:55:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D78B9C433A8; Thu, 18 May 2023 14:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684421723; bh=gd5sfN1vi5rnkiQ19By4Dp4+vXMweeEIcbPWx+T5fUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wd9pVuNpeORTZeUWFooKRKOhtKiYy2P4Iy15dgHOCmPUcEBWxt7y65eWb0DpU0asI Cb7lv16vcydmnX2oabt3denMAA6RLDEjvx+3eeSFPbxXfG15DVxwkUdGMY+rJU6vvL cIvJAk//TVwEZURnsbwhZxGFqRmaHkVVFrNuuVsxqqIlsl5G6f2d4JdBEPkxlbHowj 6rOUp2M3CwlNIiLr/yXyaW50PSmd77qULBnDnNPhnBeag3/eZKsNcoMlxeg+AbM5NH 5TQ22DG+2vQ8ulnrVcV+7LVvNur62iVg+J3zbzk068bAgbqXd0KroTQxUwrjLbRemq Cjkg/4SBwENlg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 268F4CE18F6; Thu, 18 May 2023 07:55:23 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: gwml@vger.gnuweeb.org, kernel-team@meta.com, w@lwt.eu, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Willy Tarreau , "Paul E . McKenney" Subject: [PATCH v2 nolibc 09/15] tools/nolibc: use standard __asm__ statements Date: Thu, 18 May 2023 07:55:15 -0700 Message-Id: <20230518145521.3806117-9-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <4817a4dc-69e6-4937-84d5-f2f630ff646c@paulmck-laptop> References: <4817a4dc-69e6-4937-84d5-f2f630ff646c@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: Thomas Weißschuh Most of the code was migrated to C99-conformant __asm__ statements before. It seems string.h was missed. Signed-off-by: Thomas Weißschuh Signed-off-by: Willy Tarreau Signed-off-by: Paul E. McKenney --- tools/include/nolibc/string.h | 4 ++-- tools/testing/selftests/nolibc/nolibc-test.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/include/nolibc/string.h b/tools/include/nolibc/string.h index fffdaf6ff467..0c2e06c7c477 100644 --- a/tools/include/nolibc/string.h +++ b/tools/include/nolibc/string.h @@ -90,7 +90,7 @@ void *memset(void *dst, int b, size_t len) while (len--) { /* prevent gcc from recognizing memset() here */ - asm volatile(""); + __asm__ volatile(""); *(p++) = b; } return dst; @@ -139,7 +139,7 @@ size_t strlen(const char *str) size_t len; for (len = 0; str[len]; len++) - asm(""); + __asm__(""); return len; } diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index 888da60eb5ba..e692be98973a 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -984,7 +984,7 @@ int main(int argc, char **argv, char **envp) #else else if (ioperm(0x501, 1, 1) == 0) #endif - asm volatile ("outb %%al, %%dx" :: "d"(0x501), "a"(0)); + __asm__ volatile ("outb %%al, %%dx" :: "d"(0x501), "a"(0)); /* if it does nothing, fall back to the regular panic */ #endif } -- 2.40.1