From nobody Tue May 7 08:37:47 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1553710726898177.66372855606687; Wed, 27 Mar 2019 11:18:46 -0700 (PDT) Received: from localhost ([127.0.0.1]:51785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9D8K-0000VX-Vd for importer@patchew.org; Wed, 27 Mar 2019 14:18:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9D6q-0008Gp-CH for qemu-devel@nongnu.org; Wed, 27 Mar 2019 14:17:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9D6p-00033x-D1 for qemu-devel@nongnu.org; Wed, 27 Mar 2019 14:17:08 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:38671) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h9D6p-00032m-4k for qemu-devel@nongnu.org; Wed, 27 Mar 2019 14:17:07 -0400 Received: by mail-wr1-x443.google.com with SMTP id k11so12341817wro.5 for ; Wed, 27 Mar 2019 11:17:07 -0700 (PDT) Received: from ninjatsu.public.libraries.mcc ([91.235.65.22]) by smtp.gmail.com with ESMTPSA id g12sm20296912wrw.40.2019.03.27.11.17.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Mar 2019 11:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YvZYCR3UjgoWlWPxGsBKQPjRVdqOKD8mreu3rQ1X/14=; b=WQFMR5RuiLGMwEfAVZmt/WjAD1UZpEVB7RvZur4dzZ/1T4WPcdYjnZdZM3tSJaOQdC 7DcxjJuUWotrtWOQHa4zbtXkl+AanrR48ZF/JfXs6LftGy/IlfGcKb8eCnFxIIU3wT9t yaVUxOjMwhg+iJeBCYEj/9g1ZmMeJs3Olbmm3uEPnHSaCH8CU7VxFmjcw9cAhHqHvMGq Z6+ebbuHqt5veOOO5j46ssZ3bz6BS5noTWUZMfqtK1zo2eycFlkuBJRslv/rN5r/8z5Q +7HpJrVN1EjLLJipCErOfJH47Gmc0FG4QBkJlEJVUdsQSQge5KOI/JT9E43FM1qg+2Hq lYtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YvZYCR3UjgoWlWPxGsBKQPjRVdqOKD8mreu3rQ1X/14=; b=Y/4/89/FW2OezKsSGHzQjQTUhhRUUCu5vwgKLA/R40Txwp42jwsKnEd/xRDqZqMZDQ 4Mt7qc1xs14ZKcOXJsqkIE9w7Q4EpfpQudf/FLndkQf4TgRrjThLdwMdcFPtwt6d3C3b 4qow5AQn3P5nTyLLc8AkX+L6J0xeeBQFYG/SFptTQbXy3n33Jito3pbnK2o2vNlSAIW0 9qCosSvp5QPAioShdDEnMwMAMZ7XtPaH3xO21UDuU3GxBw3cpauB6NFW2GbvNxcDYtSS AKWWeY3MOY0QyDuaCZed+0n+jBf2OCu/GgHnMMQIiXv/UOK7d0Js1qitTthhVgHFYIi4 W21g== X-Gm-Message-State: APjAAAXSoUD1HcuIHDjeD3hKV2ewSEiAJy8EflQSkk3bFeci4JZp1EQI 73ZOQHZrBqZiMhEaYNfXxA== X-Google-Smtp-Source: APXvYqytqXRJDMC46JgHPkmwkU6Aoyx6uWkdtM9UZWEvZ9YpMt+qCkgsgsVG5QmGPawvGnLUplcXrg== X-Received: by 2002:a5d:644a:: with SMTP id d10mr23085545wrw.308.1553710625642; Wed, 27 Mar 2019 11:17:05 -0700 (PDT) From: Jules Irenge To: aurelien@aurel32.net Date: Wed, 27 Mar 2019 18:16:50 +0000 Message-Id: <20190327181650.23992-1-jbi.octave@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH v2] target/mips: add * to comments and realign them to fix checkpatch warnings X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, qemu-devel@nongnu.org, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Add * to comments and realign to fix warnings issued by checkpatch.pl tool "WARNING: Block comments use a leading /* on a separate line" within the file "target/mips/cp0_timer.c". Signed-off-by: Jules Irenge Reviewed-by: Aleksandar Markovic --- This v2 improves on writing the comment style and get rid of the warnings c= ompletely target/mips/cp0_timer.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/target/mips/cp0_timer.c b/target/mips/cp0_timer.c index 742f4b2890..d80b0076d3 100644 --- a/target/mips/cp0_timer.c +++ b/target/mips/cp0_timer.c @@ -42,8 +42,10 @@ uint32_t cpu_mips_get_random(CPUMIPSState *env) =20 /* Don't return same value twice, so get another value */ do { - /* Use a simple algorithm of Linear Congruential Generator - * from ISO/IEC 9899 standard. */ + /* + * Use a simple algorithm of Linear Congruential Generator + * from ISO/IEC 9899 standard. + */ seed =3D 1103515245 * seed + 12345; idx =3D (seed >> 16) % nb_rand_tlb + env->CP0_Wired; } while (idx =3D=3D prev_idx); @@ -143,9 +145,11 @@ static void mips_timer_cb(void *opaque) if (env->CP0_Cause & (1 << CP0Ca_DC)) return; =20 - /* ??? This callback should occur when the counter is exactly equal to - the comparator value. Offset the count by one to avoid immediately - retriggering the callback before any virtual time has passed. */ + /* + * ??? This callback should occur when the counter is exactly equal to + * the comparator value. Offset the count by one to avoid immediately + * retriggering the callback before any virtual time has passed. + */ env->CP0_Count++; cpu_mips_timer_expire(env); env->CP0_Count--; --=20 2.20.1