Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp70548iob; Mon, 2 May 2022 13:20:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGxq5wP3Gn0TPaW6Nr+a8kLMQVxzQQnOpoMf8bvayp1Dyd20652D4kYgKIbZAZZPRq6uzS X-Received: by 2002:aa7:88c3:0:b0:50d:d02c:2fd with SMTP id k3-20020aa788c3000000b0050dd02c02fdmr11379178pff.41.1651522852075; Mon, 02 May 2022 13:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651522852; cv=none; d=google.com; s=arc-20160816; b=jZcNMaSjGHRfjefNwk78dL7gtrtMzor0tkN1v2ywA5dmxA7OCgbOwXg2gF/Bu8nJZF yfgY+YFe4Re8gsKC6Uk/857rYy6Zq5HlOJE+GWKzkYm/aHpHHkzeHvhqCB85IKjqgVXO BO95NO+dzPwpiqRR70jEeOviuc2F7VrYNmlkFiLK5FrjsQXM1PfLDckrKHmiksUWC4C5 pzh/BB3UeAlp5OCiYLvsJ5RjgP5SO4NRVZvCqUEDLQ0sVvPMtTThSEFWu/8xkvqfxPTR mrxnl4g7nAYP/xscfrzNFUuhGv0qd1twmJf3xnK77iiBmJxn3pk998MWzmfIY20zqJW0 fOtg== 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=O2RMGZNUZqyvyDp2Dtpnryg5WAFpwHOaXeavtEJ+h04=; b=PVcneEUZQfPcdhnkqLbQwhRR1FICnwhU/UzAzNnyi/Rjz3+eKaU4DXhSKQvXEUOhUi UftqoNbFSZOe3rWa5KFEUF+SEJLfSaI+45CA3TDxqicUfXUsf32c0k0iZLR+rWjcrYMj fBkm2Pkmtd0BG3TlhtywKDVBNPjJnve6VULSFaMcibyEbSomb8Z2tX3n/Hgont4eu+vk OlBoc3YOLqusD0E2PFeUO5Gu65BRxcTf4fPR63hmF/jt0yVqJCSVyIo/eVWCbyen0WU5 YlrsB3xSKX02zdr/3vSnQYawFhOV2c5YrteAAvxCaEE5Oh7QYcMnUfkT83hSzvSHtUSp zZ7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=s0Qzb8zl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m14-20020a63710e000000b003ab22453625si15302495pgc.746.2022.05.02.13.20.36; Mon, 02 May 2022 13:20:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=s0Qzb8zl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234496AbiD2N6Z (ORCPT + 99 others); Fri, 29 Apr 2022 09:58:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376750AbiD2N4o (ORCPT ); Fri, 29 Apr 2022 09:56:44 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1278ECE651; Fri, 29 Apr 2022 06:51:55 -0700 (PDT) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23TDhQMD012029; Fri, 29 Apr 2022 13:51:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=O2RMGZNUZqyvyDp2Dtpnryg5WAFpwHOaXeavtEJ+h04=; b=s0Qzb8zlJ+unjYl3hvLwL8TBCcK2uW9JbutcGelgOU4wDLfz4XrGjKKrCFmo0QEe/zqT uo4FDTcZPEgOegr9tUWxCGBmZ8Khlr6wOrluMVeNKDjl+UT5HYqaz1QIvZCKX7m4TnkD BgcazWjvCUmq/ZXiS2+Dv9SCu+rdzCLNgUfTQqLyPh+Bi4n5MPZWPHpdMpFdPh5Wd7Sv depOuiRyhFhiWCt4RkT99Ho/mogoSSeA6ZBHuY7Ox3WvyR5sP++qvcyfgso6CPclOCZB rnj/Y3n+NIbl5GvhP9d5J3J4YAhgV04u8UoQLcSqQMyw6sfTSPP0/j3zLcv9Ka2IlkWk lw== Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3frh5eg4dw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 13:51:41 +0000 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 23TDTh2I014592; Fri, 29 Apr 2022 13:51:38 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma03fra.de.ibm.com with ESMTP id 3fm938yatg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 13:51:38 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 23TDpaWB56230262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Apr 2022 13:51:36 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 426B54C044; Fri, 29 Apr 2022 13:51:36 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E1CD54C04A; Fri, 29 Apr 2022 13:51:35 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 29 Apr 2022 13:51:35 +0000 (GMT) From: Niklas Schnelle To: Arnd Bergmann Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org (open list:REAL TIME CLOCK (RTC) SUBSYSTEM) Subject: [PATCH 26/37] rtc: add HAS_IOPORT dependencies Date: Fri, 29 Apr 2022 15:50:44 +0200 Message-Id: <20220429135108.2781579-47-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220429135108.2781579-1-schnelle@linux.ibm.com> References: <20220429135108.2781579-1-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: sufO2cl6kmA4PyTVf1grFYGA0oJ1AEbs X-Proofpoint-ORIG-GUID: sufO2cl6kmA4PyTVf1grFYGA0oJ1AEbs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-29_06,2022-04-28_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 phishscore=0 mlxlogscore=574 clxscore=1011 impostorscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204290078 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 In a future patch HAS_IOPORT=n will result in inb()/outb() and friends not being declared. We thus need to add HAS_IOPORT as dependency for those drivers using them. Co-developed-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/rtc/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 41c65b4d2baf..e1bb11a225b2 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -951,6 +951,7 @@ comment "Platform RTC drivers" config RTC_DRV_CMOS tristate "PC-style 'CMOS'" depends on X86 || ARM || PPC || MIPS || SPARC64 + depends on HAS_IOPORT default y if X86 select RTC_MC146818_LIB help @@ -971,6 +972,7 @@ config RTC_DRV_CMOS config RTC_DRV_ALPHA bool "Alpha PC-style CMOS" depends on ALPHA + depends on HAS_IOPORT select RTC_MC146818_LIB default y help @@ -1188,7 +1190,7 @@ config RTC_DRV_MSM6242 config RTC_DRV_BQ4802 tristate "TI BQ4802" - depends on HAS_IOMEM + depends on HAS_IOMEM && HAS_IOPORT help If you say Y here you will get support for the TI BQ4802 RTC chip. -- 2.32.0