Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp915679pxb; Fri, 22 Apr 2022 14:12:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWEOw8y2tB4Xx2PGa1oncH2SUWIfjHxZpjxntHRuDXEHHsGSo1Vfx8kz4hrw6f4ujwIPxh X-Received: by 2002:a17:902:cf05:b0:156:2aa:6e13 with SMTP id i5-20020a170902cf0500b0015602aa6e13mr6484365plg.137.1650661953249; Fri, 22 Apr 2022 14:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650661953; cv=none; d=google.com; s=arc-20160816; b=R1SZqqmur/QW1UYzhmDC5zDT0CfC5orrVa2/SuhRrigkdadgtizIzYWky/ouJLheWS 8jv7X5ZPKrw5mwHyEYRfGXPARMYAmFraxMMDw8PHd5PELOnkscQ4Jl/cF8pCKAeFNnlT PoQaRl4fAnfh6zudEY0DxcsMBbRsNS4cOlNyk/Dw/hlV/X+FrpuXr+Dhc+MUSplPM1rs bG49Rpp57H+WnNiglP43jqHqTY8v3m7nRWCXCPX/+tr5znoWKcMlkbJLXkHQB/finwmA U9hxO+6OVnhgz4wVjhfIPQWK7cYkNQRuBfnJ0UTDCf/lHoTEZlwxRLeq5UjgEAUNOpVT tXAg== 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:dkim-signature; bh=bZqNTsTGUjNsjOXWwSBxVwhockoLbVfQoEn634ED5Z4=; b=tW6OptvU5IjTuknO6ei9+2Nq3ZSPpJPiqEv3Hoh52e+mDvpK3lYiIt+W3Ob4wJQL+3 ExJXZ+rDz4kyGbDAUA5gdMMWRl0i2e2LqQLMVWLu1jG/zzMq+GbE5M+jtqxoC18QqlSM onzasxhL0L6Qk33Zsg6+COxgP9Ezkye71hzcF+77y0IIEV1CCWrisXFsbsv33GWs3kMe mn5vttif88xzcJ5PS9sEwPl5gFoLGIV1KzcRT8Ea4P4om4U16yRjDmUTAGkQj5bdvSsw fxHHq+pp7PkCx7r0erE0W1/7YiT0/QJ/ruA1gnIheoOVkk994KnMj0EHzbN0QEBh1iDJ GAWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=0FxNZL5H; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m21-20020a056a00081500b004faa67abb7fsi8925936pfk.46.2022.04.22.14.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:12:33 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=0FxNZL5H; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E5D041B12C5; Fri, 22 Apr 2022 13:13:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388306AbiDUKUe (ORCPT + 99 others); Thu, 21 Apr 2022 06:20:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384007AbiDUKUD (ORCPT ); Thu, 21 Apr 2022 06:20:03 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3247922509; Thu, 21 Apr 2022 03:17:12 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id DB341215FF; Thu, 21 Apr 2022 10:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1650536230; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bZqNTsTGUjNsjOXWwSBxVwhockoLbVfQoEn634ED5Z4=; b=0FxNZL5HhLq9tCrMGkbDDpDmY5GzJfFz0qrUZ4akBWbLbPo2pNQGXzSoEN1ZhGl3SLHckM o+ZEHzkPmqoNeoS6SNq/yC+AfoxCwEUYe9VukE4Aw9deYqDJAyMy9DfsXuP9HdWX27Cqru mS2u5VkzJavky7cG1qZMS+WGaldKu6g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1650536230; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bZqNTsTGUjNsjOXWwSBxVwhockoLbVfQoEn634ED5Z4=; b=WfF9pVinNH+uQGqZJH0uMmZgCduz+cxDRNNYpnmHVHzoAfBvgcBaF1DocVcYe0Jsh8b124 m5aPxEBUCrsautCw== Received: from localhost.localdomain (unknown [10.100.208.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id B21E92C142; Thu, 21 Apr 2022 10:17:10 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 6/7] serial: pic32: make SERIAL_PIC32_CONSOLE depend on SERIAL_PIC32=y Date: Thu, 21 Apr 2022 12:17:07 +0200 Message-Id: <20220421101708.5640-7-jslaby@suse.cz> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220421101708.5640-1-jslaby@suse.cz> References: <20220421101708.5640-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 pic32_uart contains this: #ifdef CONFIG_SERIAL_PIC32_CONSOLE ... console_initcall(pic32_console_init); ... core_initcall(pic32_late_console_init); ... #endif ... arch_initcall(pic32_uart_init); When the driver is built as module, all three above become module_init(). So if SERIAL_PIC32_CONSOLE is set while SERIAL_PIC32=m, it results in the following build error: In file included from include/linux/device/driver.h:21, from include/linux/device.h:32, from include/linux/platform_device.h:13, from drivers/tty/serial/pic32_uart.c:12: include/linux/module.h:131:49: error: redefinition of '__inittest' So make sure SERIAL_PIC32_CONSOLE can be set only when SERIAL_PIC32=y -- similar as for other drivers. Signed-off-by: Jiri Slaby --- drivers/tty/serial/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index dbac90e2e209..20cb103972fa 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -817,7 +817,7 @@ config SERIAL_PIC32 config SERIAL_PIC32_CONSOLE bool "PIC32 serial console support" - depends on SERIAL_PIC32 + depends on SERIAL_PIC32=y select SERIAL_CORE_CONSOLE help If you have a PIC32, this driver supports the putting a console on one -- 2.36.0