Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2169046iof; Tue, 7 Jun 2022 22:02:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzumYC+HNsVi3wC5J1qegN5ib7XXlXYRtN0icQdU6RTDfdU/5SgqOYMrD3vEjcMir0au3Cr X-Received: by 2002:a05:6a00:170b:b0:51b:d1fd:5335 with SMTP id h11-20020a056a00170b00b0051bd1fd5335mr29096635pfc.28.1654664550924; Tue, 07 Jun 2022 22:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654664550; cv=none; d=google.com; s=arc-20160816; b=f3eFVe4t1AcRk7G1E9+VgEhUuFjegfEQikGxpaQ3iu+Gh6Q1esexrmxh7OgziFHAwG 085Q0MT7wIkv4XWALRokFs1kok7+HwccaXJm/Ioc0td9hsAK8cJD6giP5hxOBBDeYuLF jUu2R7kQUrRj8Auvgrwxi+NHl4jWhZgMdYme5GOTw9ids3wnC/gphRPSdc/tMFaTmgma 6+25GhZ3yHwq4CRGlQrBpSh6GT+++KkYvjQ7tPorfCITOopUHVktZSrtl7c87WQ2+FAR 555KoWVPYF8L1RdqYODbY496K0flm+a1LVxa8bEALbMALO6OZ5VbpSAcPK4+6bqMArgr ZG7g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9ir/BJ9ewXuoV7Qbl0Omghw+x5tGU9RmiiIQAr3xHVc=; b=iZ3bJ7rrMitkJ4p/12sS/J75i8QCYDhEIfagtwqU8vkUZ9r76UOqWXAgj8qHyU7K8p neTon5yNfhDSJEE/QIVYFIiGUllVi351BKtb+n2jeXY/BXkkB5ox0jSW72tvxMImNRNi QhAxaXpjQ/1741bcsy2vPNbCpjJfdDHoYQ9ZmDcOxv+oiXwGhSd2LGzOWHflZJy2v2p9 KAckR25Fo7yznvgYLtqyWajgN1uKQUYJOiJ/c4GX2hhJm76twsByjb5xb5xd06GmLgnb V2dJ9609lFi3+dm9O34/fkcueFUFRkeDZ/yrkPh2PcOmjVF3t+SYUY1KbLtBfiFhhWAP Z+aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NJI8BHwT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l7-20020a17090270c700b00153b2d16543si24013797plt.331.2022.06.07.22.02.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:02:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NJI8BHwT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 38D8245A9EE; Tue, 7 Jun 2022 21:30:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242318AbiFGRyP (ORCPT + 99 others); Tue, 7 Jun 2022 13:54:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348332AbiFGRgN (ORCPT ); Tue, 7 Jun 2022 13:36:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B9BF5F27C; Tue, 7 Jun 2022 10:32:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BD0C3B82185; Tue, 7 Jun 2022 17:32:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11F00C385A5; Tue, 7 Jun 2022 17:32:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654623147; bh=b2xI1vAuWumL9Pl1KLY/AKMQ4JmYs0MYUQwUJwyOSvA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NJI8BHwTNBQ6IhCGWPOZXFDs3NQ6n8sSQ0cvZrfEQkkZg02FHkiesAxv88/S4OmhW RKhwzOE0xJF+dNa3Vl3d056UdrhYkW6Pnm6/3uX7LJ9U1hIhlxBR9K6XpFzB/6OF2q nPl0VMQfRdzwqO6Zre/vqxEBn65zHsfWDXANH/+E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Christophe Leroy , Randy Dunlap , Arnd Bergmann , Michael Ellerman , Sasha Levin Subject: [PATCH 5.10 312/452] macintosh: via-pmu and via-cuda need RTC_LIB Date: Tue, 7 Jun 2022 19:02:49 +0200 Message-Id: <20220607164917.858473363@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Randy Dunlap [ Upstream commit 9a9c5ff5fff87eb1a43db0d899473554e408fd7b ] Fix build when RTC_LIB is not set/enabled. Eliminates these build errors: m68k-linux-ld: drivers/macintosh/via-pmu.o: in function `pmu_set_rtc_time': drivers/macintosh/via-pmu.c:1769: undefined reference to `rtc_tm_to_time64' m68k-linux-ld: drivers/macintosh/via-cuda.o: in function `cuda_set_rtc_time': drivers/macintosh/via-cuda.c:797: undefined reference to `rtc_tm_to_time64' Fixes: 0792a2c8e0bb ("macintosh: Use common code to access RTC") Reported-by: kernel test robot Suggested-by: Christophe Leroy Signed-off-by: Randy Dunlap Acked-by: Arnd Bergmann Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220410161035.592-1-rdunlap@infradead.org Signed-off-by: Sasha Levin --- drivers/macintosh/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/macintosh/Kconfig b/drivers/macintosh/Kconfig index 3942db15a2b8..539a2ed4e13d 100644 --- a/drivers/macintosh/Kconfig +++ b/drivers/macintosh/Kconfig @@ -44,6 +44,7 @@ config ADB_IOP config ADB_CUDA bool "Support for Cuda/Egret based Macs and PowerMacs" depends on (ADB || PPC_PMAC) && !PPC_PMAC64 + select RTC_LIB help This provides support for Cuda/Egret based Macintosh and Power Macintosh systems. This includes most m68k based Macs, @@ -57,6 +58,7 @@ config ADB_CUDA config ADB_PMU bool "Support for PMU based PowerMacs and PowerBooks" depends on PPC_PMAC || MAC + select RTC_LIB help On PowerBooks, iBooks, and recent iMacs and Power Macintoshes, the PMU is an embedded microprocessor whose primary function is to -- 2.35.1