From patchwork Sat Feb 13 04:52:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12086563 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=-15.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 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 2E5B4C433DB for ; Sat, 13 Feb 2021 04:52:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B49FB64E3C for ; Sat, 13 Feb 2021 04:52:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B49FB64E3C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4623C8D00B8; Fri, 12 Feb 2021 23:52:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 413AF8D0060; Fri, 12 Feb 2021 23:52:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 351888D00B8; Fri, 12 Feb 2021 23:52:56 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0059.hostedemail.com [216.40.44.59]) by kanga.kvack.org (Postfix) with ESMTP id 205848D0060 for ; Fri, 12 Feb 2021 23:52:56 -0500 (EST) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id E3643A2A5 for ; Sat, 13 Feb 2021 04:52:55 +0000 (UTC) X-FDA: 77812024710.05.A36DC0D Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf12.hostedemail.com (Postfix) with ESMTP id B9E93135 for ; Sat, 13 Feb 2021 04:52:53 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 640A864E3B; Sat, 13 Feb 2021 04:52:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1613191974; bh=V0+GvBZARs2BHNyHdAboWk8oJQqFt0z3Q2lQlguArZs=; h=Date:From:To:Subject:In-Reply-To:From; b=tsZemh7+ijJLZpmsWWfBNtxEpF4jhUXLsVPP4rEnyUOrZDlWsphyhrdSF8WcBKc/6 AAEI9SA5p2LUDxQOnF4Eo50UzhaPpp/Pt4YNln1xaRJsKZzFC/oFRyeG+IBtT+IL75 bo1uyOC5qRZTnTMc4BXnOvcSYfGorW3puCZGSEc8= Date: Fri, 12 Feb 2021 20:52:54 -0800 From: Andrew Morton To: akpm@linux-foundation.org, linux-mm@kvack.org, lkp@intel.com, mm-commits@vger.kernel.org, rdunlap@infradead.org, tglx@linutronix.de, torvalds@linux-foundation.org, ysato@users.sourceforge.jp Subject: [patch 6/6] h8300: fix PREEMPTION build, TI_PRE_COUNT undefined Message-ID: <20210213045254.t7hAEyRSN%akpm@linux-foundation.org> In-Reply-To: <20210212205206.f99cbe2e7e368c802a385104@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Stat-Signature: 6cm4tk3adxohfu5uz9e9ozf3tsh469ge X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: B9E93135 Received-SPF: none (linux-foundation.org>: No applicable sender policy available) receiver=imf12; identity=mailfrom; envelope-from=""; helo=mail.kernel.org; client-ip=198.145.29.99 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1613191973-256478 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Randy Dunlap Subject: h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 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' Link: https://lkml.kernel.org/r/20210212021650.22740-1-rdunlap@infradead.org Fixes: df2078b8daa7 ("h8300: Low level entry") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Yoshinori Sato Cc: Thomas Gleixner Signed-off-by: Andrew Morton --- arch/h8300/kernel/asm-offsets.c | 3 +++ 1 file changed, 3 insertions(+) --- a/arch/h8300/kernel/asm-offsets.c~h8300-fix-preemption-build-ti_pre_count-undefined +++ a/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; }