Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2314882rwr; Sat, 6 May 2023 08:32:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kqQklhixFfpWapVHgPUK90Pf4TmEleDeZIU5yZvFTnjrK3URi0yYwVt/AxX79d5oZgO0s X-Received: by 2002:a17:902:9897:b0:1ab:253e:6906 with SMTP id s23-20020a170902989700b001ab253e6906mr4530865plp.67.1683387168863; Sat, 06 May 2023 08:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683387168; cv=none; d=google.com; s=arc-20160816; b=GRPTpwZEl7cyZ+TipOqq31lt6DBTAsHERn5bmmZRuMXilXkYdTQoDgIYXTrQJVvMuu nGGUp8YaSxqzU0PcE9ylgiO2LIZJaJSzLn74ROSbpomdai8O/bSN+q3Np2YqcbLH2ZMx zZ8MehBYSC1oTFEnvdrfINmNptNSnmFq1hg+10Ck9jELICrig8ufKzcIuH7yM929dik1 NP2N+BBGaZbVMy0NY5hauwXgtPw/ViFQrs040EZ2FWu47NyU9z2hJ+y29De9uy9Dj2OQ bUnQi9+YXOKy5aWo01KmRnSbbHqU3hmR+9sVePabMBeXuuTG00XaIJQxdmQ0FJFr9fYd WUYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ZNkRsBy8jmIVOhIRX+lWXHSIur+vpg4Wn3ELaF1i2/0=; b=VrbLZUdjlgJPtnc6xslPliO7mfso5zwJouoK/gYw1Anazc7vnzY5ITr1opzrnNAiQu UNqiKAxErz/K/Duwh9tMCWTZDf52SLmO7CHHXah2UTL0x8fPskU32nb9dOzrG32S15VC z1L8HPhY7rGLntLaaRiB9GFzqSz+Ef8wUTyilLmeZb5DTC1vGGKsdPMDoAgQhciSaatl 6Qta0sKp9x2jwjyxiNcTZ+iQw7/NMdpw+KbVwPN2g0OE/uvq890hTwKWFi3zoologERr nd/FXPbhdNG7hBDad/2SeyBn42U0jjALXaDQFbjKof/lRmJh7R6DbSXd5NPBbI3MUdGH 6gNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZmdzqLS7; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a170902ecce00b00199200945a3si2778704plh.74.2023.05.06.08.32.16; Sat, 06 May 2023 08:32:48 -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=@linaro.org header.s=google header.b=ZmdzqLS7; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232441AbjEFPAT (ORCPT + 99 others); Sat, 6 May 2023 11:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231830AbjEFPAS (ORCPT ); Sat, 6 May 2023 11:00:18 -0400 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B6231F49E for ; Sat, 6 May 2023 08:00:14 -0700 (PDT) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-55a44a2637bso43198057b3.2 for ; Sat, 06 May 2023 08:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683385213; x=1685977213; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ZNkRsBy8jmIVOhIRX+lWXHSIur+vpg4Wn3ELaF1i2/0=; b=ZmdzqLS7xSvYD2Tbhfh/xD6/b0N0VaYrB7D3bpjpM36biGof/ncmLOhzLWoIRM4cxF rMZuyK/868Q8/3/uztmdNnPJk14WbMEzNvGdrov5+03ZViNqoXppPMxy9vrvL9j84D7g GSuNPVcmceAtcQ9+Uzt80t8DcXKwULrXUvm48lNt3y8Yhi8l2Zhx+QwAMG5ni2+AlBiJ 8hz3UAsQRprdGU/DBRYQE+5axbtEwRQoIz9QJ9KDBWWuU6JvPsIvZxjBedCh6FVtzjaJ vFtbxStWRajPCnXrtPlPHoocAmC6K5oWlSKo82gT/zfZCUHufdmxCEtmM7/o8TDNNtM9 sMmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683385213; x=1685977213; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZNkRsBy8jmIVOhIRX+lWXHSIur+vpg4Wn3ELaF1i2/0=; b=IKhVAg8YeTZZF6Tpfmjh89dxznLDcRiH3X77vhHOCLR655g0KRnpsqmypVtXsTLeai gxeBDg/5LPtK7miAVUcfAm/i6r/6tjJ9ZiYNbo4iabByHK5/S2GlH29P9HTcZtOkReV+ hsBRSLzX0K6fYkX4Te2BS4Ar2GO5J0JQMQ/moYlmQqA1tqhBPj7nX3PZgEQgToS+AGW6 l0sDFovTGDDcmHA+z+QzomNzlZJB25OFFIh0gdyHW/Jv1sU+frA7/+5T7VDgsx5JLbWb MuulfrsfC1eHlAAsR8YB5vNBAIlUYAY7i3S7dyhzBF3Wuy7XgKj+nZR+P9LF383fU/HG GfOQ== X-Gm-Message-State: AC+VfDwMRz3w/dxPocOeUon4V7mf7vd+ZY4Q8VicnpB9s89y8juf2+Ym 9DSkFmPrGqfz0iUZKGSgWJXP2RyeYrJb/Y7oy6M63Q== X-Received: by 2002:a25:abec:0:b0:b9e:7ec8:5d41 with SMTP id v99-20020a25abec000000b00b9e7ec85d41mr4713885ybi.55.1683385213473; Sat, 06 May 2023 08:00:13 -0700 (PDT) MIME-Version: 1.0 References: <20230506111628.712316-1-bhe@redhat.com> <20230506111628.712316-2-bhe@redhat.com> In-Reply-To: <20230506111628.712316-2-bhe@redhat.com> From: Linus Walleij Date: Sat, 6 May 2023 17:00:02 +0200 Message-ID: Subject: Re: [PATCH RESEND 1/2] pcmcia : make PCMCIA depend on HAS_IOMEM To: Baoquan He Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, schnelle@linux.ibm.com, linux-s390@vger.kernel.org, Arnd Bergmann , Dominik Brodowski , Jonathan Cameron , Thomas Bogendoerfer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Sat, May 6, 2023 at 1:16=E2=80=AFPM Baoquan He wrote: > On s390 systems (aka mainframes), it has classic channel devices for > networking and permanent storage that are currently even more common > than PCI devices. Hence it could have a fully functional s390 kernel > with CONFIG_PCI=3Dn, then the relevant iomem mapping functions > [including ioremap(), devm_ioremap(), etc.] are not available. > > Here let depend PCMCIA on HAS_IOMEM so that it won't be built to > cause below compiling error if PCI is unset. > > ------------------------------------------------------- > ld: drivers/pcmcia/cistpl.o: in function `set_cis_map': > cistpl.c:(.text+0x1202): undefined reference to `ioremap' > ld: cistpl.c:(.text+0x13b0): undefined reference to `iounmap' > ld: cistpl.c:(.text+0x14a6): undefined reference to `iounmap' > ld: cistpl.c:(.text+0x1544): undefined reference to `ioremap' > ld: drivers/pcmcia/cistpl.o: in function `release_cis_mem': > cistpl.c:(.text+0x3f14): undefined reference to `iounmap' > > Signed-off-by: Baoquan He > Reviewed-by: Niklas Schnelle > Acked-by: Arnd Bergmann > Cc: Dominik Brodowski > Cc: Arnd Bergmann > Cc: Jonathan Cameron > Cc: Linus Walleij > Cc: Thomas Bogendoerfer Reviewed-by: Linus Walleij Yours, Linus Walleij