Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2511131rwd; Fri, 19 May 2023 06:46:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7EMMt+GJXSMmLlNg9gdMD/sRrbxJrR2X5uNGuJ040Se7bgKVpfWFt5Kb5l9YosH3reul1j X-Received: by 2002:a17:90b:3d6:b0:24f:13ec:ecac with SMTP id go22-20020a17090b03d600b0024f13ececacmr2247712pjb.26.1684503984942; Fri, 19 May 2023 06:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684503984; cv=none; d=google.com; s=arc-20160816; b=wwEMAfA+PGwpZ7vUQ5lFKPxKUICIS4NO3NEsIZ3Qn1/9Xi67azJi8kWX+RSqbJmKrW Ek++W0BemK+RN57Ef3so89/zCMKogftpawcav2n0EGoOIc4bL2Xsjng5ywGN6OhyKLiA fHlvpqA9wOozJOQhfPLMM71jVvlXfqenZyjaStGCpTVA+5ku6v5CL8hEMi/+7Oowoo7o FEDy3K8r1/ST0BAI8vnmc9fcw3Hs9IM5vBsaxql7EI3pUzhUGAgIiZFHMnL81lnKSCA7 vhO51DMMvuTz4BpJxLMT3m12KRzhp3pDC73k6LG668Dv/dceEgk7ZNeV843CVUVvOrQM h3jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=PQZV6WbfIzLwO7RQAeytOdXrS1u3pDh3o9MWQx8ku1U=; b=suxnkkUrF/OGwA/iW200fn4hyC8uhYnrPH7W07zXpu+qZrGIYQ1M/4gYr510kTtq71 OHsyfJAs3nc1L5AVwb7Kut9G8pEhBAGS1jgasNK2HRVqWpXnxZKpCQJeQBiLSVMrVlLC zK8YqEBC93Yg2p23dSv19ItKOTwR/5FX2OCrCdnViDrsd+TMHbzuvdF2kvYZD78P2kv+ RCLbBMUKej6zDqp6OxK84BJbkzmbforc187KbBxP69EvNCbok4IhQ7F5XMRF6hRewPEE tBtWBVTkAbp5J3ohoWzfZCpO677Ybye2OVLtPRB5kmMCcB6dUISn1zkADOsUPC7LergE jhfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=gA9Rfn03; 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=REJECT 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 v71-20020a63894a000000b0053021b58db5si3715932pgd.446.2023.05.19.06.46.09; Fri, 19 May 2023 06:46:24 -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=gA9Rfn03; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231790AbjESNky (ORCPT + 99 others); Fri, 19 May 2023 09:40:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229749AbjESNkw (ORCPT ); Fri, 19 May 2023 09:40:52 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C751EE73; Fri, 19 May 2023 06:40:28 -0700 (PDT) Received: from pps.filterd (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34JDWiNT007742; Fri, 19 May 2023 13:40:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=pp1; bh=PQZV6WbfIzLwO7RQAeytOdXrS1u3pDh3o9MWQx8ku1U=; b=gA9Rfn03DA8yBJ33AIed+LeDuIzFzPVVv9r8kUyE6KaadebmvfsHXYzXVPnOMDUmeEOK pwIqZWGlXE/MaOMZHSC46aKoMemb4BMUU6xvEG5c5EJT47fsFVgJrUYDQWbrcCoZkl+j 1MiQaNeWM/pkhatxze96qF2osm9QhR37SK+KXn2YqL+qe90sKy+7LXYQINDbWTi+8bKr 3NQ8Dvujbfg41qmlrZ9svjbfwB/+AkjzR1vgbfMxxYGzJgFXqtLbOjM2Om07NE8gKdo7 W/EOWHJgutTvqWZqUG5bwXyhsjNXsjEVBuYFz0z48dupc9eZgebLnMv3BMzZl8HUM3QE Ag== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qp9tm8v08-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 13:40:15 +0000 Received: from m0353724.ppops.net (m0353724.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34JDExb2007307; Fri, 19 May 2023 13:40:14 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qp9tm8ucr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 13:40:13 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 34JCaGmr001696; Fri, 19 May 2023 13:40:00 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma04ams.nl.ibm.com (PPS) with ESMTPS id 3qj264u6kb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 13:40:00 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 34JDdwRE56623362 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 May 2023 13:39:58 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5D36A20043; Fri, 19 May 2023 13:39:58 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 77DBF20040; Fri, 19 May 2023 13:39:57 +0000 (GMT) Received: from [9.171.0.172] (unknown [9.171.0.172]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 19 May 2023 13:39:57 +0000 (GMT) Message-ID: Subject: Re: [PATCH v4 05/41] counter: add HAS_IOPORT dependencies From: Niklas Schnelle To: William Breathitt Gray Cc: Arnd Bergmann , Greg Kroah-Hartman , Bjorn Helgaas , Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , Mauro Carvalho Chehab , Alan Stern , "Rafael J. Wysocki" , Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , linux-iio@vger.kernel.org Date: Fri, 19 May 2023 15:39:57 +0200 In-Reply-To: <231dcebc57c2e43ba65d007b60d3d446d9ed71c8.camel@linux.ibm.com> References: <20230516110038.2413224-1-schnelle@linux.ibm.com> <20230516110038.2413224-6-schnelle@linux.ibm.com> <6f4d672ba7136f2b01ea9ee69687b16168eddb8d.camel@linux.ibm.com> <231dcebc57c2e43ba65d007b60d3d446d9ed71c8.camel@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1 (3.48.1-1.fc38) MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: j8msTN56Z494fexI_vO3fR9R23Kldjpb X-Proofpoint-GUID: McC3meHO21U0BBl93HgOh0g2SsyrdTsg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-19_09,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 impostorscore=0 phishscore=0 adultscore=0 malwarescore=0 spamscore=0 clxscore=1015 bulkscore=0 mlxscore=0 mlxlogscore=744 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305190114 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Fri, 2023-05-19 at 15:38 +0200, Niklas Schnelle wrote: > On Fri, 2023-05-19 at 15:17 +0200, Niklas Schnelle wrote: > > On Thu, 2023-05-18 at 21:26 -0400, William Breathitt Gray wrote: > > > On Tue, May 16, 2023 at 01:00:01PM +0200, Niklas Schnelle wrote: > > > > In a future patch HAS_IOPORT=3Dn will result in inb()/outb() and fr= iends > > > > not being declared. We thus need to add HAS_IOPORT as dependency fo= r > > > > those drivers using them. > > > >=20 > > > > Co-developed-by: Arnd Bergmann > > > > Signed-off-by: Arnd Bergmann > > > > Signed-off-by: Niklas Schnelle > > >=20 > > > Hi Niklas, > > >=20 > > > The change itself is fine, but please update the description to refle= ct > > > that this is adding a depends on HAS_IOPORT_MAP rather than HAS_IOPOR= T, > > > along with the reason why it's needed (i.e. devm_ioport_map() is used= ). > > >=20 > > > Thanks, > > >=20 > > > William Breathitt Gray > > >=20 > > >=20 > >=20 > > Right, this clearly needs adjustment. I went with the following commit > > message for v5: > >=20 > > "counter: add HAS_IOPORT_MAP dependency > >=20 > > The 104_QUAD_8 counter driver uses devm_ioport_map() without depending > > on HAS_IOPORT_MAP. This causes compilation to fail on platforms such as > > s390 which do not support I/O port mapping. Add the missing > > HAS_IOPORT_MAP dependency to fix this." > >=20 >=20 > Just noticed this isn't entirely correct. As devm_ioport_map() has an > empty stub for HAS_IOPORT_MAP=3Dn this doesn't lead to a compile error it > just doesn't work. Will reword to "This causes the driver to not be > useable on platforms ..." s/useable/usable/