Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp518329lqb; Wed, 29 May 2024 02:49:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWN7JoKJ3caPvgngy7JXWtKHlPu/whZFz3Zu0sbI34k7/veA1X7UEJPZFTNWyuUfMiiFeMRt6a/H6glr4ucjgp2n3XIcNX536HOC/UaDw== X-Google-Smtp-Source: AGHT+IHF87atDY617TWMt429U8/W/9eUjE1iJj4wPKU9srQ3pzG4zrX9sC2sxhVohMAF9MAN+ZLn X-Received: by 2002:a17:902:f682:b0:1f4:a008:29cd with SMTP id d9443c01a7336-1f4a0082e91mr76476775ad.55.1716976184264; Wed, 29 May 2024 02:49:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716976184; cv=pass; d=google.com; s=arc-20160816; b=vDBgd0uT8emnkh6tESHy58o+e+TWuW9AboktrmNXJotllVVg/78naopaNHZAkrBK3E cTmSWT/UnLQMGYrlYbC1zz3MB0E0olSyuRgUustlaWOyzO8QRGKVYH9ZTlNDLYWWmvWh r06VgV+9hl2uu11hoIihmZjUky6MIWS2V4psUozKHR9ofSX3viNHqFtogqpcEjXhRnpu DJIHG+22UCofzdxYvQEkEZe4LpuS3EXOe+ur2Q6Eqmz7SRwT1W85yTitU9jmUoRb9hz2 FV7rxw+yCtGLeVY5NjtteM3Fez7/yoR6GZYaYOFhIneQ45iGuz0WnD4z7iynwTjAg4fd 8Htg== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=4BleL75AB5PAbXHGO44lzPhzg2CmU3voSAtcq2Je4xg=; fh=YqAKsa/ljHfvj3jafH6Ki9FEYfx77Nm7az6/p1J37MM=; b=xlR7oN0tgorx7R5lmjNMo5wOJixHcqSWuklLATRrj9eQskOG8qjAFaGYpC9Jxeflh8 CITeM6UjJrhpTZqtc0Pb+TVYN3rYGS8XkQY1HMJ2Eoip0exUIwVUlbf+RwYDojpv6YkL V2sT4WN66PpyM8Y8+M9uYxPICFWRxnZNc4G07YVbLrCPD1tvaGtUYNvlkplSdl/bMJTH GeBfjhAG9N+8m22nn0N9YSI+lb351+k/Y7gu+SPBi67tuQ1esUB8YIrNfJRgN/aYBAlx GUr3PoTxL895TM0+dtXIWnLrn86Ie43V4aYCIj5txadNT9EmNMs6XiZALk9SV+4MIkaZ RCwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pu0r1WZ4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-193882-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193882-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c9bf03esi99208465ad.494.2024.05.29.02.49.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 02:49:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193882-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b=Pu0r1WZ4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-193882-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193882-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 6FA11285287 for ; Wed, 29 May 2024 09:49:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BE0316E89B; Wed, 29 May 2024 09:49:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Pu0r1WZ4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 90DD515FA8A for ; Wed, 29 May 2024 09:49:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716976141; cv=none; b=C2XhytqG9CJvZTD4aJ3SoaOjjHmBwGnCByqYf0t2ucur6eh+PaQzUEBRFx4FK/ehux5LehNxDWPVIyH45wSJuiKXcFIsDz67JWLLPfI+BHyEOkMqZPGBm1POh6VeRhNLwGuJA/iASxWf/zyiiTeh3ArnFUl9OsobVPtHlctSdCE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716976141; c=relaxed/simple; bh=8ujELDT4/VemDIoPdgqNcPZ20d2mihyif7bauGvChb4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Ysu0mrARdhFxZaoGiz2ak/jiURttuZrIUTl3OjojM9Srsyjmfyiuioon1zCxU3XMCTdqRD4P7aytPxxG61/Qz5Qmqj/Yatq0qzGwScKJnFixwZkPep4ye5b3WbtPuKd+u96ijWKKm6tzc5YUm8AdeDi3GkeYc4foMRrx7kHw1Rc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Pu0r1WZ4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F378C2BD10; Wed, 29 May 2024 09:48:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716976141; bh=8ujELDT4/VemDIoPdgqNcPZ20d2mihyif7bauGvChb4=; h=From:To:Cc:Subject:Date:From; b=Pu0r1WZ4Do3sEl6hi2unaAzAefPeO2N6ZGLfLyHPZ5IR5gM3X/CqxNQuIG6Pu0am8 EViy1WiZ4UFu16Cb7Ath9xrRne03lZByHFZmpb3Pg5XgjjR3KgqGIcy5p5MNtuEFG+ MdNqkvwSWH0k2UeH61WuBgUKDGN6bvN+huPHbKv9ZUg7uPPUXntcjVtjXzViOtbMdw 2y/c2lMV4lXD3jR7B2ArGCkq3QGxBYq108HOgGtXSbIQQHpzpfar92rClsjmMOeVcb 8StLn0mgvthQ/paouX03Dq+A160NZeLRlob+eVRZrIHxL9qv0GClCe0rtxivOrGn8o eHOGkge403M6A== From: Arnd Bergmann To: Lee Jones , Min Li Cc: Arnd Bergmann , Charles Keepax , Okan Sahin , Andy Shevchenko , linux-kernel@vger.kernel.org Subject: [PATCH] mfd: rsmu: split core code into separate module Date: Wed, 29 May 2024 11:48:47 +0200 Message-Id: <20240529094856.1869543-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann Linking a file into two modules can have unintended side-effects and produces a W=1 warning: scripts/Makefile.build:236: drivers/mfd/Makefile: rsmu_core.o is added to multiple modules: rsmu-i2c rsmu-spi Make this one a separate module instead. Fixes: a1867f85e06e ("mfd: Add Renesas Synchronization Management Unit (SMU) support") Signed-off-by: Arnd Bergmann --- drivers/mfd/Makefile | 6 ++---- drivers/mfd/rsmu_core.c | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile index c66f07edcd0e..db1ba39de3b5 100644 --- a/drivers/mfd/Makefile +++ b/drivers/mfd/Makefile @@ -280,7 +280,5 @@ obj-$(CONFIG_MFD_INTEL_M10_BMC_PMCI) += intel-m10-bmc-pmci.o obj-$(CONFIG_MFD_ATC260X) += atc260x-core.o obj-$(CONFIG_MFD_ATC260X_I2C) += atc260x-i2c.o -rsmu-i2c-objs := rsmu_core.o rsmu_i2c.o -rsmu-spi-objs := rsmu_core.o rsmu_spi.o -obj-$(CONFIG_MFD_RSMU_I2C) += rsmu-i2c.o -obj-$(CONFIG_MFD_RSMU_SPI) += rsmu-spi.o +obj-$(CONFIG_MFD_RSMU_I2C) += rsmu_i2c.o rsmu_core.o +obj-$(CONFIG_MFD_RSMU_SPI) += rsmu_spi.o rsmu_core.o diff --git a/drivers/mfd/rsmu_core.c b/drivers/mfd/rsmu_core.c index 29437fd0bd5b..fd04a6e5dfa3 100644 --- a/drivers/mfd/rsmu_core.c +++ b/drivers/mfd/rsmu_core.c @@ -78,11 +78,13 @@ int rsmu_core_init(struct rsmu_ddata *rsmu) return ret; } +EXPORT_SYMBOL_GPL(rsmu_core_init); void rsmu_core_exit(struct rsmu_ddata *rsmu) { mutex_destroy(&rsmu->lock); } +EXPORT_SYMBOL_GPL(rsmu_core_exit); MODULE_DESCRIPTION("Renesas SMU core driver"); MODULE_LICENSE("GPL"); -- 2.39.2