Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3061805ybl; Sun, 12 Jan 2020 08:52:40 -0800 (PST) X-Google-Smtp-Source: APXvYqzpbQ3py1LEbXg1Cu7QNeb4iHhapNCtfZr7mYEmUrpvzh8gF+9YQVlUTGdkEciB04tA+5RA X-Received: by 2002:a9d:4805:: with SMTP id c5mr10574188otf.292.1578847960116; Sun, 12 Jan 2020 08:52:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578847960; cv=none; d=google.com; s=arc-20160816; b=cR43xYEAQiyJs6aVHfImSfTkfAuh1kiwxnJJkruUsXKgFl8g/9sX3GLQplSjLMppV9 4kiYd97A//iJ0vyVg0qUZlNgJmnNOsme3cliEmUxGqQc1sj9q0+WxxiyDUQJYNnBDnyE sOVezd2OGcAnCxfckQ1lewWPuMNUX4Ur94hv9pRGnJjqpBjCXWZ1CfGTOrdzZ+/q6y0e pa57v9MazklrWteTbmXLgF8vbR2PYN0nHGoYKCV7B5lKSmRknmkGF9v4O0aEZQ0CyXmG o8mzkht6LncGVKtMYMJ37j9canvpfpWGYh6zPUui4HGEDqD9aUAiseddLsF/BfhiVShw bj8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=IopUbcJgrXUDg/wJb/+kkUAwKfhn97BdUTM39wmUAEI=; b=J7PbirvNDS3hP24cigISLMxFf1Qt9I4lgJYhjUCMQ9LgXT1rddVDPGHp+z+dfFf0Fz Cch4BT85x5dmzVid5P+NABrG+VlOkej7oTav/ZgIAV+i7v6qpEgJ1K0Xw4ykLlcxd2ko CrxMuzEtQZV5oyRmNeqwJ9olvEYvxuJ8c0dqFUMNu5jLPZtvo+N7/7xwbBLx1iXiHIzo ShpbfgyfmyWQrRdHe/p4m5LxwHrZrD1xPtqromJibOl/jCOL/SiiVVNYVhE1xW1Uc4bo gCOvF42/ON9NTlgfd5cEVDxWDAp58MnLbmlRO4aYfyaz7vVna+lqNfkxaQNKccHNTA8A dCaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 194si4618114oii.2.2020.01.12.08.52.28; Sun, 12 Jan 2020 08:52:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733115AbgALQvN (ORCPT + 99 others); Sun, 12 Jan 2020 11:51:13 -0500 Received: from baptiste.telenet-ops.be ([195.130.132.51]:55570 "EHLO baptiste.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730190AbgALQvN (ORCPT ); Sun, 12 Jan 2020 11:51:13 -0500 Received: from ramsan ([84.195.182.253]) by baptiste.telenet-ops.be with bizsmtp id pUrC210045USYZQ01UrCgJ; Sun, 12 Jan 2020 17:51:12 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1iqgSG-0007zB-0w; Sun, 12 Jan 2020 17:51:12 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1iqgSF-0005KJ-VP; Sun, 12 Jan 2020 17:51:11 +0100 From: Geert Uytterhoeven To: Ralf Baechle , Paul Burton , James Hogan Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] MIPS: ip22-gio: Make gio_match_device() static Date: Sun, 12 Jan 2020 17:51:10 +0100 Message-Id: <20200112165110.20427-1-geert@linux-m68k.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Unlike its PCI counterpart, gio_match_device() was never used outside the GIO bus code. Signed-off-by: Geert Uytterhoeven --- arch/mips/include/asm/gio_device.h | 2 -- arch/mips/sgi-ip22/ip22-gio.c | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/mips/include/asm/gio_device.h b/arch/mips/include/asm/gio_device.h index c52948f9ca9598af..159087f5386e9efd 100644 --- a/arch/mips/include/asm/gio_device.h +++ b/arch/mips/include/asm/gio_device.h @@ -32,8 +32,6 @@ struct gio_driver { }; #define to_gio_driver(drv) container_of(drv, struct gio_driver, driver) -extern const struct gio_device_id *gio_match_device(const struct gio_device_id *, - const struct gio_device *); extern struct gio_device *gio_dev_get(struct gio_device *); extern void gio_dev_put(struct gio_device *); diff --git a/arch/mips/sgi-ip22/ip22-gio.c b/arch/mips/sgi-ip22/ip22-gio.c index 282b47c2dc2707b5..de0768a49ee87833 100644 --- a/arch/mips/sgi-ip22/ip22-gio.c +++ b/arch/mips/sgi-ip22/ip22-gio.c @@ -47,8 +47,9 @@ static struct device gio_bus = { * Used by a driver to check whether an of_device present in the * system is in its list of supported devices. */ -const struct gio_device_id *gio_match_device(const struct gio_device_id *match, - const struct gio_device *dev) +static const struct gio_device_id * +gio_match_device(const struct gio_device_id *match, + const struct gio_device *dev) { const struct gio_device_id *ids; @@ -58,7 +59,6 @@ const struct gio_device_id *gio_match_device(const struct gio_device_id *match, return NULL; } -EXPORT_SYMBOL_GPL(gio_match_device); struct gio_device *gio_dev_get(struct gio_device *dev) { -- 2.17.1