From patchwork Mon Jan 18 11:34:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 365562 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp93279jam; Mon, 18 Jan 2021 11:15:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4GmxkJ85MQMRBn6v1Ek6TPjA8w0+4Xb9CRpyM+oMuh0uM4qkrxFL+mepMpM5vh2aSAO/v X-Received: by 2002:aa7:c707:: with SMTP id i7mr691589edq.183.1610997359059; Mon, 18 Jan 2021 11:15:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610997359; cv=none; d=google.com; s=arc-20160816; b=YybsBYj5UBy83vc/i3c0o5iRANQSu7KNnF8PKazK50eBMb/MqrkP3NKfhQECtfskWJ yQ7ArGjw/cNTgg7yiCI0o1aXecoD+ryjazAaIzCcKrxb3Z9YFQeOGP94m8RBpphhcNX7 aJlN68TjDcvn9Bc5oLHqQNsyqcbtAP/wKhpPhfwmpD/vwzJanmFpyLeX32Ss2/cVcByC nezIfD1RxdZVpkbnxpklp9PCaPZuJeDH0oQD/r9QxpueRStvGBCvtf+/LSU5aVcEiETc PPH6fskKLCL6uJtTzNeyfSr3c+jyc4iLKiYDSJ15ZyWaIjceoe8zItxuJ4Kae6/HteN4 JDyw== 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=Yoq99+IMLqVCip+nWuf9pMpH9P1NPKuzc8NS5Yyj7vU=; b=x1srdzijG3MUUpUWzhbtgACXM2bE4S4dZg5Sp/BGX/WGON6N28myfYOOxT0zh30wlO m5W338VZkrb1ubpYjKLQiTmZOytHEdRMb/0seIhrpWS2HV4qyhIODCGxIAqc0qEWoWCV Z0vHGIET4Ud/B5TthD3Vm74id9SNaa4oAlTBJNza/UZz65rDgC5jqid0W6mczSC5qFG5 EHaJNFun5TApvxIkphzT2axZvIa00TomF8PGnmQBckNR/KflEk87zZa9fBJiioKVEXfx y8Np7s5k2Pgs/qkAjaXyseQYetCpBSipSzIgVWOqa/uuLO48zGNwpVla2mycELeXVaeK a9ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ubkxspOj; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 z2si8327098ede.501.2021.01.18.11.15.58; Mon, 18 Jan 2021 11:15:59 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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=ubkxspOj; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S2437081AbhARTO5 (ORCPT + 13 others); Mon, 18 Jan 2021 14:14:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:34158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390490AbhARLiq (ORCPT ); Mon, 18 Jan 2021 06:38:46 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 511AA229F0; Mon, 18 Jan 2021 11:38:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610969891; bh=9EyhAMPQJR9gfoc9wUHB3iNTPkxEYBXjkF2AAWS0kUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ubkxspOjuy5zwFmkWh1QbES/V5zcOLLsvhHzNLiOT9EqvFHe+7r1Gs29bTHE/pvL7 Jtca62+cbAVRdveplXUlAI3P3x5L1Zsse3j3ihdjPQT/XL6jViRl1Um9NUowZr2llB wYQQZi7m1jS4MCvq2buFgCkYjvK0KYvtn4XBF9N4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anders Roxell , Nick Desaulniers , Thomas Bogendoerfer Subject: [PATCH 5.4 06/76] mips: fix Section mismatch in reference Date: Mon, 18 Jan 2021 12:34:06 +0100 Message-Id: <20210118113341.288296200@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210118113340.984217512@linuxfoundation.org> References: <20210118113340.984217512@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Anders Roxell commit ad4fddef5f2345aa9214e979febe2f47639c10d9 upstream. When building mips tinyconfig with clang the following error show up: WARNING: modpost: vmlinux.o(.text+0x1940c): Section mismatch in reference from the function r4k_cache_init() to the function .init.text:loongson3_sc_init() The function r4k_cache_init() references the function __init loongson3_sc_init(). This is often because r4k_cache_init lacks a __init annotation or the annotation of loongson3_sc_init is wrong. Remove marked __init from function loongson3_sc_init(), mips_sc_probe_cm3(), and mips_sc_probe(). Signed-off-by: Anders Roxell Reviewed-by: Nick Desaulniers Signed-off-by: Thomas Bogendoerfer Signed-off-by: Greg Kroah-Hartman --- arch/mips/mm/c-r4k.c | 2 +- arch/mips/mm/sc-mips.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c @@ -1576,7 +1576,7 @@ static void __init loongson2_sc_init(voi c->options |= MIPS_CPU_INCLUSIVE_CACHES; } -static void __init loongson3_sc_init(void) +static void loongson3_sc_init(void) { struct cpuinfo_mips *c = ¤t_cpu_data; unsigned int config2, lsize; --- a/arch/mips/mm/sc-mips.c +++ b/arch/mips/mm/sc-mips.c @@ -147,7 +147,7 @@ static inline int mips_sc_is_activated(s return 1; } -static int __init mips_sc_probe_cm3(void) +static int mips_sc_probe_cm3(void) { struct cpuinfo_mips *c = ¤t_cpu_data; unsigned long cfg = read_gcr_l2_config(); @@ -181,7 +181,7 @@ static int __init mips_sc_probe_cm3(void return 0; } -static inline int __init mips_sc_probe(void) +static inline int mips_sc_probe(void) { struct cpuinfo_mips *c = ¤t_cpu_data; unsigned int config1, config2;