From nobody Mon Nov 17 15:46:44 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1610936605; cv=none; d=zohomail.com; s=zohoarc; b=CTQQ2XwgybawQESbfaAvVvAPHePnCZHeX+iKakr05ugc7xmpnwxdE05WNvKjMorcjX3kz7X76XeSeRb1TFhm058GhBISGuVQch3kprb5gmxSGIKx/xge2zHQHE1oXOaGc+ViVdsgeA9q4gwffgcCUt+7rmvzTnLg4daObzxOE0g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610936605; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=sz0BQhFz2ttarNnpisvgXXXyj9/0YSEVophBPLsr1iw=; b=YddtXDbMhkRGl52AzoAAK7KcScNpvOHo9dBObJRT9wTxRg7DQir13XOeWHxGUcioT9N82dxJZupzo/TvlKKBFW8GtR66trRvOnutOi+i6fG/VTKCD/N5v44SiLZNd/puN6yB/d3KhkN17roqeqKvkV8r/6gWth8GqKofb3Dvups= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 161093660577282.5715255458963; Sun, 17 Jan 2021 18:23:25 -0800 (PST) Received: from localhost ([::1]:51632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1KCS-0005ZS-P2 for importer@patchew.org; Sun, 17 Jan 2021 21:23:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1KA1-0002y9-NI for qemu-devel@nongnu.org; Sun, 17 Jan 2021 21:20:53 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:3291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1K9z-0003j8-TC for qemu-devel@nongnu.org; Sun, 17 Jan 2021 21:20:53 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DJwTV3z1wzl6Fv; Mon, 18 Jan 2021 10:19:26 +0800 (CST) Received: from [10.108.235.13] (10.108.235.13) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Mon, 18 Jan 2021 10:20:39 +0800 Subject: [PATCH V4 3/4] bsd-user: do not use C99 // comments References: To: Warner Losh , Peter Maydell From: shiliyang Message-ID: <2d69a2e7-67a2-3660-8ffe-de0962a046af@huawei.com> Date: Mon, 18 Jan 2021 10:20:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.108.235.13] X-CFilter-Loop: Reflected Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=45.249.212.190; envelope-from=shiliyang@huawei.com; helo=szxga04-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.chen@huawei.com, hunongda@huawei.com, QEMU Developers Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" This patch fixes error messages found by checkpatch.pl: ERROR: do not use C99 // comments Signed-off-by: Liyang Shi --- bsd-user/elfload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index d5cab25607..2842dfe56b 100644 --- a/bsd-user/elfload.c +++ b/bsd-user/elfload.c @@ -390,7 +390,7 @@ static const char *lookup_symbolxx(struct syminfo *s, t= arget_ulong orig_addr) struct elf_sym *syms =3D s->disas_symtab.elf64; #endif - // binary search + /* binary search */ struct elf_sym *sym; sym =3D bsearch(&orig_addr, syms, s->disas_num_syms, sizeof(*syms), sy= mfind); @@ -465,7 +465,7 @@ found: i =3D 0; while (i < nsyms) { bswap_sym(syms + i); - // Throw away entries which we do not need. + /* Throw away entries which we do not need. */ if (syms[i].st_shndx =3D=3D SHN_UNDEF || syms[i].st_shndx >=3D SHN_LORESERVE || ELF_ST_TYPE(syms[i].st_info) !=3D STT_FUNC) { --=20 2.29.1.59.gf9b6481aed