From patchwork Sun Oct 3 19:57:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaston Gonzalez X-Patchwork-Id: 12533045 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53885C433F5 for ; Sun, 3 Oct 2021 20:04:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 20DE061872 for ; Sun, 3 Oct 2021 20:04:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 20DE061872 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=O/5I5ISoiK092BnMaqF9rSTShAkC5zA1ZNW/PDO+6vI=; b=YQVV7kv0TsQgJw xmVO2qCvVq1DJxI0/F9A3MOr4TIlYwQwx7emFHYtOe9Wpc7iojKIP/Bse5h15s2sq+iOcza4x3z4N fLTgf22+h9VDrgun8cdMRwtMjL6IQIEh2PL4Kh14so0lLHQ1bX002wmtJ8Jc0TKjx94vMsj8cWkc4 3tCzq+S283BftJjRzhr6DnaKbwxw26cz17JekHhsTN4AozQwmeUuqWVT4CYfp9gpN5Gu5q163nj9N nOy0i1gI01UCJXN8/40V5xhyUsHnJAys6Q0VSko67qCaljHyDLjR1sBzBU/wKa0hXL7T/5YqS0LK/ cyAWweOQeZ3j8emr/gLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mX7gD-004OJ3-LT; Sun, 03 Oct 2021 20:01:49 +0000 Received: from mail-vk1-xa2b.google.com ([2607:f8b0:4864:20::a2b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mX7fn-004O5a-Nf; Sun, 03 Oct 2021 20:01:25 +0000 Received: by mail-vk1-xa2b.google.com with SMTP id h132so6733986vke.8; Sun, 03 Oct 2021 13:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uSkH/ZagQntPkG0C2DpHNBonj7Wo9RInBQiBWcy5XFE=; b=FSO1rIOGJgjGiv0ApTs5p11TPMuTpriYaPVgrHJ3Ymoy4Vmr4Mj1Iv+ZJ08WnQQ36M oFKPlsXpEsA7zdaSMkxh+eXEPtBVTvQ42QMZaGizQ2zDiIYghKJFs7rvufnuH6uHqgEw 5t1wuryuuIyReaU9YGRcPdrtP9PdpycpZIX/xk2214nQNa5Hcs78RBMT4qFsdy5QmpR6 g51yVi5hsXjkkqiuLWGS3yMOnZrnbk/aoYn7ZM6UFPPWqXOnyEel9h31qlWqDpw83SQi /GCUwj2gMtOyK+ngDLMus1oGLT80ovzWGh8izppnMoeK25xeqBByhZ0RTFHE/AGqOKD3 mbQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uSkH/ZagQntPkG0C2DpHNBonj7Wo9RInBQiBWcy5XFE=; b=v+DvBSTG+XEo+fvG/4kzXLekJB1rOcF+11S4a+8zldXSL6Mh1E/xm3z26AYBmaN+gu kDxswBfmOQ4su4/z7DaFbOOGOPxYxyl1ZIL4VkHCdUeUuZvK6J1FAr9rNKGNifs22T2L vxdeKD7YXA96K3reZZf4Xsm9imGY7QPcxZ7RTdmb0wlA8v1BS57rdlZ5eOkEzPtM7N+P PwxGxEcaR+4paosj88gG6pgPPsgY6guXVPfJ+SrQG9a+zb68NEvOte7H6KhRqdn4vbL3 eg//r1Z+MkAKaFEl9W8FY/nQpgaVed6geQif2EEcoykqUUsEu2dptq+HaZsD7GHT8Ls1 20wA== X-Gm-Message-State: AOAM531J/OFqAGQJTx6fBdP09qTk0Kw73rYZKmA7OSLV68RJjSMf5N5k +3URC26RGJLDjfBu0u7lJEeTD5P720dSug== X-Google-Smtp-Source: ABdhPJzU68BmIDYtHfc0+zSQmhGaxNeqKRjgG2+yjrVl4QCsdCZRiqlgrdrml8y6cL4VTEDQDqInGA== X-Received: by 2002:a1f:c602:: with SMTP id w2mr13384373vkf.26.1633291282261; Sun, 03 Oct 2021 13:01:22 -0700 (PDT) Received: from localhost.localdomain ([181.23.73.135]) by smtp.gmail.com with ESMTPSA id x21sm6691019uao.2.2021.10.03.13.01.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 13:01:21 -0700 (PDT) From: Gaston Gonzalez To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, nsaenz@kernel.org, stefan.wahren@i2se.com, arnd@arndb.de, dan.carpenter@oracle.com, ojaswin98@gmail.com, amarjargal16@gmail.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, gascoar@gmail.com Subject: [PATCH 5/9] staging: vchiq: drop trailing semicolon in macro definition Date: Sun, 3 Oct 2021 16:57:58 -0300 Message-Id: <20211003195758.36572-6-gascoar@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211003195758.36572-1-gascoar@gmail.com> References: <20211003195758.36572-1-gascoar@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211003_130123_837651_5C6E3FA9 X-CRM114-Status: GOOD ( 12.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org As reported by checkpatch.pl, macro should not use a trailing semicolon. Signed-off-by: Gaston Gonzalez --- .../staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 4 ++-- .../staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 6 +++--- .../staging/vc04_services/interface/vchiq_arm/vchiq_core.h | 2 +- .../staging/vc04_services/interface/vchiq_arm/vchiq_dev.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index fcff2e5bd73f..08c03acd8592 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -930,7 +930,7 @@ add_completion(struct vchiq_instance *instance, enum vchiq_reason reason, struct vchiq_completion_data_kernel *completion; int insert; - DEBUG_INITIALISE(g_state.local) + DEBUG_INITIALISE(g_state.local); insert = instance->completion_insert; while ((insert - instance->completion_remove) >= MAX_COMPLETIONS) { @@ -998,7 +998,7 @@ service_callback(enum vchiq_reason reason, struct vchiq_header *header, struct vchiq_instance *instance; bool skip_completion = false; - DEBUG_INITIALISE(g_state.local) + DEBUG_INITIALISE(g_state.local); DEBUG_TRACE(SERVICE_CALLBACK_LINE); diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c index e327393800da..026c7c775e40 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -1585,7 +1585,7 @@ parse_message(struct vchiq_state *state, struct vchiq_header *header) unsigned int localport, remoteport; int msgid, size, type, ret = -EINVAL; - DEBUG_INITIALISE(state->local) + DEBUG_INITIALISE(state->local); DEBUG_VALUE(PARSE_HEADER, (int)(long)header); msgid = header->msgid; @@ -1856,7 +1856,7 @@ parse_rx_slots(struct vchiq_state *state) struct vchiq_shared_state *remote = state->remote; int tx_pos; - DEBUG_INITIALISE(state->local) + DEBUG_INITIALISE(state->local); tx_pos = remote->tx_pos; @@ -1961,7 +1961,7 @@ slot_handler_func(void *v) struct vchiq_state *state = v; struct vchiq_shared_state *local = state->local; - DEBUG_INITIALISE(local) + DEBUG_INITIALISE(local); while (1) { DEBUG_COUNT(SLOT_HANDLER_COUNT); diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h index a107c72ce3a6..e54e9d80bd7f 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h @@ -104,7 +104,7 @@ enum { #if VCHIQ_ENABLE_DEBUG -#define DEBUG_INITIALISE(local) int *debug_ptr = (local)->debug; +#define DEBUG_INITIALISE(local) int *debug_ptr = (local)->debug #define DEBUG_TRACE(d) \ do { debug_ptr[DEBUG_ ## d] = __LINE__; dsb(sy); } while (0) #define DEBUG_VALUE(d, v) \ diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c index 32aa1e62450d..2325844b0880 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c @@ -210,7 +210,7 @@ static int vchiq_ioc_dequeue_message(struct vchiq_instance *instance, struct vchiq_header *header; int ret; - DEBUG_INITIALISE(g_state.local) + DEBUG_INITIALISE(g_state.local); DEBUG_TRACE(DEQUEUE_MESSAGE_LINE); service = find_service_for_instance(instance, args->handle); if (!service) @@ -439,7 +439,7 @@ static int vchiq_ioc_await_completion(struct vchiq_instance *instance, int remove; int ret; - DEBUG_INITIALISE(g_state.local) + DEBUG_INITIALISE(g_state.local); DEBUG_TRACE(AWAIT_COMPLETION_LINE); if (!instance->connected)