Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp765029pxb; Mon, 16 Aug 2021 17:40:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmhGpd1KIONlqVjeyTOxvO2dzsAVxsacA+OhfJuO0MhqsV66eA5C3WrpvJGAjsBYNgWib5 X-Received: by 2002:a17:906:314e:: with SMTP id e14mr874693eje.165.1629160800425; Mon, 16 Aug 2021 17:40:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629160800; cv=none; d=google.com; s=arc-20160816; b=WayQyRk0QgwM4y9kSBIEM1y5hhPVU/upoeSCwobEyeRKxoDp5bL3gaXXovm5PZeGgn 2iho5zzGjQMe+PpLs2M/jjuZdShznN83Xa4w2tuRWydcps90oCvzaqopj+AJ+H1QpBuf JE5goIVjPIzPfb0UxUPYuV3gLYTyeKGDUytRb78kDgYaJ7Xk8wSE5vuXuJLC3BwQcO0n cFXkF3ClBBklPymXMoq/2+wjQyqeb8PUuSUzDNnwlJPJOyJPQGOBRME/Vxu3DCqETlX5 Gnw/YtD5UD/GwalW1HXEVTw9PRxuzqSJydyrZKZRpIim3T0zCEDFraOXtKWvHTOUd1Q3 9opg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ggxDy6a0BHMNpk3KP41fIgI4fklmaHTYHD0n/M2GELk=; b=C7Ljhnfwgn2U9PEjEIPCDksdhFKm8kVxQiAhdgpSoImKYXPldrYYErmr+xbb43+uuM jQvTkq0CnF/ozIf6iyN/939m08Of/Q8JphGrC3fNF1XM3J3SEb0MNerts8XrvXMOIiP+ X1FykSlmoLJS58MZVnHeHWo+E7yWMsnLXlW0rmC/jN4a3im5cClQggxPju5FXyVHxQqZ kRbLHKe++5tta0z1i2bRi/kv82xLYTnMaVQEgPtPGzhCdOOrJ0ns9ICrTTkcqjCJvJpN xuCxJedGde5dOye3ujeguXnv8sGHGXsV5mCRvEaVCpHdN+jGyvw1/IDpgcHnllcH1raY OKzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TvmCynmk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si544192edp.563.2021.08.16.17.39.37; Mon, 16 Aug 2021 17:40:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TvmCynmk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236554AbhHQAgo (ORCPT + 99 others); Mon, 16 Aug 2021 20:36:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:35464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235582AbhHQAg0 (ORCPT ); Mon, 16 Aug 2021 20:36:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 14C4860FDA; Tue, 17 Aug 2021 00:35:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629160553; bh=bshTLC1uJlE+pTmdql1NoWvc/HC9abF6H6tLLErjrck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TvmCynmk9JeAegWVi82S5u3OdndaKDEaSzmM7YJ+X1EVZIDenuqKwPz+nFiSTacks JznOXtSOqntMAA88q9OpljQ/Bo8+3+jfKtPx5BmUMlBSaM39FRYfJchVx9GYJfJRf3 O/oWSBTPv6pFV6ETQcD43z14HWLtD4MHo40cFksTn8JHV/bF1NIBvsPWw8dwmetiTk txbTXaRN0B7aLPPutQb8Ki0piJEEG6pSC5msOWdg6txp8tE4PFvUwOC1lAVRDQb17x B1jJRRmL836tUgzyeIiAcSfZt6ZjGArGPK7xz3dKxy0mMi4SjCFFWpwfMr455WkD2A IpjaEqOqpAHWw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mark Brown , Alexandre Belloni , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.13 12/12] net: mscc: Fix non-GPL export of regmap APIs Date: Mon, 16 Aug 2021 20:35:36 -0400 Message-Id: <20210817003536.83063-12-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210817003536.83063-1-sashal@kernel.org> References: <20210817003536.83063-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mark Brown [ Upstream commit 48c812e0327744b4965296f65c23fe2405692afc ] The ocelot driver makes use of regmap, wrapping it with driver specific operations that are thin wrappers around the core regmap APIs. These are exported with EXPORT_SYMBOL, dropping the _GPL from the core regmap exports which is frowned upon. Add _GPL suffixes to at least the APIs that are doing register I/O. Signed-off-by: Mark Brown Acked-by: Alexandre Belloni Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/mscc/ocelot_io.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/mscc/ocelot_io.c b/drivers/net/ethernet/mscc/ocelot_io.c index ea4e83410fe4..7390fa3980ec 100644 --- a/drivers/net/ethernet/mscc/ocelot_io.c +++ b/drivers/net/ethernet/mscc/ocelot_io.c @@ -21,7 +21,7 @@ u32 __ocelot_read_ix(struct ocelot *ocelot, u32 reg, u32 offset) ocelot->map[target][reg & REG_MASK] + offset, &val); return val; } -EXPORT_SYMBOL(__ocelot_read_ix); +EXPORT_SYMBOL_GPL(__ocelot_read_ix); void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset) { @@ -32,7 +32,7 @@ void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset) regmap_write(ocelot->targets[target], ocelot->map[target][reg & REG_MASK] + offset, val); } -EXPORT_SYMBOL(__ocelot_write_ix); +EXPORT_SYMBOL_GPL(__ocelot_write_ix); void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, u32 reg, u32 offset) @@ -45,7 +45,7 @@ void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, u32 reg, ocelot->map[target][reg & REG_MASK] + offset, mask, val); } -EXPORT_SYMBOL(__ocelot_rmw_ix); +EXPORT_SYMBOL_GPL(__ocelot_rmw_ix); u32 ocelot_port_readl(struct ocelot_port *port, u32 reg) { @@ -58,7 +58,7 @@ u32 ocelot_port_readl(struct ocelot_port *port, u32 reg) regmap_read(port->target, ocelot->map[target][reg & REG_MASK], &val); return val; } -EXPORT_SYMBOL(ocelot_port_readl); +EXPORT_SYMBOL_GPL(ocelot_port_readl); void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg) { @@ -69,7 +69,7 @@ void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg) regmap_write(port->target, ocelot->map[target][reg & REG_MASK], val); } -EXPORT_SYMBOL(ocelot_port_writel); +EXPORT_SYMBOL_GPL(ocelot_port_writel); void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask, u32 reg) { @@ -77,7 +77,7 @@ void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask, u32 reg) ocelot_port_writel(port, (cur & (~mask)) | val, reg); } -EXPORT_SYMBOL(ocelot_port_rmwl); +EXPORT_SYMBOL_GPL(ocelot_port_rmwl); u32 __ocelot_target_read_ix(struct ocelot *ocelot, enum ocelot_target target, u32 reg, u32 offset) @@ -128,7 +128,7 @@ int ocelot_regfields_init(struct ocelot *ocelot, return 0; } -EXPORT_SYMBOL(ocelot_regfields_init); +EXPORT_SYMBOL_GPL(ocelot_regfields_init); static struct regmap_config ocelot_regmap_config = { .reg_bits = 32, @@ -148,4 +148,4 @@ struct regmap *ocelot_regmap_init(struct ocelot *ocelot, struct resource *res) return devm_regmap_init_mmio(ocelot->dev, regs, &ocelot_regmap_config); } -EXPORT_SYMBOL(ocelot_regmap_init); +EXPORT_SYMBOL_GPL(ocelot_regmap_init); -- 2.30.2