Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2548752yba; Mon, 6 May 2019 07:51:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCiGWZ2ugqLL7BmIyD6/q8Tt445Y3g5RXu06hKqXRZVsnHajnAn7akf3q9vKWxCmlpRJok X-Received: by 2002:a63:4ce:: with SMTP id 197mr32693225pge.309.1557154291063; Mon, 06 May 2019 07:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557154291; cv=none; d=google.com; s=arc-20160816; b=IF+ZeF01qIJ506bADB/98uJLSzYI7ZtaXPwXpvJGSfbJC0SWsG+RvpYOP0AtVcrcIB slUN+EpyF2yIBhHiDeuC5THsx6Urf0Mj0C2abGsx1iZG1WI//DEeKl0WJcBrlO/Axy8h kE9XB2KlkYNa71Pe6qo/kZd/UVQzRT3o2hnJ7ZWEfnkLvwvXF4Uwst3LdREI6PFQ2/fl AYDC/9PGNQ6Ykez1x+uzAy95DrpuqDZxxvS59KBV96GARnkgDN71dLCCgpts1WUWHkf5 yDGjoN2mg79rHioGVbOyp7wSd4tTbAS4cyrbzllKDQV1hhhMSRdZnyUxM4a3D5RXGN6t EM9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=216V9O8Rwzbg7PaWBjfZUHyglhNB73kUt13YpdF8xBQ=; b=xu7PBTIEPnz3zKufJfU6oBDAr7JstPBVOuP3nxFFZgI/xhGD8PRRxjdJ9ynMlR69KY jXZpM1BwsfCl17B0mpMTAqJ5kRuNwMuAdZP10pLJXAKQOSEJcXRVXsXOPA5cTvMe+5u8 1TkcWjWJKxVLVIOXqMu1QdDK+xKgrBpxPrxsjq9S47HhwLdk1k85fxrkGgAWixyv8S+F 8Uo1bSYGckPpk0xJyKsHzJwWA7XW1vMHWJENet9UN8DuxV79j72dINx8lw7EwgfDnLRC 2faHlaBxDk3dtihJ7Q57dN5663Arg0fcSu4BRNwYqRYhsUIbXore11kI3Ma7suR3NPa5 npbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="15HpYY/U"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r26si13857308pgv.523.2019.05.06.07.51.15; Mon, 06 May 2019 07:51:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="15HpYY/U"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729288AbfEFOtH (ORCPT + 99 others); Mon, 6 May 2019 10:49:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:49782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729574AbfEFOtF (ORCPT ); Mon, 6 May 2019 10:49:05 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2E757216B7; Mon, 6 May 2019 14:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557154133; bh=mD1NqaD5euBlUloinWF4XRlqylg13UT0Nd0kdHVl4MM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=15HpYY/UBMKWha1pj33H8J/FyrtX6+QlsyyIimLHpxuJCgAiyTEMWGNS7uSmbP5b/ FdoFnfPsAW3WdBU5vf4YjOHuSHFAEl4eJuViinMGE/oLkcf73ZKZrJEPjJjwlVAVcH dXR/TqsYI24d4QI4DXPcEziXTMH94mcONXmMf75s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kbuild test robot , Takashi Iwai , Yoshinori Sato , Rich Felker , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 4.9 50/62] sh: fix multiple function definition build errors Date: Mon, 6 May 2019 16:33:21 +0200 Message-Id: <20190506143055.605073394@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143051.102535767@linuxfoundation.org> References: <20190506143051.102535767@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit acaf892ecbf5be7710ae05a61fd43c668f68ad95 ] Many of the sh CPU-types have their own plat_irq_setup() and arch_init_clk_ops() functions, so these same (empty) functions in arch/sh/boards/of-generic.c are not needed and cause build errors. If there is some case where these empty functions are needed, they can be retained by marking them as "__weak" while at the same time making builds that do not need them succeed. Fixes these build errors: arch/sh/boards/of-generic.o: In function `plat_irq_setup': (.init.text+0x134): multiple definition of `plat_irq_setup' arch/sh/kernel/cpu/sh2/setup-sh7619.o:(.init.text+0x30): first defined here arch/sh/boards/of-generic.o: In function `arch_init_clk_ops': (.init.text+0x118): multiple definition of `arch_init_clk_ops' arch/sh/kernel/cpu/sh2/clock-sh7619.o:(.init.text+0x0): first defined here Link: http://lkml.kernel.org/r/9ee4e0c5-f100-86a2-bd4d-1d3287ceab31@infradead.org Signed-off-by: Randy Dunlap Reported-by: kbuild test robot Cc: Takashi Iwai Cc: Yoshinori Sato Cc: Rich Felker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- arch/sh/boards/of-generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sh/boards/of-generic.c b/arch/sh/boards/of-generic.c index 1fb6d5714bae..fd00566677c9 100644 --- a/arch/sh/boards/of-generic.c +++ b/arch/sh/boards/of-generic.c @@ -180,10 +180,10 @@ static struct sh_machine_vector __initmv sh_of_generic_mv = { struct sh_clk_ops; -void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) +void __init __weak arch_init_clk_ops(struct sh_clk_ops **ops, int idx) { } -void __init plat_irq_setup(void) +void __init __weak plat_irq_setup(void) { } -- 2.20.1