Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5035732pxb; Mon, 15 Feb 2021 07:55:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3+vaBQ1Vzi9Qx7oIOi8V+fZf4TlWkCOODCXjaZ1ZwmKos/XOKU+KCAeSaxWST0cA/+2zl X-Received: by 2002:a17:907:7891:: with SMTP id ku17mr16356765ejc.69.1613404526727; Mon, 15 Feb 2021 07:55:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613404526; cv=none; d=google.com; s=arc-20160816; b=G8UqgYcp9OgxBOJ7V3o/5XXQ8RsTHvkM8WVMAMEAqC8ZGA6IDntcfyaB3pWH7avYun tHvdyBqJCOrhHrS3BhQC7aOsT4m4pqDZnqXsFxeH3Qf9JOHh9QToMSSYJsPAGkKWAwMA kBiq2ALoJyZ8MmTUKRu+wqa2Ewf6PnulK1fDw90y8ZuwnbwlCa42Nu3VD28ONtmFrFHQ LMK2+Gtw/pCsuJN+2JWYUsgx0B48eh5pOn2s/xjh7+VTCHJF4c3ZA+JAztO+x9Mx167I NJ9Mvqg8e5IXgJc7hRVusiJIzhg7O/jpl33rvCVBV38mSQkaKFwK/rqW/6tyD2H8yTKA gjqA== 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=DIqntDSP+MS6TkqmNeJU0G+RfkgCx25zXjfMF0DfBccCqopXWJ7d5gUXOZtISAOZfJ 1ax6cexkU4tXQI0NH1r9FmKJHDuCUJZkskTyO2t2OE+wN4FHYBsXQK61HlIbccpNJCqb NBEbHjiruj9zlUo9bsaJ7QCCACr5WsE5tH3cRLWnLGyqRY8rGaYBLhpqA3Da5oJLwEGt EF2tHUI0V4zzHbQzrzySW2oCvBkOLtdtcwnj97nSs2lIUiZTcHv/LlrR9V5p4BtheHgW EWHi37QS5a6OtpKLexYtGYdJPms0WOUnaxEo2kKbJRIGA8soK4T3cDfxGhV9NXohdtyM Njfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vqbmE7bO; 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 c21si12972569eja.329.2021.02.15.07.55.03; Mon, 15 Feb 2021 07:55:26 -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=vqbmE7bO; 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 S232389AbhBOPxq (ORCPT + 99 others); Mon, 15 Feb 2021 10:53:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:45590 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231217AbhBOPcd (ORCPT ); Mon, 15 Feb 2021 10:32:33 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2092C64EA7; Mon, 15 Feb 2021 15:29:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613402993; bh=v/gQGnMSyBOWAGIrp2ZGq93+zdde1cBJ8dwXtt1HroE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vqbmE7bOejbG2jCpG5JpdQNKwYYMgq4Q5F02yM3HnF0e6DrBARVDNjIYdEXGFd59V bAaOswe7YGFKUg2qEvXQjK0dZjQFIHL6bclgdEJGrJDu6haX4CZ04BbWqliIELzfje c/kIArSsDlIbsedH/ValCrUm19Lp7xtxqhz8kZfw= 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.4 46/60] h8300: fix PREEMPTION build, TI_PRE_COUNT undefined Date: Mon, 15 Feb 2021 16:27:34 +0100 Message-Id: <20210215152716.839317042@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210215152715.401453874@linuxfoundation.org> References: <20210215152715.401453874@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