From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C603C433DB for ; Fri, 12 Feb 2021 02:18:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 65EB464E39 for ; Fri, 12 Feb 2021 02:18:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229787AbhBLCRs (ORCPT ); Thu, 11 Feb 2021 21:17:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbhBLCRn (ORCPT ); Thu, 11 Feb 2021 21:17:43 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1BCCC061574 for ; Thu, 11 Feb 2021 18:17:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; 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=r/OPg+xFtQLytfbJexyr61HkOhaw2sjKTK38fefNnfE=; b=OPW9YqjBVhPVeUZH3chQEPv3Ib Y/elI26oipgFEX+VklHy3/9ag1InJFsdpusv4B/xvtjyiICcPKovCxsqkKq4qHYJBvB741EQ7KB0u BkllX7ub6JPcyhUolkd7bXq51v7Lq7ZGZ2RX9GAydgMaM1M4AxlgDc0Wrruh2c7QHaUllKjMVffCj h9KaazBXQcHnRT6aX4mVxPb7DnM6SPq+H5UUg4wFqr3lHLPt/paYrZVha/PXf6SHmncPZ8XrMm5Y8 kDXWTU3GjHPew+17zvXxwFfG0XZKxC4dKyfuIOu1ywPtmh39HwWwSzBm9VQBpcnQEOkLqkmr/1Kkw UxAXA8ng==; Received: from [2601:1c0:6280:3f0::cf3b] (helo=merlin.infradead.org) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAO0t-00020D-5k; Fri, 12 Feb 2021 02:16:55 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Yoshinori Sato , uclinux-h8-devel@lists.sourceforge.jp, Andrew Morton , Thomas Gleixner Subject: [PATCH] h8300: fix PREEMPTION build, TI_PRE_COUNT undefined Date: Thu, 11 Feb 2021 18:16:50 -0800 Message-Id: <20210212021650.22740-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix a build error for undefined 'TI_PRE_COUNT' by adding it to asm-offsets.c. h8300-linux-ld: arch/h8300/kernel/entry.o: in function `resume_kernel': (.text+0x29a): undefined reference to `TI_PRE_COUNT' Fixes: df2078b8daa7 ("h8300: Low level entry") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Yoshinori Sato Cc: uclinux-h8-devel@lists.sourceforge.jp Cc: Andrew Morton Cc: Thomas Gleixner --- Possibly due to some Kconfig changes related to PREEMPTION? I suppose that CONFIG_PREEMPTION hasn't been used much on H8/300. arch/h8300/kernel/asm-offsets.c | 3 +++ 1 file changed, 3 insertions(+) --- lnx-511-rc7.orig/arch/h8300/kernel/asm-offsets.c +++ lnx-511-rc7/arch/h8300/kernel/asm-offsets.c @@ -63,6 +63,9 @@ int main(void) OFFSET(TI_FLAGS, thread_info, flags); OFFSET(TI_CPU, thread_info, cpu); OFFSET(TI_PRE, thread_info, preempt_count); +#ifdef CONFIG_PREEMPTION + DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); +#endif return 0; }