From patchwork Tue Apr 23 03:49:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162647 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3322785jan; Mon, 22 Apr 2019 20:52:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4UdyHjiIW5kbu5z+IwW8prPlah+lcWkV+YnshblbX9JKlKn8RSLka0qSDa9jZk8bP8y66 X-Received: by 2002:a63:d24d:: with SMTP id t13mr22427171pgi.439.1555991534432; Mon, 22 Apr 2019 20:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555991534; cv=none; d=google.com; s=arc-20160816; b=YfNjpvqdx8TneriFAU1prq8JKjfb8G8A48dNKjBvl+3jIWkkJ9nUivo1pqeTF9xLSj YASEylXHTn4C05LTldR1I46rIduuyWjeYRsBIxZYtCa6FGRwtoKzulx8cfFnDACS2WIQ un7cc2JsS1wyhYQjcl5CzyGU30eZcP3GUqSO6ML5d3wZA0rYKcL1oGIeGOwdgEgFcchn 7TdZ4e+H3hWZwVPlNPfh8YXsdAiBSX6Cj8cZ2LmJIR8PhBLk9i0gVHoRNZVAIGdUxpp9 bsPu4xiHVuRnHiwLLkbM+lexbpGxU9+fSXzruoBOJm7Gs7cu1YWwuC+RQ8VXCQfJI0mU Zbrw== 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 m2si14679399plt.429.2019.04.22.20.52.14; Mon, 22 Apr 2019 20:52:14 -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 S1730802AbfDWDwM (ORCPT + 30 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(-) -- 2.17.1 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");