From patchwork Tue Sep 14 21:35:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaston Gonzalez X-Patchwork-Id: 12494931 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87F7EC433F5 for ; Tue, 14 Sep 2021 21:40:48 +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 4D1C260EE9 for ; Tue, 14 Sep 2021 21:40:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4D1C260EE9 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=txcdAdvhiwpCMxf8jhjNBV97TlhD1zdzPcIpB8f99sY=; b=IaVDmSreJfob07 unGtI92cvVzTYqrqHDatJgtfDVfqhLSikV6RXBjpPXlBckZF7/WsniMyx3e13xYpeMyh+Dd3xNjo5 TnpK3o8r0LjsA/uxdx0NDB8/TM5QwiTpL7YofzKSvqWWjiRxSPRj4cKcdkrBxeGMZiAzX7ndp+TAP vWTtNSK7hYmm62m0Uv0M2ocudx6jf4JgSrjCVQ3YHODY0KV1WgBOS1WgvQC+rCEMC0mvKzsztqV8M 98XXvb3XeeZ3T1Imc3tCJeIpFZYDrVlbhulqaFHzSJTOLn+zgyetBGlRo5QkgmmDsIQtVHLo+bGOQ ABjGI5kXKQGutlEVGMlA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQG92-007AJh-U3; Tue, 14 Sep 2021 21:39:13 +0000 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQG8M-0079zv-2q; Tue, 14 Sep 2021 21:38:31 +0000 Received: by mail-qt1-x82a.google.com with SMTP id d11so454436qtw.3; Tue, 14 Sep 2021 14:38:27 -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=gTyzltWgTFXOPjw+JtVdJBDzeHI6HlS3kPelko2mAhw=; b=pTJXXzRDKNPU9M1obXdrsuGlbMwi0taGqkvHnjZmaU4JR8i2I/61GJlKgJl73KlWAl 1tJeDR25y7tSKG2u7mIL/9kaEgY11SGN/Y/3Orpbt3heF0j5nu7n5BoHanImH0Bf7sFI BhiiuTQytiILqQsx+dj9HwGu4OjxuchYWvsmZWvdpZOO4K8eoxP3UF9ci2Rvl6nIU8+t rFP3s1csAXONWuyqUE+/blK9iUExireE6XvtJkCZTSgsBO5OQuOnWMY3PANTm/919Ytf pAC3048sHWVfZE5D7bqZo4VCtGhVNsExZgtXqoxHEw9pS5dQz3FOryzx9bYE7toAT+os gbmw== 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=gTyzltWgTFXOPjw+JtVdJBDzeHI6HlS3kPelko2mAhw=; b=yzqkx8Y6tGaBAWfQc1oXK4Ngobqy4oLbA8bFPMqxTXpuHVFOYYHiCWrvCEMVLJkxYX se6hE/KcDFjinIGIeuHJ97EtBNfODYwARGUwcNOeOWm41/NW2lprZ7aHgrzpfx8YNRAI E3gJtxqb9OJ4yuLqeotpZAAOHt8f/tTemMu4++RrOu9afIN025jffdqH63riWvVEQDWa xo1EdKBzELWBHeVSH35RVKu6iQnJcUSDY2tWjUMoWgg5DUg9XD1yF3hdlSCkEwBNIqDI R5ELgdBdAPmsH82e5shaFFrHiSEjlU1GwJsDRk3afK6tbz22K6e/IQ1NAeafvsjloaGZ nLgA== X-Gm-Message-State: AOAM532flBAE40rPkqYAeHpcZEmKsJ3OKyCfSb1i8Y8BH2iXx/wu8iO6 UEFkEqwztM1laVSyBOhiRg0= X-Google-Smtp-Source: ABdhPJyWMHfuCic8pX9ljyiNAr9gMqISRMOcByncvz5LKp6v6+PdH7vYTqxTcP1pVbEqgYtrKinMUw== X-Received: by 2002:ac8:4905:: with SMTP id e5mr6898010qtq.415.1631655507126; Tue, 14 Sep 2021 14:38:27 -0700 (PDT) Received: from localhost.localdomain ([191.84.239.65]) by smtp.gmail.com with ESMTPSA id o7sm6716611qtw.87.2021.09.14.14.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 14:38:26 -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 8/8] staging: vchiq_arm: use __func__ to get function name in debug message Date: Tue, 14 Sep 2021 18:35:40 -0300 Message-Id: <20210914213532.396654-8-gascoar@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210914213532.396654-1-gascoar@gmail.com> References: <20210914213532.396654-1-gascoar@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210914_143830_173031_919E69FF X-CRM114-Status: GOOD ( 10.90 ) 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 Avoid hardcoded function name using "%s", __func__. This prevents potential naming conflict if the function is eventually renamed. Reported by checkpatch.pl --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 72d9a6e37ae9..2d498fb0d19f 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -1025,7 +1025,7 @@ service_callback(enum vchiq_reason reason, struct vchiq_header *header, spin_unlock(&msg_queue_spinlock); DEBUG_TRACE(SERVICE_CALLBACK_LINE); DEBUG_COUNT(MSG_QUEUE_FULL_COUNT); - vchiq_log_trace(vchiq_arm_log_level, "service_callback - msg queue full"); + vchiq_log_trace(vchiq_arm_log_level, "%s - msg queue full", __func__); /* * If there is no MESSAGE_AVAILABLE in the completion * queue, add one