From patchwork Mon Jan 18 11:33:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 365556 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp58937jam; Mon, 18 Jan 2021 10:26:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyetX659N7/FjWTU25T5XkymyNS2/f9yjImLbhi8nkLo8lLZIuoUc9cadTr/30tp5Gf1ddf X-Received: by 2002:aa7:ca13:: with SMTP id y19mr558450eds.59.1610994379037; Mon, 18 Jan 2021 10:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610994379; cv=none; d=google.com; s=arc-20160816; b=j+AvQNZGS1dKFC0JrIxe6IOhNn3JSEgcbCNOh26oa7w4f8RwsigZNcWo0RTiAFCAQY 23scw6nt+P9OLJAIqnMd8hD1RcLu2biLifmdCAlN93q5BxkcG5YgbHyxVRO4UqAizdFc KaJGNuMpADWUeBb5n3xmR1s1g34WbgBboJimC7tpyv0dU4Gz1NTyJRbD3zLtwKv4O6Ow vbaemRcQKS6Q8Fjhil+tL0PDeCenVJz3ko5dKoAvIdxi2+hwKQt6eNpjLfA03H/H/7T6 Iu44Ewm+Y9q1adTOgRhlRJkrFk4DbeNJkZIkjx2c0fBgOf5xWdvfBuGLoMsbPvm4UPFo wmpw== 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=mdSQsjLXvMZKDGVrDoj4cOUeesAQQx/QIt9lpY4ev4o=; b=g97HKq8ZbforejYJLqYMbzTfLYJVpj4WlwKfOYlDPDvGjlL5tHflfhaxXluOElvq5h iuVkqUK5Ek8OiM3o2Qd6ZtxiNT+7cXxJSKzNqtZOhbOhhTA+mRRu4DkyVaeu/In4FQ01 d3L9aqjumIm7GRkwtD4AcIivy1oOGqp9pAjs39X5YpZ6I5PDmAHpoKZnXWM1KecgAjmx 6KmXqvfAiSi0LbrU2NkrcfWMdCFaMsGqChkqBOffxKUDzb0QL8B3hvMDGp3tF6euNw0/ qNFc/wtdeiDysa70J9HV8UTayO84cutc3cwBqTDze4yVNQ72Yo1ei0WQOuo3G+N9oV9G DZsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pmeb3l+c; 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 z102si8587550ede.307.2021.01.18.10.26.18; Mon, 18 Jan 2021 10:26:19 -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=pmeb3l+c; 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 S2393086AbhARPGd (ORCPT + 13 others); Mon, 18 Jan 2021 10:06:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:36932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390745AbhARLll (ORCPT ); Mon, 18 Jan 2021 06:41:41 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 38F4522227; Mon, 18 Jan 2021 11:41:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610970081; bh=JuV+s/KeIzEShE7bSGVcyzHh1q02bTBuQmIL20AxEC8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pmeb3l+c5uyX61AS73tZxEDjp6kPrFjf6gch24FqQnt8WdeU06F6owG+uO+ykQPVx zMfTZy5ziLh1HjobYEBlh6R1aOXarYqhYq7eZd2fv8vTrDSQ7DICIau9hVpwViRkR9 WyftytENtcmFPiw8g1ST2/dHAJS9Gy8dICUSMhhY= 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.10 029/152] mips: fix Section mismatch in reference Date: Mon, 18 Jan 2021 12:33:24 +0100 Message-Id: <20210118113354.177932943@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210118113352.764293297@linuxfoundation.org> References: <20210118113352.764293297@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 @@ -1609,7 +1609,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 @@ -146,7 +146,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(); @@ -180,7 +180,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;