From patchwork Fri Apr 19 09:47:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162531 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1810188jan; Fri, 19 Apr 2019 02:52:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKvdN6xURfxLaKD2i1oEI+YKlUvD7cuWq3ht1BLhwx4WZcnet/UUEDn1g4Jo132nYliNDP X-Received: by 2002:a63:e004:: with SMTP id e4mr3013111pgh.344.1555667545648; Fri, 19 Apr 2019 02:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555667545; cv=none; d=google.com; s=arc-20160816; b=lEVql3a9N6h0CcptWzVWTeLkWE+05frlJesWF1/ZscVcndgX48xNmSzkhu1Rmh817N 6B+lBH2dCtUa/fTglIlfDExYWLGxKOqhPbEKdGamlUySRymKHD9/vaP8BxFc2JrfSm0i 3ZacrgAzJHGQtZoVzuYRqBrtLKNGFEM/6Sjxg1fuRujo1KkATFTtCQ9WA2gq8As5mlwU hhEb604eZR7mlFk0e2bv+197iu5GDW8KN0I9T93mNwaA4ViZMTYBi3wvg7NxjFRbO/Dg 7+3sDuBHu/Vhj8KnelfMfHP4ujfmX8vsPWEyeqDb25Mt/AUaMkl3m8+P8+hbkBiWGbkE lz/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:dkim-filter:dkim-signature; bh=hpa50VRGV5xMBnRouLFSU+YvjH3CcL26rfLJL2LpyG0=; b=J1e72OZd5bzcDKpCX44dJvrW1yS06nUEidGAkElvcWTb2LmcudZsEk4gSzVebZ0Lvk dQbIPWqyTSpAX0rOqlDP44CiB4iIrVjSyJQx95s8Esw59gDoa32xzrv64tWZj7vbydIU om144/1TQ0WOQ5wJqqBWS7CPoDl0VHrmaRpGkzaBzLJvy+UmsxgVAwPl0rDvFJsR7Kwn 7ZGPHRcbH6aXjgUmkKZyJaDNXUseIJH8neCM2wnH8WHc8i2j8vG6qKvF09ofgfj0kirP wYml04FvUsI5BPxkbJUzSxPrFEAK2D9tuo01VqHCFnHQ1seAJAH5VPRIcMsPxh9zjCNn M+bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=EbgTNgJZ; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=lNyrmzkr; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org" Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id i65si2549474plb.378.2019.04.19.02.52.25 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 02:52:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=EbgTNgJZ; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=lNyrmzkr; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hpa50VRGV5xMBnRouLFSU+YvjH3CcL26rfLJL2LpyG0=; b=EbgTNgJZqtIkvW+0mPAShsDYb8 RsZWdumTLA5mipxTB/UVgph/VtJ/Sfyrh82siyntfb5dnVN/9Uxz9HWCCu7iOpafZskPoFnx6zG8l kmdjBYKGHx4oYW1ef2Ca0RX+/Uh/52Ap8EZaVJJ6GVy+NLVYq18DjT1yKot2C5Yzv0bulKB/WcFsF 4DCJfLEEYWsNU9v7LhtA/s1cAC5EnewTPMoeInwOW7NFMy2ajBCPxqR+A6UXP6wlg1OffrcF7j1Fl GsiOM0xU5bbp1ocOZ23aI30zCDoIrkDaafybGdTLPfl0pYTGhAu5ICIDbS/Csn6ZBWBPCNhOvxhL2 Nnh7mR6g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHQBq-0003Rt-VP; Fri, 19 Apr 2019 09:52:14 +0000 Received: from conuserg-08.nifty.com ([210.131.2.75]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHQ8a-0006aH-8d; Fri, 19 Apr 2019 09:48:59 +0000 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x3J9mDiS012304; Fri, 19 Apr 2019 18:48:24 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x3J9mDiS012304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555667305; bh=anDfa6W5ONHce754PAdi2seOW7FOosRRq63TZhqjhq8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lNyrmzkrEzGdMdwdrwqYzWssnU73a1VE4o5EHE/QGOpC5eRh1jIeLJfgHCUNbbRZf P4fGEzjVdDAQfOVvzk/YsYpkQSYmCLsf5To/YlPN73ztVlDU5Rh0r5JUcnC7G2OsOH VpYq4BJw/uwG7phH5Dp3rCKdJXd2RgEb6fCPq33mQopk0novAobnQfoJYb7nbXZnRF nnYQf7w/ZMmRIpCQTlT1WW5gkd5vsBLTsbmcT0wM640XY3LvoLoK5l/zP7v2pWaHEO dfocS5SF1QPcvAXyAd/v2vXtMjwQNe50qA+EoOFt9UiQb0LoAZmVqQz/T9z9k1Oaa2 SCp/R5bpxgF9A== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Subject: [PATCH v2 07/11] ARM: mark setup_machine_tags() stub as __init __noreturn Date: Fri, 19 Apr 2019 18:47:50 +0900 Message-Id: <20190419094754.24667-8-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190419094754.24667-1-yamada.masahiro@socionext.com> References: <20190419094754.24667-1-yamada.masahiro@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_024852_739738_B46446D6 X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.0 (+) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [210.131.2.75 listed in list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christophe Leroy , linux-s390@vger.kernel.org, Arnd Bergmann , x86@kernel.org, Heiko Carstens , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada , Ingo Molnar , linux-mtd@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.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 v2: - new patch arch/arm/kernel/atags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ 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");