From patchwork Mon Nov 22 09:26:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 12631491 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25A39C4332F for ; Mon, 22 Nov 2021 09:26:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239077AbhKVJ30 (ORCPT ); Mon, 22 Nov 2021 04:29:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:59058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232383AbhKVJ3W (ORCPT ); Mon, 22 Nov 2021 04:29:22 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E6A6B604DA; Mon, 22 Nov 2021 09:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637573176; bh=oAnn+EVwkewlNETnxaYIhl5BiF6hjTjrZ8WGo7X1wck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K2w6+8SqvI+ALOEr4RAcNwHLphEGZZUCIqfS8IytbNfIfVaaA8K4YRtZTOx1ta4bo EHIOp0CU0qN9vRCRgYZfYCk1JIQKMIwqHG6usE4KBzcten2W9+XQKBoGtLv0W/0SSP W8QelQYX2xK3W95zDY31zerMXqkN+Ua1mQjEF7zcGtzLZXn7n3avGdwjE/9Fh1/JzZ 1xlmym/0vBmuWqDEw+ThlujVKyBzyHcws3JTWzuQdH/RGdMD73cerwcqsJ/V6sMj6F vTdKwaHIGLhOG2w4B/Mi6XUSyLg2OLAWIFFWu7lWHbD924pP+A7Mtya/kSEYomKo+3 XajkXey7LjEQg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mp5aX-003hiP-4g; Mon, 22 Nov 2021 09:26:13 +0000 From: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Laurent Pinchart , Mauro Carvalho Chehab , Nathan Chancellor , Nick Desaulniers , Sakari Ailus , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH 05/10] media: mc: mark a debug function with __maybe_unused Date: Mon, 22 Nov 2021 09:26:07 +0000 Message-Id: <8a18223a184901971137954903ad59bd152d0d47.1637573097.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 Sender: Mauro Carvalho Chehab To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The gobj_type() function translates the media object type into a name, being useful for debugging purposes. It is currently not used, but let's keep it around, as it can be useful. So, mark it with __maybe_unused, in order to shut up a clang warning. Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 00/10] at: https://lore.kernel.org/all/cover.1637573097.git.mchehab+huawei@kernel.org/ drivers/media/mc/mc-entity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/mc/mc-entity.c b/drivers/media/mc/mc-entity.c index f40f41977142..b0ea145ac9c0 100644 --- a/drivers/media/mc/mc-entity.c +++ b/drivers/media/mc/mc-entity.c @@ -14,7 +14,7 @@ #include #include -static inline const char *gobj_type(enum media_gobj_type type) +static inline __maybe_unused const char *gobj_type(enum media_gobj_type type) { switch (type) { case MEDIA_GRAPH_ENTITY: