Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3163143yba; Mon, 22 Apr 2019 21:44:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhN5NIMg/Ft3RnfNMBMXYMVRAb2u2MI3i0PvaznsT54nE1u5D/uWd4sU2UFdVp1u2eLeA3 X-Received: by 2002:a63:5d45:: with SMTP id o5mr10662335pgm.0.1555994672310; Mon, 22 Apr 2019 21:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555994672; cv=none; d=google.com; s=arc-20160816; b=x/1DDArWVfL8fh0ut/rTFImn0prWEs0sROLR5uMVU34ZY6HYmmEU8qvfzBjVMbfZsC +c0ZoTadmyEKFkOG7h+VpmjrVcDrBYjkkF3V3Z1Fod55szX4UW255uj3wCdaB/nJlyR6 +spCWY1m+2tN3MN9Zyhw6oQ0v4UoJhgl7DWVyzZOC5qS0h6M78Bt+NjErv+t0eI0Y01v 9G/P3LCrVPh8etUZ3n8aiOcvBLljEb6c18pt1JzBlRbzkWii3vj7A9K/0j9c9SkqHcgY Xqyh4VHWu+g9DuYoNNQhyRfkebx2Xc5NL5TtULIJyjhDK/HkLxcg1BgLAwtUd1CfMq7E Vo7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=6a2lxZ60QvbOnt17TfgaQyw8mxjsKyu0piFkGUEaJaM=; b=KEf3QSUgpXfJ7/chKe8Phl8ketQCBT+M1bs7rhjVtnB3wNLfrmXQPPB85wCi62LpMV vEDpVqHZF6U7Vn5oIUFF66Dj3Hq/WKr/SugqAlMtDr3bWPGpfd6HJFyqhw5znGRPtyMq J1E3ZyEzmFp3kc0RXNF+3tR2Zxnwj85MTMjd1i2dt6DwZuuSVTqK9iKzBr6UF81p4JHh MMuLiM6Yyz8Z6dRwlYWofWkoaAxEDJMi/ZnioidSqY8NepQBj8jFAw7fdSi9s8NBM2/Y PnjkoSzg0SIizKKLVzOCr27SjEsvF3pTYJcwaWCMLuxfejF8lgM8Ztye88qeFhkrXrJQ EJQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=KkcVGuZw; 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 y12si15467324plp.47.2019.04.22.21.44.17; Mon, 22 Apr 2019 21:44:32 -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=@nifty.com header.s=dec2015msa header.b=KkcVGuZw; 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 S1730786AbfDWDwM (ORCPT + 99 others); Mon, 22 Apr 2019 23:52:12 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:38869 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730510AbfDWDvq (ORCPT ); Mon, 22 Apr 2019 23:51:46 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x3N3o2cF023044; Tue, 23 Apr 2019 12:50:13 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x3N3o2cF023044 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555991414; bh=6a2lxZ60QvbOnt17TfgaQyw8mxjsKyu0piFkGUEaJaM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KkcVGuZwG103H22stN6irsWh0/sE3M3Fy3ba9dpJ8bE+lRWF8/73lXPhpMJlOJ1dC HDbfqkLUOj8YWYZezvqSDCGIdHrA3b6mtMnVdeKAihhOSFTi75d3V5YMkzVDnusnr2 Rw7CiZrEfeqlhJwcxuKX67jhSm/GwXXH2AAd5hO03PCzS2n6mBkJw7LQjt1WuzBcxB zp8uRZnudBf6v6v98crxC1YC6HwhxAEH9CR13J0EN8vLuJkWpV6zlraxtQOH15A5/a 0OM2V6uoxhBSrIa6qnl6e66u2YQyPGzWKCrTYana/63053f3qtdEe/+GWbdYwjVmfA MOuO6rgVe+s9Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Cc: linux-s390@vger.kernel.org, Heiko Carstens , Arnd Bergmann , linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Christophe Leroy , Mathieu Malaterre , Masahiro Yamada Subject: [RESEND PATCH v3 07/11] ARM: mark setup_machine_tags() stub as __init __noreturn Date: Tue, 23 Apr 2019 12:49:55 +0900 Message-Id: <20190423034959.13525-8-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190423034959.13525-1-yamada.masahiro@socionext.com> References: <20190423034959.13525-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This prepares to move CONFIG_OPTIMIZE_INLINING from x86 to a common place. We need to eliminate potential issues beforehand. If it is enabled for arm, Clang build results in the following modpost warning: WARNING: vmlinux.o(.text+0x1124): Section mismatch in reference from the function setup_machine_tags() to the function .init.text:early_print() The function setup_machine_tags() references the function __init early_print(). This is often because setup_machine_tags lacks a __init annotation or the annotation of early_print is wrong. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: - new patch arch/arm/kernel/atags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/atags.h b/arch/arm/kernel/atags.h index 201100226301..067e12edc341 100644 --- a/arch/arm/kernel/atags.h +++ b/arch/arm/kernel/atags.h @@ -5,7 +5,7 @@ void convert_to_tag_list(struct tag *tags); const struct machine_desc *setup_machine_tags(phys_addr_t __atags_pointer, unsigned int machine_nr); #else -static inline const struct machine_desc * +static inline const struct machine_desc * __init __noreturn setup_machine_tags(phys_addr_t __atags_pointer, unsigned int machine_nr) { early_print("no ATAGS support: can't continue\n"); -- 2.17.1