From patchwork Mon Apr 10 01:13:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 81339 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1631397vqo; Sun, 9 Apr 2023 19:10:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ZjX1ClLElbg48vHC2tvkQVG7Ae2r0m7eKidUtnHuAlPJ5EsKV+csHL2kP82W/PZGJau7dj X-Received: by 2002:a17:906:4ecb:b0:94a:46c0:248 with SMTP id i11-20020a1709064ecb00b0094a46c00248mr5376273ejv.41.1681092606453; Sun, 09 Apr 2023 19:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681092606; cv=none; d=google.com; s=arc-20160816; b=Z2rLgEWNAveSEssyT4Oa/V6bl8Lj0M8qQ/94JUcoO/k1t+UZEY68xRkkCUcB2hzCCe 5jM/edXJ9/5l2YiSCOSovWbotBq0AVgnyLJvldEi1GKziQZnZW74lZclHb8h6aHbPeXG h42iQnQdpQNWyx51tFce9hw8q0ziWd6/3fJwFiS04+y4PFZeEmuO8agYs2hLpyNnx3hh zZZgxRogGOGuNd8rH4STHPUeTj1WH9BcbHYvOwL8LGwEnZJ1Gvgl7ZFQDvNizGkF7L2i RMfGLjphOx5PKEu8LWdoXgEFq0vah5IchlghoYvHu8wsl8ErgwKRZFWfg8wgNI4ct8jJ jcZw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=VdW0QiWZs5tGfWPYA1DUgJb23J28q3ZPvcBOi0zT0BE=; b=x7fjEl405nj7LWeyEgRa716NxKNBD1xsbddGf12+yX3F4mRUf4O49E8fdtUsuT0djy L8JO/DEdAn3rL2/ClzAPSm+yaW+F4EWnTotDWThf32FxpRGrMETOUPxi+UnvuumluHkf RPrLr59/l1djT7HnCa5OJyTCEppJIarrRArh9iBLKJ73mXUsDO91mVGiCUJAtVwHm2Qy 1tmiXovnaQN5CF1FUvV8KnivkSMQtieVdifGT/A5JzMWkKuArwqQhAgTJZF9HzV17Ua6 XaUg6tmbx+YIG8DBiQ7sgXggoPeprbJ3pmnw7gL13EtAvCTG2UIcclvn1gpxgab6y5s1 sjMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=daWXvKb1; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e20-20020a17090658d400b009476ce937e0si9734803ejs.875.2023.04.09.19.09.42; Sun, 09 Apr 2023 19:10:06 -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=@infradead.org header.s=bombadil.20210309 header.b=daWXvKb1; 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 S229676AbjDJBNu (ORCPT + 99 others); Sun, 9 Apr 2023 21:13:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbjDJBNt (ORCPT ); Sun, 9 Apr 2023 21:13:49 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B1643A9A; Sun, 9 Apr 2023 18:13:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=VdW0QiWZs5tGfWPYA1DUgJb23J28q3ZPvcBOi0zT0BE=; b=daWXvKb1EIcxg0HC4CwHgCtg37 uOSPNeR3CtfZXI4UL1UQEKRw53ztrrwSN16KQDm0/4UjmKQBs/K4fdMJS1HKBP8Y2lFCOxRQuzvy+ X/QkANaB6jdpL1QM2u5V4JiTpYp1CIgii1o//f8tyFp/CHbaSd7E8IL75M0NWjF/wt+vxJviwGu+z iZqE/xoSuYH0mj4H0lD4fmN4yAnheEX/ke1abhcxu8W4roCX4+2RCCDCUDnQYUWYfWqdULe/K6RvQ JbetAX6DydD8As2XFOgUHaCRA9XZNIA9GMa0CZsceZI5KaSgue60KcV8q/9bGl1IQCz+DO4rLq033 1oudGLig==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1plg61-00EPd9-31; Mon, 10 Apr 2023 01:13:26 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Richard Weinberger , Anton Ivanov , Johannes Berg , Damien Le Moal , linux-ide@vger.kernel.org, linux-um@lists.infradead.org, Geert Uytterhoeven Subject: [PATCH v3] UML: pata_cs5536: fix build for X86_32 UML with TRACEPOINTS Date: Sun, 9 Apr 2023 18:13:25 -0700 Message-Id: <20230410011325.26850-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762753360479555999?= X-GMAIL-MSGID: =?utf-8?q?1762753360479555999?= Current build of pata_cs5536 for i386 UML fails with: ERROR: modpost: "__tracepoint_write_msr" [drivers/ata/pata_cs5536.ko] undefined! ERROR: modpost: "do_trace_write_msr" [drivers/ata/pata_cs5536.ko] undefined! ERROR: modpost: "__tracepoint_read_msr" [drivers/ata/pata_cs5536.ko] undefined! ERROR: modpost: "do_trace_read_msr" [drivers/ata/pata_cs5536.ko] undefined! Add the arch/x86/lib/msr.o binary to resolve these undefined symbols. Signed-off-by: Randy Dunlap Cc: Richard Weinberger Cc: Anton Ivanov Cc: Johannes Berg Cc: Damien Le Moal Cc: linux-ide@vger.kernel.org Cc: linux-um@lists.infradead.org Cc: Geert Uytterhoeven Reviewed-by: Damien Le Moal --- v2: change from not building on UML to fixing the build on UML v3: add Rev-by: Damien Le Moal arch/x86/um/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/arch/x86/um/Makefile b/arch/x86/um/Makefile --- a/arch/x86/um/Makefile +++ b/arch/x86/um/Makefile @@ -21,7 +21,7 @@ obj-y += checksum_32.o syscalls_32.o obj-$(CONFIG_ELF_CORE) += elfcore.o subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o -subarch-y += ../lib/cmpxchg8b_emu.o ../lib/atomic64_386_32.o +subarch-y += ../lib/cmpxchg8b_emu.o ../lib/atomic64_386_32.o ../lib/msr.o subarch-y += ../kernel/sys_ia32.o else