Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp491044rwb; Thu, 12 Jan 2023 23:51:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXtmvSiSkdI129BFovJw1tNI7dRHxr2AWOarm6JqaIMjzVueMD4hSfIISaBxWcMzvuFJ5LG3 X-Received: by 2002:a17:907:8748:b0:7c1:ad6:7331 with SMTP id qo8-20020a170907874800b007c10ad67331mr76414784ejc.27.1673596298986; Thu, 12 Jan 2023 23:51:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673596298; cv=none; d=google.com; s=arc-20160816; b=uEAykLictrQxopdegO2qF5E87vpv7FNLLX+vr4tuvH04WFkIwdo5rBOh4j+sTZndKI 3/psjss59kszNzEqJMwYKuY1kYQURHasANSQasyFO1AZ5a7vhWeVeH7FKNyigcrosswW 7YwuD8vKdivOb2Ns+GKnGS4d0Q7dldtPps+5lCAQIDu0isYxaeb9q4HZAb6oyO/P5LwK T0WWyIsGHfjV1jZOPQnRPoMt9K/81F31ndttr2KzJ6SvdAAFvySr0Qi92lVcMsJ5yxF8 H3fTVkuxZGtwvVqNnDF6tWmoMdl7RmgGFjxlD8yyp5bBROKYvZcmK3DgrYIuRga3x8T9 6TVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=h4SIO5Vhg+nTG28cL2ItMex6tptSMIIoaPuTXiy4QRY=; b=PMdevNPL+M/7dPFYQzasTZmD3CopB0fPyyv6/fEIJSSh3y8i3z4NmRUqP2DkVhnJ/H +91WrlgM3cqVeGVAuZXAF57H2oiZbg9+RVu6SXNPm4SN8jmq1STpewR4nfK+1IJP1aTi iRMwfPuryr1nemZhZ5KElfMDCF57Wyas9dzn5lkfofME2UhHTrEGb3CQMeOQzGYSa0Qf bUCTni9wUCf1D6+cITsgG98hZp0uEBVRhxDW1eJQA/MUISeR1eou9X3P8bLXEfHlXEVx YDCTX7TMzTQcx6O5l0BcRSJInXueSIbS2svK62TcompFIJ/8/p5Fri/dlS4J+WG4QMLp Txnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=X9WRD1uF; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb18-20020a1709071c9200b007c17420be5bsi23500966ejc.178.2023.01.12.23.51.27; Thu, 12 Jan 2023 23:51:38 -0800 (PST) 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=@infradead.org header.s=bombadil.20210309 header.b=X9WRD1uF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232906AbjAMHoI (ORCPT + 50 others); Fri, 13 Jan 2023 02:44:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235540AbjAMHoE (ORCPT ); Fri, 13 Jan 2023 02:44:04 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F0E88FD9; Thu, 12 Jan 2023 23:44:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=h4SIO5Vhg+nTG28cL2ItMex6tptSMIIoaPuTXiy4QRY=; b=X9WRD1uFZ8GM08dcnkEzGBIUBN AlHf4sXA0RwDUqEtwvnIEV6F1JWlqzUuE9eq6hCfKdjLqHfK8uI7uidsA+LJIq93RXB89wFjqvDZe 3thF2e7e67FcXGhav2n9feqEajMB6759/BzWPlkbPieZOSJyAM5pWP3s4oHvV5c4FGvtbZZSLWN8g lsLSLECcGl6NxtEK1WlWg0tw5PSHmjE1UymF9rL+c4rBFdQ0bspB32c0FDcU/vAM44QIde7sZ41lj e/mV1ccduLSmEJ9fyQlAdzUB74xIYAyfqAnrQ26CLwar4xW03t3FF/+XDz/p5HzzgBe7cBsEJKLTG xF1rLNmA==; Received: from [2601:1c2:d80:3110::9307] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGEjJ-0011YO-NV; Fri, 13 Jan 2023 07:44:01 +0000 Message-ID: <3311cea3-3a1f-3c2d-d167-6bfe85b2ae84@infradead.org> Date: Thu, 12 Jan 2023 23:44:01 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] ata: Don't build PATA_CS5535 on UML To: Peter Foley , Damien Le Moal Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230112-umide-v1-1-78742026a3f1@pefoley.com> Content-Language: en-US From: Randy Dunlap In-Reply-To: <20230112-umide-v1-1-78742026a3f1@pefoley.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 Hi-- On 1/12/23 20:37, Peter Foley wrote: > This driver uses MSR functions that aren't implemented under UML. > Avoid building it to prevent tripping up allyesconfig. > > e.g. > /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: pata_cs5535.c:(.text+0x3a3): undefined reference to `__tracepoint_read_msr' > /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: pata_cs5535.c:(.text+0x3d2): undefined reference to `__tracepoint_write_msr' > /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: pata_cs5535.c:(.text+0x457): undefined reference to `__tracepoint_write_msr' > /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: pata_cs5535.c:(.text+0x481): undefined reference to `do_trace_write_msr' > /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: pata_cs5535.c:(.text+0x4d5): undefined reference to `do_trace_write_msr' > /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: pata_cs5535.c:(.text+0x4f5): undefined reference to `do_trace_read_msr' > /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: pata_cs5535.c:(.text+0x51c): undefined reference to `do_trace_write_msr' > > Signed-off-by: Peter Foley I have a similar patch on my system that I have never sent. I think that PATA_CS5536 needs the same treatment. Anyway: Reviewed-by: Randy Dunlap Thanks. > --- > drivers/ata/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index eceaec33af65..9695c4404e26 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -640,6 +640,7 @@ config PATA_CS5530 > config PATA_CS5535 > tristate "CS5535 PATA support (Experimental)" > depends on PCI && (X86_32 || (X86_64 && COMPILE_TEST)) > + depends on !UML > help > This option enables support for the NatSemi/AMD CS5535 > companion chip used with the Geode processor family. > > --- > base-commit: 1b929c02afd37871d5afb9d498426f83432e71c2 > change-id: 20230112-umide-18c116111232 > > Best regards, -- ~Randy