Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2471942pxu; Mon, 14 Dec 2020 03:15:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzZbDDyQer3FchoY+bgnL/GVasgmvWwn6vusnecrbz3nHN2ibDYVQ+MacRHYt6fjQF1Zi0 X-Received: by 2002:a17:906:6693:: with SMTP id z19mr1691799ejo.376.1607944543654; Mon, 14 Dec 2020 03:15:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607944543; cv=none; d=google.com; s=arc-20160816; b=PFN2m65ao3BjcSqvuoLO+vufVrYcSJDk5tJLrK4pnweAbnh0A3BqypsKcCirtO4i1z J/1GtW2O4lEjz/ss15dc9mD0BttjKC07mEOuC/aCUux3wTIN7AxaRW+3RDXzXA6m5pCw 7VZi7oP3Pw57mpHcv4+x8m5FymrnhLUxkVguam7ORU/u2Qq36dbzkUYMdZa97ykxMCWJ UiysSWSKIDbACBfk4MxBcE8HZNPF5fH1LSXepMmIvC3YemVmmhFSODNzMwiicmOPi8P8 HG93R/sQckXGhadnW+QfUGAmR/RnA/1Brk2ImyGA16dTwHS+ACAyGjzupP+ObBEikERG /mEg== 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; bh=GtvdqAJswBajUaKhUy1zh/FyZo4GlQoSeseBI4OZ7bw=; b=Ak1C5kKjkADY4Q2wbY1XvPywv2CUuc6ZJXqFyPzfoKDFWUpO0Bs1BTOmljmNX856FA mrx6iyZMRXkrCK7ifhJRq43oHWUbKFmJ/647u1NQw4lgY9JvgSzgr5DeHQk8Hb9b3MZX NZ++QhQaGuPVOsrxRXrka5QxIQKpaDXnPsS1Bvei65XP9TOdo2+p72RyrL/QeavdchBd RS/YWuP57PBO90tWXzDwzLVynGPjhzSmMKGVcp3fxRoAdkzXnB4XGG3c9NKx8a7TW4aY x0huieEX8jRDvSyI7l2wNVq0NcAi3V47kq2CvB80dyUnsNTuSauDIL7Ft5hHqAd1Ufxo 5QPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 17si9830282ejt.596.2020.12.14.03.15.20; Mon, 14 Dec 2020 03:15:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407260AbgLNLEw (ORCPT + 99 others); Mon, 14 Dec 2020 06:04:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404547AbgLNLEc (ORCPT ); Mon, 14 Dec 2020 06:04:32 -0500 Received: from faui03.informatik.uni-erlangen.de (faui03.informatik.uni-erlangen.de [IPv6:2001:638:a000:4130:131:188:30:103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16494C0613D3; Mon, 14 Dec 2020 03:03:52 -0800 (PST) Received: from cipterm0.informatik.uni-erlangen.de (cipterm0.cip.cs.fau.de [131.188.30.90]) by faui03.informatik.uni-erlangen.de (Postfix) with ESMTP id A3901240B67; Mon, 14 Dec 2020 12:02:47 +0100 (CET) Received: by cipterm0.informatik.uni-erlangen.de (Postfix, from userid 67858) id A19363280146; Mon, 14 Dec 2020 12:02:47 +0100 (CET) From: Philipp Gerlesberger To: linux-kernel@vger.kernel.org Cc: Philipp Gerlesberger , ij72uhux@stud.informatik.uni-erlangen.de, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@i4.cs.fau.de, gregkh@linuxfoundation.org, sakari.ailus@linux.intel.com, mchehab@kernel.org Subject: [PATCH v2 03/12] media: atomisp: Fix EMBEDDED_FUNCTION_NAME warning Date: Mon, 14 Dec 2020 12:01:47 +0100 Message-Id: <20201214110156.6152-4-Philipp.Gerlesberger@fau.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201214110156.6152-1-Philipp.Gerlesberger@fau.de> References: <20201214110156.6152-1-Philipp.Gerlesberger@fau.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the automatically defined __func__ macro instead of the function name, so it stays correct when the function is renamed. Co-developed-by: Andrey Khlopkov Signed-off-by: Andrey Khlopkov Signed-off-by: Philipp Gerlesberger --- .../media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c b/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c index 2e5c9addd9c5..92d67557e516 100644 --- a/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c +++ b/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c @@ -107,8 +107,7 @@ void ia_css_rmgr_refcount_retain_vbuf(struct ia_css_rmgr_vbuf_handle **handle) void ia_css_rmgr_refcount_release_vbuf(struct ia_css_rmgr_vbuf_handle **handle) { if ((!handle) || ((*handle) == NULL) || (((*handle)->count) == 0)) { - ia_css_debug_dtrace(IA_CSS_DEBUG_ERROR, - "ia_css_rmgr_refcount_release_vbuf() invalid arguments!\n"); + ia_css_debug_dtrace(IA_CSS_DEBUG_ERROR, "%s invalid arguments!\n", __func__); return; } /* decrease reference count */ @@ -163,10 +162,9 @@ void ia_css_rmgr_uninit_vbuf(struct ia_css_rmgr_vbuf_pool *pool) { u32 i; - ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_rmgr_uninit_vbuf()\n"); + ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "%s\n", __func__); if (!pool) { - ia_css_debug_dtrace(IA_CSS_DEBUG_ERROR, - "ia_css_rmgr_uninit_vbuf(): NULL argument\n"); + ia_css_debug_dtrace(IA_CSS_DEBUG_ERROR, "%s NULL argument\n", __func__); return; } if (pool->handles) { -- 2.20.1