From patchwork Thu Apr 13 16:33:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 83038 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1173173vqo; Thu, 13 Apr 2023 09:44:58 -0700 (PDT) X-Google-Smtp-Source: AKy350auUfALIEKrBs6Hz2d5I2b3ru1Gq8AqY0QV6ZCk2UqktoIiEaeauMjI4hEZNMnsuSfTvjY5 X-Received: by 2002:a05:6a21:3295:b0:e8:e4c7:5f95 with SMTP id yt21-20020a056a21329500b000e8e4c75f95mr8440185pzb.11.1681404297795; Thu, 13 Apr 2023 09:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681404297; cv=none; d=google.com; s=arc-20160816; b=XNxlNpBmNECUUuS6jtKcqRWMFGDP0sGWK9FuFD0ejq095/kMyHfF3hNX6nNTj+nKea L7UJhg5TWH6aLPfs2I16G5boXmexxLrnXJnqRtPS1M2vSyhvBnBMezCC8855OnD16NCB itx1+VLOAUDrzeqbMGundb9j+ujB8HfPlcO8FtmQjR2vN1kzLwTMRHdsXL905Pa0Hz70 BsEJHvLuqN8uH74jPagUXV5hDedyDpjTlcVdpxwjoILmRYBQBeSOEMJnmNv8zd7Jk+TG dojIEWkEuk9vDUOgiqoAsXPIOOJSzChutCve93nJNCmFMsQoD2ch9DQFx9ry8AiE3QUe 3cuA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=h2FHSfSVIGJenoBTe2ZTObcJ/Faf9/4dtKsBWn5rjEo=; b=UKCO2C0Ei+V84GDoAloO/viQailRnl7RVX8tVuhg0lgWitMEsQtPxzrigB+HX5Tddc gjZxTC/0RFoEtVxsYZF6ijtW0j/rRXEQfVxvNyZk86JmMetABsS+Ul8Z3og2rlWZ5pCV pofgIRuUQRkpj0S9/D35rPhsEZBK4agfEfePNBNW1gwCe3H/xpHzVm021UUCWmrGiEFc 5bI9WjrGdeSKuGPGY7gqxZSfYava58acG9hqc/++wRoafAR3qm4wLIX+tFUAeJjIGBUi nELoRXgnRZc8ySTGPdQbH2fW7X/THtOLj1PB0WPuLSwNtc4t0zZSTC/PTInmE2CThuYF UaDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sVhPo1uQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a63f110000000b0050be99a828csi2455141pgi.4.2023.04.13.09.44.43; Thu, 13 Apr 2023 09:44:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sVhPo1uQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbjDMQeH (ORCPT + 99 others); Thu, 13 Apr 2023 12:34:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbjDMQeF (ORCPT ); Thu, 13 Apr 2023 12:34:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88013212C; Thu, 13 Apr 2023 09:33:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 19D9163FF2; Thu, 13 Apr 2023 16:33:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD586C433EF; Thu, 13 Apr 2023 16:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681403638; bh=EUXwuWZquNO+Y7E+kEoHBKTgHUKZXJPe1OyZlz61KFk=; h=From:To:Cc:Subject:Date:From; b=sVhPo1uQa3Qhg4rzL9hKAgUPoBLIYZnATfPyf1dK8hxIUyruCdhCZWl4+PgzDIxcp OUmie7uCp9rVXOAJ1RmBCDcDGA+gb/bnHS+kcPlFvU337ZuH6Zp5HYTdY8kHMAhrR4 b+USbYAn14i0AqxJsCb8zsRItFFF+EzbD1lzgsBEzekrdcAq86/r6fnzTkwOc7iKqn 6l4k3JX5AJB4V6/joC2dQQJGC9sIC53n/Lkxh6qBQPg9+70wilJFaQSmSHEfZIrbc7 AV6F56jEbFQjbxxKiHxlNgNGylqqrdPenu6yKwr5QifTmdwTmYFq0HS2ZpozF9jL2n gaohEUwIsp7Qw== From: Arnd Bergmann To: Rob Herring Cc: Arnd Bergmann , Frank Rowand , Srinivas Kandagatla , Miquel Raynal , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] of: move dummy of_device_get_match_data() helper Date: Thu, 13 Apr 2023 18:33:30 +0200 Message-Id: <20230413163353.3408208-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763080192921108122?= X-GMAIL-MSGID: =?utf-8?q?1763080192921108122?= From: Arnd Bergmann The previous patch only moved the regular declaration but missed the inline function that is used with CONFIG_OF=n: drivers/tty/serial/samsung_tty.c:2034:10: error: implicit declaration of function 'of_device_get_match_data' is invalid in C99 [-Werror,-Wimplicit-function-declaration] Fixes: f5a2dc751657 ("of: Move of_device_get_match_data() declaration") Signed-off-by: Arnd Bergmann --- include/linux/of.h | 5 +++++ include/linux/of_device.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/of.h b/include/linux/of.h index f94f9e6476c0..c0d1512f979a 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -815,6 +815,11 @@ static inline bool of_console_check(const struct device_node *dn, const char *na return false; } +static inline const void *of_device_get_match_data(const struct device *dev) +{ + return NULL; +} + static inline const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur, u32 *pu) { diff --git a/include/linux/of_device.h b/include/linux/of_device.h index 455c51a09091..2c7a3d4bc775 100644 --- a/include/linux/of_device.h +++ b/include/linux/of_device.h @@ -51,11 +51,6 @@ static inline int of_driver_match_device(struct device *dev, static inline void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env) { } -static inline const void *of_device_get_match_data(const struct device *dev) -{ - return NULL; -} - static inline int of_device_modalias(struct device *dev, char *str, ssize_t len) {