Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5082696pxb; Mon, 15 Feb 2021 09:03:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxW/HaowQHTE1Yhhtt2PpaR4uRlZt9MJsjtaPiriaUc5JTmh4rVEcwa0ui7icEJFy9SRK5e X-Received: by 2002:a50:fd14:: with SMTP id i20mr16715791eds.26.1613408590348; Mon, 15 Feb 2021 09:03:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613408590; cv=none; d=google.com; s=arc-20160816; b=uUoEmZbWlGw406Q5wAZK0nJfvvW1hTvkqvy8L9/qlU7gLK0E6clZ8eFkC/KqXHHwaG OS1VgzzhRpYyJElNi2S0Ir5wkJRABB56d9iQePKogItBi/DBuVxu4alYPsM1Zauj+U3R dt2g70HoOyRdkplfoi799elIUrUnL5sTkaijSrhJO2R7nuh/te1KD9QB+BKfNC3O5q+c BXXq/KpFeEiqMyYZPdpEbGv2Z6pT+aJ42n/GpMNIhq7birqE3qhn7YcoeWCDDK6fRalX NY67h05qvBonM2CB5kys18aGpWKxUlrcb1AIxmm2wOnaB9DSwQO+SbtVYvn4BQVCmigI xRxg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0uBHX/K10QF7DwLyxXttCNjndX5rTa29685lJdWuPdQ=; b=jcaP9uEV97yJpHeqZ5DXpMOI0iruBehNZWgla2vQdO2mKvRuYAY7dAMnQmbacsh6yR KdChxcLZpd1Mlwy9T+cdY7n5CAp0KHAvClV+VO/JkOicCALIYM4ogbk0KnndUNL9t1fI NrBIauGLWvurYEF9TwUh+P8CQr1gDEAAVCNw/TkIR7z7m1AP3cyQb6T+Lyf/GzG3W72J k4Pq5YLsHZd9g5gQs82Uzh6gCPj74GGCP3lTiw64PtjQAN/L5x7PrRwyyyQEBt7dliHC i/ovGW5mkri/LBW2fk9d0++Nmy1XR10vFHEpbC7GYzZBEUu5PCKgK6Ve3VyCff+UgGAN NNzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AbnvTOsq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c59si12140186edd.508.2021.02.15.09.02.46; Mon, 15 Feb 2021 09:03:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AbnvTOsq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232051AbhBORB5 (ORCPT + 99 others); Mon, 15 Feb 2021 12:01:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:53708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231952AbhBOPtj (ORCPT ); Mon, 15 Feb 2021 10:49:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 252C964E5A; Mon, 15 Feb 2021 15:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613403318; bh=v/gQGnMSyBOWAGIrp2ZGq93+zdde1cBJ8dwXtt1HroE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AbnvTOsqOSFYFDqsdS0AbgeqMsp7LDfRNjr6olL9orKF2xtQjxeXuVol7TlsgGgel DeJJM+IDhtjamKXBDsrPSR3Ka7y58vn45dYES1KHzKg0ZMW6dAfcg5zjeOdBmmUghn deoMkzEARKTa5C1wreJXAV3aVUDRRjcb2B65cliQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , Yoshinori Sato , Thomas Gleixner , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 5.10 083/104] h8300: fix PREEMPTION build, TI_PRE_COUNT undefined Date: Mon, 15 Feb 2021 16:27:36 +0100 Message-Id: <20210215152722.136586456@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210215152719.459796636@linuxfoundation.org> References: <20210215152719.459796636@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit ade9679c159d5bbe14fb7e59e97daf6062872e2b ] 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 Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- arch/h8300/kernel/asm-offsets.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/h8300/kernel/asm-offsets.c b/arch/h8300/kernel/asm-offsets.c index 85e60509f0a83..d4b53af657c84 100644 --- a/arch/h8300/kernel/asm-offsets.c +++ b/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; } -- 2.27.0