Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2696462rwl; Thu, 13 Apr 2023 09:37:34 -0700 (PDT) X-Google-Smtp-Source: AKy350ZhZzAmKPwQORmLxYwuNJfuBspvTJ2FXX1oCW8K0w1aBTWUvTmF7UBpYdq/nIAkieFaYFtc X-Received: by 2002:a05:6a20:12d0:b0:e8:df99:6c15 with SMTP id v16-20020a056a2012d000b000e8df996c15mr8129857pzg.7.1681403854543; Thu, 13 Apr 2023 09:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681403854; cv=none; d=google.com; s=arc-20160816; b=wtvW8/lJj0FPpQ0pNYOosA6CIe/HrH1GdSxmrkdel+RxjtToBeOTN3ojCuBDkOVbT7 THqfY4vI5wfSPG8DEHuGiNPBkT5iluNE8vdN9orRi+9CGHUy79aiCcl/LC5m+N/i6ytR q3+VijE0bwWb+sPh3wR1Pc5vhKx/AZSQwUmj7ulwIpehjYht9JhI/A1NTdOb1hEHj3cL JJhAo10tS4z0uaVB2ony3O4GZuvyHO7kpla1dI5QY40J+PlVa7H+YOJ4mf6+FTfbJ2WV OLFSFFE0e8rk8qimjp3zIARmvmwC2KvfinuAIHPheIQ2g7nb1DdRSSPsOGKdsnEwEJcn DF6Q== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j62-20020a638041000000b0051b5bb35d72si1086181pgd.338.2023.04.13.09.37.21; Thu, 13 Apr 2023 09:37:34 -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 S229832AbjDMQeH (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 Content-Transfer-Encoding: 8bit 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 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) { -- 2.39.2