From patchwork Thu Feb 8 16:58:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 198547 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp416795dyd; Thu, 8 Feb 2024 11:57:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVQsj4H1R8v75DlDnYYl8RxyVVU60ZfIb3bIXnfY20h7e3cHNe8bV0IOHbN2fr5KC5lSp8GACI195iFx9XvcZurbw9Tew== X-Google-Smtp-Source: AGHT+IHCmpXLxrvikZLs5cpcb6x1bYWUqPjKE4X+FSeOUbvmLzP+dUDxhR6cnv6SE6iYe2C+xIN9 X-Received: by 2002:a05:6358:93a8:b0:176:cf6d:20a6 with SMTP id h40-20020a05635893a800b00176cf6d20a6mr169101rwb.19.1707422243992; Thu, 08 Feb 2024 11:57:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707422243; cv=pass; d=google.com; s=arc-20160816; b=jURSd8Axm7n6v3mpPoZ3kQS/PZi8ZCH74ZGJ4KsqW1nnidoURY5xVoED8H1CFxbVCX 5uRWHUnTzov9wCZxaQPQFcboSLqFFKiDmzOh+CKk/QRAB0lEp6yjy1aBHESsO4c7UyW0 ytHo9IS8yM4orwIjv9nkuuFl6q0KeCqQVVR1hwcA21K0NtQ/uQPL+BZZRCFsIid2gL7K iVyIalSMaEcIcAije0PRnOIKtBQfkwt3KvIfjjkf56J82SoSfSoq8t//wbVj65f5uY+z PebI3WR9ZS6Z8k0YEF5AujqVGvBS5zXftlWS7FHfFJko9YeIcAUZaAH9ub1tAsHAAXtr PwvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Im8sxIYdnsOh/O09iVixyjYqCb+RPsBx8cBLwd5LxZg=; fh=dsL2PYFGtXCb/cShPpQ/H3LdMhDeOCjbRBf6T3rigjo=; b=vnuPxW32hNurSqXHSqOR82FcX5HZQOBnU2/cOKzCveKQbj18Fh5W029OBFgTMlAwJi uk3+zll0DKyPd9bYlBAshFcjdmsmc0fOrQVFGRfqvV5/Wx8C/ImZOsul61+r3nwKyMYj MkwXOjGOmP8PXIcV/kmzHI6r+35ayk8eBjBGX+f8lWd6CS/b7YIcGzhkvJbb49mgGFSd o3m6e/vmkQNEu5LNcjpPalEHBNwGlVc7hAPdtWLTyIzm8XBkYIovpjj8QyrM+Ovia9tW klyu1gxFOyYLXW02/a1s9b02NKUtX0nsrcNf+j8S067Y2FM58rQutTjVINijWGe1RqlZ aIUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Jiu7mqAZ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58442-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58442-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCV2lVKSPaxs9c+wmlqVK+DFYL/WTg06NRXCbZiKc7FZwXvFf3Dg2voYZ6l+8tTsxwdtTGUw/0l3Qekh+yguy0AqGNj3Og== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a28-20020a637f1c000000b005d988899a3asi339824pgd.176.2024.02.08.11.57.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 11:57:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58442-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Jiu7mqAZ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58442-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58442-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4392B28E7E2 for ; Thu, 8 Feb 2024 17:20:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A7F8129A7B; Thu, 8 Feb 2024 17:17:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Jiu7mqAZ" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7034781AAA; Thu, 8 Feb 2024 17:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707412659; cv=none; b=JUEgTD8oZZ4WtURLr0lcldAJDzZ/e6alT8M2MmnN8FjZt5p8zkD78itUOjglCzSxS+DivC+yY2/UI7pmHQQCORaqOoIEwsMem78i3AYF2tttta2xjUN21SxOTdFDYtF4ZZefrby5mgw6pdjcFs9OeDiUENPhScBZEpSkF4nMKzU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707412659; c=relaxed/simple; bh=CF1pX065yGAbwnIQLmXi74KKJnRft9elRt9o2Olm5iY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sBadysBbwNUz8DELFtDL/En/fr/wAvR/FWwqAbmdb6WVicSCAPtJFAA0Pqgyuc/AQW3xp54jpakGzSMNfxdOQPGsCbcxZKOzNHEwCnMiO7Yrk1GmmGP7gSym288KpQa/lr2mNY+QoKksxBcabh8cYygA4PAWL2dB/a6ixJBSirg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Jiu7mqAZ; arc=none smtp.client-ip=192.198.163.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707412657; x=1738948657; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CF1pX065yGAbwnIQLmXi74KKJnRft9elRt9o2Olm5iY=; b=Jiu7mqAZLe5Mlq1X1gYTOo8SDIih0dE85t29c5zpp9XQB94OKyImN29m b48X9cEOyTWlcqRPh5WcDLF095o4SauRY8+I+Rcq2+YI75fQ6ZMeMtkA8 Taze+ZAcP2U7NAsoD4z23zhoyEKPnYySxB0PD+JBhWntly/Z3Xj1VravH eX1JfaM99OlmLM666vRff+NJQylCh/GRua7z2aFK0A48BpZPF112m9pua CPImNcof7pA2FDqOhC1VbU3QinNdobJlBFKlpITVxqhOv5J9yPZBBPvdt m4VRf1L/dqe3PCKuLncQB+21OyTQExeSDZXSmiDAemi4uD3lGTuhSJ433 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10978"; a="1565699" X-IronPort-AV: E=Sophos;i="6.05,254,1701158400"; d="scan'208";a="1565699" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 09:17:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10978"; a="934195385" X-IronPort-AV: E=Sophos;i="6.05,254,1701158400"; d="scan'208";a="934195385" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 08 Feb 2024 09:17:32 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 496DA144A; Thu, 8 Feb 2024 18:59:41 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Miguel Ojeda , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robin van der Gracht , Paul Burton , Geert Uytterhoeven Subject: [PATCH v1 06/15] auxdisplay: linedisp: Move exported symbols to a namespace Date: Thu, 8 Feb 2024 18:58:49 +0200 Message-ID: <20240208165937.2221193-7-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240208165937.2221193-1-andriy.shevchenko@linux.intel.com> References: <20240208165937.2221193-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790361986909238881 X-GMAIL-MSGID: 1790361986909238881 Avoid unnecessary pollution of the global symbol namespace by moving library functions in to a specific namespace and import that into the drivers that make use of the functions. For more info: https://lwn.net/Articles/760045/ Signed-off-by: Andy Shevchenko --- drivers/auxdisplay/ht16k33.c | 1 + drivers/auxdisplay/img-ascii-lcd.c | 1 + drivers/auxdisplay/line-display.c | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c index a90430b7d07b..c6a42c5c128f 100644 --- a/drivers/auxdisplay/ht16k33.c +++ b/drivers/auxdisplay/ht16k33.c @@ -831,4 +831,5 @@ module_i2c_driver(ht16k33_driver); MODULE_DESCRIPTION("Holtek HT16K33 driver"); MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS(LINEDISP); MODULE_AUTHOR("Robin van der Gracht "); diff --git a/drivers/auxdisplay/img-ascii-lcd.c b/drivers/auxdisplay/img-ascii-lcd.c index 09014ada38bd..c571e54d9eb5 100644 --- a/drivers/auxdisplay/img-ascii-lcd.c +++ b/drivers/auxdisplay/img-ascii-lcd.c @@ -298,3 +298,4 @@ module_platform_driver(img_ascii_lcd_driver); MODULE_DESCRIPTION("Imagination Technologies ASCII LCD Display"); MODULE_AUTHOR("Paul Burton "); MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS(LINEDISP); diff --git a/drivers/auxdisplay/line-display.c b/drivers/auxdisplay/line-display.c index 6b3d25e20eeb..851b2c0f9443 100644 --- a/drivers/auxdisplay/line-display.c +++ b/drivers/auxdisplay/line-display.c @@ -263,7 +263,7 @@ int linedisp_register(struct linedisp *linedisp, struct device *parent, put_device(&linedisp->dev); return err; } -EXPORT_SYMBOL_GPL(linedisp_register); +EXPORT_SYMBOL_NS_GPL(linedisp_register, LINEDISP); /** * linedisp_unregister - unregister a character line display @@ -276,6 +276,6 @@ void linedisp_unregister(struct linedisp *linedisp) del_timer_sync(&linedisp->timer); put_device(&linedisp->dev); } -EXPORT_SYMBOL_GPL(linedisp_unregister); +EXPORT_SYMBOL_NS_GPL(linedisp_unregister, LINEDISP); MODULE_LICENSE("GPL");