From patchwork Sat Feb 4 20:29:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 650717 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 5053DC61DA4 for ; Sat, 4 Feb 2023 20:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232523AbjBDUjV (ORCPT ); Sat, 4 Feb 2023 15:39:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231654AbjBDUjU (ORCPT ); Sat, 4 Feb 2023 15:39:20 -0500 X-Greylist: delayed 546 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 04 Feb 2023 12:39:19 PST Received: from mr85p00im-zteg06021901.me.com (mr85p00im-zteg06021901.me.com [17.58.23.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FAC6222EB for ; Sat, 4 Feb 2023 12:39:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1675542613; bh=wdmroSnk2VRzxsnC/4QQ06ZZXjkhU/5Tb87n4HWe2pE=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=wQhqV4pIgexziHbg3XW/PmP8qVUeu4uc9JxffwW1lMjgHnQ6ypKJbmbPvMnhM+4th EiGOCmKt+YKR2VxC9pYLbU9PMcp80qv1EVdZlfHWjfDbdtm7GiMa9uDftDrBkynjeB Y5DD4UjOxnhoVrwqfpvgiJIfK9HFKA7nBVwINx3zQZ1ZKmFysPKPOS/k9CsjmUSoHE anBYVzUetYwN1vhlwRsL8VkQHQFQMJAezpBTG5jAJQ20ZxBkSotoa+IZOiUTffRZ1t 96Ifvq8kNNgj/5pDzT1ACS67VLZyTrkDedU+qwIS/puUk39ze2X5TOIf1ElSdenz17 8PvQO0o2w60+g== Received: from localhost (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-zteg06021901.me.com (Postfix) with ESMTPSA id E25E3740A0B; Sat, 4 Feb 2023 20:30:12 +0000 (UTC) From: Alain Volmat To: Patrice Chotard , Mauro Carvalho Chehab Cc: Alain Volmat , kernel test robot , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: sti: c8sectpfe: drop of_match_ptr() to avoid unused variables Date: Sat, 4 Feb 2023 21:29:40 +0100 Message-Id: <20230204202941.139974-1-avolmat@me.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-GUID: -y6n3fMLjC9oNm25ppWtRkpNx3LCANb_ X-Proofpoint-ORIG-GUID: -y6n3fMLjC9oNm25ppWtRkpNx3LCANb_ X-Proofpoint-Virus-Version: =?utf-8?q?vendor=3Dfsecure_engine=3D1=2E1=2E170-?= =?utf-8?q?22c6f66c430a71ce266a39bfe25bc2903e8d5c8f=3A6=2E0=2E138=2C18=2E0?= =?utf-8?q?=2E572=2C17=2E11=2E62=2E513=2E0000000_definitions=3D2020-02-14=5F?= =?utf-8?q?11=3A2020-02-14=5F02=2C2020-02-14=5F11=2C2021-12-02=5F01_signatur?= =?utf-8?q?es=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 mlxlogscore=958 bulkscore=0 clxscore=1011 spamscore=0 mlxscore=0 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2302040184 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org When CONFIG_OF is not set, "of_match_ptr()" compiles to NULL, which leaves unused, leading to warning such as: drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c:1175:34: warning: unused variable 'c8sectpfe_match' [-Wunused-const-variable] Drop the of_match_ptr usage to avoid such warning. Reported-by: kernel test robot Signed-off-by: Alain Volmat --- drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c index c38b62d4f1ae..67d4db0abd8a 100644 --- a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c +++ b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c @@ -1175,7 +1175,7 @@ MODULE_DEVICE_TABLE(of, c8sectpfe_match); static struct platform_driver c8sectpfe_driver = { .driver = { .name = "c8sectpfe", - .of_match_table = of_match_ptr(c8sectpfe_match), + .of_match_table = c8sectpfe_match, }, .probe = c8sectpfe_probe, .remove = c8sectpfe_remove,