From patchwork Fri Apr 19 09:47:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162527 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1808141jan; Fri, 19 Apr 2019 02:49:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqLxCWGpX4hWy5juawAODGBoTN5k0hoOKgpRPUjC7e90IaAeuFctBE6DNssWSwZCnTDl3Z X-Received: by 2002:a63:6e01:: with SMTP id j1mr2991591pgc.442.1555667396872; Fri, 19 Apr 2019 02:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555667396; cv=none; d=google.com; s=arc-20160816; b=WOY7eNQm1Vdh4UFuYw8c2puKc+2S+/XPYqfznAwhLWvor1julBjbTeB6sHezKkT3+X 06JE6lsUgQYXulSCoLyt/Ae3OAwVMYbvCi/pj0of2kEBOsceELRPXL22ex5/Ok3Jd2CX p3r4CAVTpgyFLO8/yuTsy8OGtNIFEBP4zIbwWfuyD+i8v/u7rWQkNYSvvVZp9cuQiCX+ vquyGMO3Du6fqjY9SS+bVdwhV0Dj9iF3gP78fN9573Z38CFkWI0HnhiIMJAXo/F9Ddmi yzbIl5rrMFshxd/ajPOtcmdhZb1ZEB5yUqxYUYEpfy9WSlZEzmBciJy98hCvW3DN5rEG 75dQ== 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=d6UNRJSog+xQ5AKfbDQnhbhElyNSL9yc5SJgUuuCyY0=; b=SrfL61weiLi34snsS0IbwaUuwm60Q9u2QNqba0MeNPr8kmbqWaSSTU9UDqrqpD6Vm4 o/J4aFuVCgXWe5VOVbXmYeXoyE/hkmI7Lb7fDE9DtDXidq33R3FENlQtypDVVyGUWMz0 TlZcW2vfSS7PUO7VjfKB2Z0gB+hDOHza24hwb8sg2tb+xPkFWY5xmEdJLJdV6rHwzkUH rpDPICzVnqWHVaplPPN7uNBDFShP8EV3E0UdyAQ1K3uVvuFdgl00erbuLMY/BahMGEum lT9QIZ98gpze/mWowUqPWvNCQToeRX5c7xSae8tppkJ4YSd/VOOilBOHmdUz35Y2HGWk hv8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=PieOKTJr; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=2JQf30n2; 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 b15si5192651pfb.231.2019.04.19.02.49.56 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 02:49:56 -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=PieOKTJr; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=2JQf30n2; 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=d6UNRJSog+xQ5AKfbDQnhbhElyNSL9yc5SJgUuuCyY0=; b=PieOKTJriX51xYEhD7Ca3yRNZy 9U+g2o/8uLldaEIq2JptSfYN/ZGhTf0sBk4P69gb3zn7K+mkseA0DsPmJ5FS0kLkFxpUVFLmiCljx flnZDnZaR1bfvF0NjpIyqd6IK8UfFprdCv0dvbFMclUVUgMFNvMD4YUyA6O99pnZ+J51hf1xZNVPZ 7H59i2y6r8lAiPfk++NHNkUo5jqCvrlV38VrYgY1LaUCWBrIV/qwGZyDaluqQJmyE+t70SMjOF6Hs j6QNIkB1bgovojQSfM1oFyNZ5Ajy0rCKQEKBrlkJaonfyHAABVJnmcqR5Bxpci3AWNY/Tb4vIyiKT 3l+PdEQQ==; 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 1hHQ9R-0007lU-RT; Fri, 19 Apr 2019 09:49:45 +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 1hHQ8W-0006Yy-43; Fri, 19 Apr 2019 09:48:51 +0000 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x3J9mDiM012304; Fri, 19 Apr 2019 18:48:15 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x3J9mDiM012304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555667296; bh=xEQiTaRJoMiIIoSSR5uW02FG6OV+z3ajZxuyDMzswK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2JQf30n281jQB4d2J0PFa1uofVewZCgz9BKrQlNEnXrgFMBLbR2Zq1r6w+iBaLG45 t3nsjO2yy9K2rayA6kAG7W5QOZXT/QC/pn2nbYfF3OTOTfF8RmCuBd5yJ5z4STfAVR S50CNHJXKGoZKrDOh8HkCZk629LOHn6U1lbZhC7JMhAyR3/Tr/rg3GcrCj9JDWjHAO UiGSppMnUWU7gB7Bziv+abekGW5t79hjFO9/SOc6KfN1rVoLYaqIJni87B3Xd6Wk7W H2/rg3c+1nge1l4Y9lbsm/7RvW65UIRkVG9T0d8qJA6UMAluoWZAQ17RYMK74wx8Rp ffTOmV/uhafAw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Subject: [PATCH v2 01/11] ARM: prevent tracing IPI_CPU_BACKTRACE Date: Fri, 19 Apr 2019 18:47:44 +0900 Message-Id: <20190419094754.24667-2-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_024848_509807_B7C1C520 X-CRM114-Status: GOOD ( 13.81 ) 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 From: Arnd Bergmann When function tracing for IPIs is enabled, we get a warning for an overflow of the ipi_types array with the IPI_CPU_BACKTRACE type as triggered by raise_nmi(): arch/arm/kernel/smp.c: In function 'raise_nmi': arch/arm/kernel/smp.c:489:2: error: array subscript is above array bounds [-Werror=array-bounds] trace_ipi_raise(target, ipi_types[ipinr]); This is a correct warning as we actually overflow the array here. This patch raise_nmi() to call __smp_cross_call() instead of smp_cross_call(), to avoid calling into ftrace. For clarification, I'm also adding a two new code comments describing how this one is special. The warning appears to have shown up after patch e7273ff49acf ("ARM: 8488/1: Make IPI_CPU_BACKTRACE a "non-secure" SGI"), which changed the number assignment from '15' to '8', but as far as I can tell has existed since the IPI tracepoints were first introduced. If we decide to backport this patch to stable kernels, we probably need to backport e7273ff49acf as well. Fixes: e7273ff49acf ("ARM: 8488/1: Make IPI_CPU_BACKTRACE a "non-secure" SGI") Fixes: 365ec7b17327 ("ARM: add IPI tracepoints") # v3.17 Signed-off-by: Arnd Bergmann [yamada.masahiro@socionext.com: rebase on v5.0-rc1] Signed-off-by: Masahiro Yamada --- This is a long-standing issue, and Arnd posted this patch two years ago: http://lists.infradead.org/pipermail/linux-arm-kernel/2016-February/409393.html It is no longer applied, so I rebased it on top of the latest kernel. Changes in v2: None arch/arm/include/asm/hardirq.h | 1 + arch/arm/kernel/smp.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/arch/arm/include/asm/hardirq.h b/arch/arm/include/asm/hardirq.h index cba23eaa6072..7a88f160b1fb 100644 --- a/arch/arm/include/asm/hardirq.h +++ b/arch/arm/include/asm/hardirq.h @@ -6,6 +6,7 @@ #include #include +/* number of IPIS _not_ including IPI_CPU_BACKTRACE */ #define NR_IPI 7 typedef struct { diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index facd4240ca02..c93fe0f256de 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -70,6 +70,10 @@ enum ipi_msg_type { IPI_CPU_STOP, IPI_IRQ_WORK, IPI_COMPLETION, + /* + * CPU_BACKTRACE is special and not included in NR_IPI + * or tracable with trace_ipi_* + */ IPI_CPU_BACKTRACE, /* * SGI8-15 can be reserved by secure firmware, and thus may @@ -797,7 +801,7 @@ core_initcall(register_cpufreq_notifier); static void raise_nmi(cpumask_t *mask) { - smp_cross_call(mask, IPI_CPU_BACKTRACE); + __smp_cross_call(mask, IPI_CPU_BACKTRACE); } void arch_trigger_cpumask_backtrace(const cpumask_t *mask, bool exclude_self) From patchwork Fri Apr 19 09:47:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162525 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1807775jan; Fri, 19 Apr 2019 02:49:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyM2nvcZGpIaeqXKr8kVGB2sTUjmUBZVJp5XdB5Pt5+J2OqqYVCFd1bluI5JFx+hK8wyrC X-Received: by 2002:a17:902:bb0d:: with SMTP id l13mr2781257pls.141.1555667373171; Fri, 19 Apr 2019 02:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555667373; cv=none; d=google.com; s=arc-20160816; b=M4q1MeiTKKuJaJb2OZ2ezor2Xkf823rrTXkvu7OzE6pdX69cZQaTWAv9sLQ7hDgN60 zwnYvwlUDfsvuRKlL7WVcyyLXdrpETspZHGRt47Oopy0MllEJsBPCJfbhZy0uGeRCgcm U8ndT9US8lc92jkG87vE7tiEOECA0Yvb9UQsx55Ougv2muk312XnLZJO5x94oSB19JpE ldexYpnjKCTsrQ//iwyp62piGk8qp46ra7qEUz/yzmpIs20lnwaUXgfOl0Zg/1PLZKQF ZufpghWHDhU1+3TZOuJ+iFa9d16XRmcJ7su//N2DQ4rTW2ZzQKPvGYsbWBKncbn1lMtf FVhg== 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=31EQECa9ckqaNDyRQoZPwlLtMasIAWvBCT7ughquTLI=; b=yInbocVyot08Pa6O8qMBzfAMriKkdTd+Zz6+n8iC+yqVK/LvJxK4+Ev/ihaTkibMAo hRxfYHnFs3MzefjjNQBCsHcoUDrL7zdyMVDgFEOkxXWJkWjEMzMjbBFjK6M45KzqMDym uxiVA3RpTdkRf7x3EvLaYydcwdjdljiD21XfUs+Ryq5ZSO/uTJwezGa4X1eTHj1zBoKC vgPohbrBT1Xzc1gfu8nT3ymgBCzRIEwFMcUD5H+L6sWPd92CwSWlkE9YiG27QSPJzUw9 9bPjf60bAq5bzy27skplT4glOXHcwnmijRN1H/JMfYpOmA6u9hJ/LQ6amueMJXt6uBhe 8fpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=swwQwpAh; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=WiSRLVOq; 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 e3si4465370pgc.98.2019.04.19.02.49.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 02:49:33 -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=swwQwpAh; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=WiSRLVOq; 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=31EQECa9ckqaNDyRQoZPwlLtMasIAWvBCT7ughquTLI=; b=swwQwpAhfAi2xrqgE7rEbho2dS xjjWjyASk9oZYj1aCa8zD1IEFfsDmX6OHGYZZAjiQfZqOZ02kwrrv+ENg3A+U5j7WCwEONjLXBJRT EVz2kGywXKHCCWwkEe2u/XvQfwG3gwJo95Tyh6+vVgnyG5woZmoMFHu1d/liV6FZNEqHRYqvdrKFT xfkl+ZdsXLPRkD3Xs4WC0zA6WMbE2oCXulPYRJtYIeRFULnNZMmCtlCZllEa2jjA60gSjMocbe2Pf lCZvYVLWYlWNvQgIXkBeboP5UqdoHU4EsU4PMJAZ1obmrHq1iPMbkFzQuMgkm4lMzAIvUMT8ig6TM kXhFIUIg==; 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 1hHQ93-0007EO-7e; Fri, 19 Apr 2019 09:49:21 +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 1hHQ8W-0006Yz-42; Fri, 19 Apr 2019 09:48:49 +0000 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x3J9mDiN012304; Fri, 19 Apr 2019 18:48:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x3J9mDiN012304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555667298; bh=dMl5gVEKTwHtHLItB6x+dFSf7lYx8Jwln2yhWkFBTvk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WiSRLVOq5x+2GONqtPqhDRF0aPfIywfLdfErEYoMZ6RdK4yxqxbz+tqQyKktdhALJ ZC0EplHjQIRsO0bd4gcGfzAfZvD/aZnFksxkFraObipxhINcqZ0PBSvY8jP7SQORTj OdwwG7dSJR9Ks0cIkNw5+63IypkzGIp2FzucD1i4uYJDoYimo4nbOjq/sRUowzAGQ1 QTqrvjrKruMK94jkE7107MwTjbAocK+Sd13vTiuxVIU+g1yxn93hj2IB7cRrCttREk ukMFwTu/ORTnKIYRmeM4Q/nWhGHfxQ8cKORzjRHv45JA6SZBgy5cI77VTMvNyhSKnq lgNKqF1IATJUA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Subject: [PATCH v2 02/11] arm64: mark (__)cpus_have_const_cap as __always_inline Date: Fri, 19 Apr 2019 18:47:45 +0900 Message-Id: <20190419094754.24667-3-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_024848_496533_91476962 X-CRM114-Status: UNSURE ( 7.64 ) 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 arm64, the following errors are reported: In file included from ././include/linux/compiler_types.h:68, from : ./arch/arm64/include/asm/jump_label.h: In function 'cpus_have_const_cap': ./include/linux/compiler-gcc.h:120:38: warning: asm operand 0 probably doesn't match constraints #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) ^~~ ./arch/arm64/include/asm/jump_label.h:32:2: note: in expansion of macro 'asm_volatile_goto' asm_volatile_goto( ^~~~~~~~~~~~~~~~~ ./include/linux/compiler-gcc.h:120:38: error: impossible constraint in 'asm' #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) ^~~ ./arch/arm64/include/asm/jump_label.h:32:2: note: in expansion of macro 'asm_volatile_goto' asm_volatile_goto( ^~~~~~~~~~~~~~~~~ Signed-off-by: Masahiro Yamada --- Changes in v2: - split into a separate patch arch/arm64/include/asm/cpufeature.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h index e505e1fbd2b9..77d1aa57323e 100644 --- a/arch/arm64/include/asm/cpufeature.h +++ b/arch/arm64/include/asm/cpufeature.h @@ -406,7 +406,7 @@ static inline bool cpu_have_feature(unsigned int num) } /* System capability check for constant caps */ -static inline bool __cpus_have_const_cap(int num) +static __always_inline bool __cpus_have_const_cap(int num) { if (num >= ARM64_NCAPS) return false; @@ -420,7 +420,7 @@ static inline bool cpus_have_cap(unsigned int num) return test_bit(num, cpu_hwcaps); } -static inline bool cpus_have_const_cap(int num) +static __always_inline bool cpus_have_const_cap(int num) { if (static_branch_likely(&arm64_const_caps_ready)) return __cpus_have_const_cap(num); From patchwork Fri Apr 19 09:47:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162524 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1807505jan; Fri, 19 Apr 2019 02:49:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0nOx4m/jIuE/Bj68jVRSO9+bzW0ZfH29NdzCSsYGk9mbujbUNzuu2bK90U9MWEUJWN7zo X-Received: by 2002:a17:902:9002:: with SMTP id a2mr2824663plp.317.1555667353878; Fri, 19 Apr 2019 02:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555667353; cv=none; d=google.com; s=arc-20160816; b=ox3xZOFxpZiQI7i8eUU1JYiAS0JDpw1GtOApLh1SpkjfRErPb71D9KVEaGmHaHg90F 81go9Rv4Z44O762H6pCjtUkgKjA1Rwy+8wpsK6ff3Vn6kBBLIMffgS1mxypMgbyFTJAy rWO8cYWnO/TUO3s7Efws/ZfvO24EVjWQOnOVJyXVZif7PJUYS4MM6OwmFoVC6n3DuN0Y x7bI7WIFTMDD7BJZ1zSJL+dt4XzAePTTcCCvPQSvGo23VCNoMhvERQ+wBRiNPwNo46md QiaD04dWnpziueZ4SiPixqe1SHAxMzwci6lxv9lCU222c3kTVquZa637TEykso+MYz3T aofw== 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=DFyZaIv9nSrpC/QhLi3T2ImjSgeYxO5ko0iKaNp0YCc=; b=gXZXcTOVrcOl77lNS8ozRlPmvDBTfq3a5WO8NcMSEbsffBvzO/keaHd+9qnL+oPpQV E36KR65WLBX71Vhi4sVtEW/n4utLaRDW4tZt+yUHhx7ub2BATcYSqgFw0Mu7Asl/Z+Fs LJTzYRu781HNXEX2leuvyoZtWesGtoOIH85iCpCUvVqyTH9OhLJ01sxSHBIBrUg8pzcQ my2HCUH9EBaqzMktVENcxMkmeeYGiw3HBlJsRmvA59XtZEiTCi2fUnbCIvhgv7BN/vs/ X4Xb/1kTeDe9ANA490DQO/b1WUICK0rQPzeiqnDMdTf7HBiilSt3paucLHk/F6Eft8iI wpDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=eZX0ShgK; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b="OKc4G/Sl"; 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 h1si5322948pfj.187.2019.04.19.02.49.13 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 02:49:13 -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=eZX0ShgK; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b="OKc4G/Sl"; 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=DFyZaIv9nSrpC/QhLi3T2ImjSgeYxO5ko0iKaNp0YCc=; b=eZX0ShgKwXPXrSX9O1BPxdXyAf JqNmoYku4U91pTzw/n9YedBN6TWfBxo/usQMC0pHy/BrKNI3Wyv+QflEcpy4yo/TdSeXA4bmqsfiU 324oOh4zrRI37pDjx6w2eZL2JzbeBk9PZS2HlZpoPdrM1eHeP/Ra/aOA5d3L7367NMU9HHvfqkm6L D86+z0dZXdADSt3noAmiHoE6hPoWydyku0x+8wP2L0fTXdwo+3/2SgXSI3+cFxE6SybRjhMdvDtBD h1O9TD7Xa/nYsu4uxvj6bDGvSfy2nLp9rDFOblhuccOjpfuiwak8zgUGQa/1tpYBjUoFDP0wZwH4/ yJPr4IFA==; 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 1hHQ8r-0006zJ-CG; Fri, 19 Apr 2019 09:49:09 +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 1hHQ8W-0006Yw-46; Fri, 19 Apr 2019 09:48:49 +0000 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x3J9mDiO012304; Fri, 19 Apr 2019 18:48:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x3J9mDiO012304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555667299; bh=eBbK5bqyHyYLvrp0h+N2R8GVzQgJi3T0h1j8WWECYuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OKc4G/SlCAf7HykNHZVlamSTNz1No39oMgc65nQjRDTm1rJqcc1jfITtM8UkGJeeU qObhbfjNVkPa4IwDzwkf26u4nAU3hKpzI+J6tQu3ZZdflpufZc02ms3G7P1pYc0JGU U7qK6j+UkZyyoUraiWV1lZJhK0+XIeylH+Mn3c3m1E09QsodghVCaNWl1cuXrgNz8b 5DldkJUE5/wxVWeRLc8etHsv7i3LuWfHrI9fqz+Y0tsYIthnhw01Jh2NIdTZmBrMN+ 7s8scZU2FDjhEEnGTf3RMaDna+3ZzgRUv3OjtWHIVq8LHNa1hTWHTHXXab/BDM1FmT yllXWqWf+S/IQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Subject: [PATCH v2 03/11] MIPS: mark mult_sh_align_mod() as __always_inline Date: Fri, 19 Apr 2019 18:47:46 +0900 Message-Id: <20190419094754.24667-4-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_024848_496655_504E30BE X-CRM114-Status: UNSURE ( 7.60 ) 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 mips, the following error is reported: arch/mips/kernel/cpu-bugs64.c: In function 'mult_sh_align_mod.constprop': arch/mips/kernel/cpu-bugs64.c:33:2: error: asm operand 1 probably doesn't match constraints [-Werror] asm volatile( ^~~ arch/mips/kernel/cpu-bugs64.c:33:2: error: asm operand 1 probably doesn't match constraints [-Werror] asm volatile( ^~~ arch/mips/kernel/cpu-bugs64.c:33:2: error: impossible constraint in 'asm' asm volatile( ^~~ arch/mips/kernel/cpu-bugs64.c:33:2: error: impossible constraint in 'asm' asm volatile( ^~~ Signed-off-by: Masahiro Yamada --- Changes in v2: - split into a separate patch arch/mips/kernel/cpu-bugs64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/arch/mips/kernel/cpu-bugs64.c b/arch/mips/kernel/cpu-bugs64.c index bada74af7641..c04b97aace4a 100644 --- a/arch/mips/kernel/cpu-bugs64.c +++ b/arch/mips/kernel/cpu-bugs64.c @@ -42,8 +42,8 @@ static inline void align_mod(const int align, const int mod) : "n"(align), "n"(mod)); } -static inline void mult_sh_align_mod(long *v1, long *v2, long *w, - const int align, const int mod) +static __always_inline void mult_sh_align_mod(long *v1, long *v2, long *w, + const int align, const int mod) { unsigned long flags; int m1, m2; From patchwork Fri Apr 19 09:47:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162529 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1808568jan; Fri, 19 Apr 2019 02:50:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDIN6Y9zYwR2pwp1HaT4daYvaSObdi3k+z2WfkC8GqMCfwnVAJGug4NVqC5kR19sDESz/l X-Received: by 2002:a17:902:7785:: with SMTP id o5mr2806067pll.33.1555667426760; Fri, 19 Apr 2019 02:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555667426; cv=none; d=google.com; s=arc-20160816; b=d+DNtg5aQCz1emQhXZEiPUcO2aAB7SuYh5fTt7VGG/f1L/VKA5yhuLJNYnbmbO7AKC bc2GG0Ro5cunEBWTh+QIZmSicQUGlEtFNsZjP2akZvXRajGv43M8OcLyp57UqbY7nUKd ZjP4TV/t/aXO5N3DKvr6akH3l1m/0HsmWquKSrdnmWHzx4+uQqfjHRpb8vYJxYB3uhpP 6M9pYOxwjm5NQk0sMkBVE2EPwVS+a9ZOPFBDdFn6nb/Ym1Iy+C6WsR6H0pdYC4OC31th 1Pb6ekWy+LowB6r2TDTVFUA7qNBievCla4a+ufUKeyl7XzaVHFtxPrlcXNrvP0ZOsnWM pMUQ== 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=zpMiTS0ULXwMiHx9EzZH7PfBGUSSH23WmyIpcXk+NfA=; b=N3Mga4a5WRc1zbJ2A31UsRNip6/b4dgzPtd4lvz+kJSEY5xmJVoQ1GRbVwGf3PQYDT ORhcOkJzA4oHaRqjHZJqkiZmPhvsXNCLPpYuvor9k1mbktCy8sAkqUM2GX2/XFfwsCF4 fjyc3iDSYWpBIF2YA6jSPVFzgAaVlk7vIAoarfC+1b3WYdKlk9sS2HuWGYPy1E8ctd/t dh6NaZGAG9jy6zP4cO8v3RWhGc8CdRvSxAtfGYnp9tNTQoGZNaHKuVYv0Bfcn7I6KPUo ukE3+szPoW5dxmlty/9LysddobUr2Znd31jrfBVy4ifHpfb77QXqlZOvEe4d0SQjOcf9 +tRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=MwDf3ELL; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b="SIFc/1m5"; 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 f8si5071447pfd.105.2019.04.19.02.50.26 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 02:50:26 -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=MwDf3ELL; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b="SIFc/1m5"; 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=zpMiTS0ULXwMiHx9EzZH7PfBGUSSH23WmyIpcXk+NfA=; b=MwDf3ELLxh9gD6WAdVFDwnwhKC NfDDKiERKvoas3GgHFSp7A1u7G+dsyaq6Im1jJjQvzyRzvAHb3PSqn0oNg63TzcYSmKTYgDf10tVg lxX7hg7GyII6Ufw5Uh2SChFjJEjFGe5ru8wbvZtGtfPu40btfEtzx17GSe5OikeVXLPgQ5c4hxIyd IMg6y7jSnRcoevyVjJIa8zyTLXq7ZuVt55xzTLpU9WfLHckzJDVxih6jhZ9AEVZ7Ya5D5iuDNRt7J E1aaRyB0gVIYOHduDkxsZQVp97EzpGWrlq9ToucIOfM1S/iwZyYRHUZbdUgpVckl6I3+ZDedX3c+t iKAvTxzA==; 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 1hHQ9v-0000tE-QX; Fri, 19 Apr 2019 09:50:15 +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-0006aJ-A5; Fri, 19 Apr 2019 09:48:54 +0000 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x3J9mDiP012304; Fri, 19 Apr 2019 18:48:19 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x3J9mDiP012304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555667301; bh=I2dC2tyzuGPeMYW8zJtLNO2SxFu0p9zAPUz6pi0qgOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SIFc/1m5Ydc1pZqGsG3eCmgNiSfy3fEcTrRuHrMyDzt0b0jj8XwnxcaFy2Z7DWjGS riHzRpJ1EiNeDdL5Gc9dT3SupXXDMA3GtG2u3K8Pxca74T2MoE5mm4aTh1DIhR0sLH sr01yXX6NTPQ4hvahiHWs5qiPJx+5swXFNgMpDL//v75znyCBqWjafE4ok5qB1xpNw FU4tOnsrJEcK/hbukt8CeCEuN+fheDfVwyNT6ZjigMy9E0ZREQHML885hMwaFDg7W9 EcjaUqUPqSosX8RQMcdvBqJM8nvjfZ6C4I5zLTZlAu6aYHGZ2LzOBOi9XH5rueuPtj Uiob7ameRmtFA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Subject: [PATCH v2 04/11] s390/cpacf: mark scpacf_query() as __always_inline Date: Fri, 19 Apr 2019 18:47:47 +0900 Message-Id: <20190419094754.24667-5-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_751970_8CF7C5C3 X-CRM114-Status: UNSURE ( 8.56 ) 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 s390, the following error is reported: In file included from arch/s390/crypto/des_s390.c:19: ./arch/s390/include/asm/cpacf.h: In function 'cpacf_query': ./arch/s390/include/asm/cpacf.h:170:2: warning: asm operand 3 probably doesn't match constraints asm volatile( ^~~ ./arch/s390/include/asm/cpacf.h:170:2: error: impossible constraint in 'asm' Signed-off-by: Masahiro Yamada --- Changes in v2: - split into a separate patch arch/s390/include/asm/cpacf.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/s390/include/asm/cpacf.h b/arch/s390/include/asm/cpacf.h index 3cc52e37b4b2..f316de40e51b 100644 --- a/arch/s390/include/asm/cpacf.h +++ b/arch/s390/include/asm/cpacf.h @@ -202,7 +202,7 @@ static inline int __cpacf_check_opcode(unsigned int opcode) } } -static inline int cpacf_query(unsigned int opcode, cpacf_mask_t *mask) +static __always_inline int cpacf_query(unsigned int opcode, cpacf_mask_t *mask) { if (__cpacf_check_opcode(opcode)) { __cpacf_query(opcode, mask); From patchwork Fri Apr 19 09:47:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162532 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1810238jan; Fri, 19 Apr 2019 02:52:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxANw+LGAq2q2fsmIr9VkcR8hPh9cVlK8wofGoFx82bWliU2xVM5u+F/Ty/z8XiXEu0PgkW X-Received: by 2002:aa7:8019:: with SMTP id j25mr2965958pfi.77.1555667549528; Fri, 19 Apr 2019 02:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555667549; cv=none; d=google.com; s=arc-20160816; b=C60ckeyXi3E8W8DOpNWhJg5S9YGleoqPL3KvINiIy0pORgzfVOPprJbDPNbSc6iPCe yHRdm7D7oNUovDH7U0zKRGzcl7yNFigaRtCNeWfZ68OgyKwcBE45v9foOgvF1aamkTy+ n2QC9x/cu0pYNOQBMkNCWuRcrkpQe+F335jMgtTmeR4UA40tqPv5X26F5alDqSKAT5Iu ub27Cozu9FZfHIxfPnHxFM3LkKPBUGKMMedY5XFH/BV/4yP2HrR5/VPWGD7KMyoFzJ1s DvAuN5RbumE1W+e0IeLjcelJi7fZfLhMklWGjcuLxaH5MizkCJHABhd2Vvx11cNxxgQZ y4kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:dkim-filter:dkim-signature; bh=KnLCo6iw2mFDeisVB8z/oivTmPZBrhw+X4FuZD+qYHg=; b=dc6XWnAG5pKMFZTInF0GWigbQQnBkmqV/EAhJn1doLvxYwLPaICfxn7OfHD4iRmD2r ioOJl30OQ9rzpVjZjnr0S195gUEIOWoaIdK5P/T27hwvIEhsbQ/Ha3W5qnMcpmJ1/oDi 1kMFP4XmlG+z9h+YdfQL0984IB0GvnbYkF3pUn/2gW9GaiObNQdpXASO4VuPxI2CGorL qcDbo+0Mp78jEmGIMxvTBfRFIIhIEXpQHOVZ7tPM2C1tQbiEWMy5jJvSTgfMHbvulrbr k2XbYxOLIo+mTw7RIhl/AayHbuTn8WI2RUAmYNcse0rhJnHBnKj2Wg3nY9a54HqtDv+E +ltQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=gd4z+9K7; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b="oudVdW/d"; 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 q11si127849pll.181.2019.04.19.02.52.29 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 02:52:29 -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=gd4z+9K7; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b="oudVdW/d"; 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=KnLCo6iw2mFDeisVB8z/oivTmPZBrhw+X4FuZD+qYHg=; b=gd4z+9K7w46t8E 7JtUrF3GQOajF6uPVilGtyGdV7fTMbtbZgu1ShAMWcXUABPkeVTSz8zSKYiZxafQTl2IlKDXdnDnR qzS9+SOC9OB1qwdtClrUK/qZsg7QfnwOcN4oEMX3A3NfSmiE+j/cQLB53VlpJQrfvW3RuyNIaUcjV 8F407cyfPjXJitb0STWmfxx0voKeHcKecDZQPfoAT43yiSn1YXjotkRyrDdYNlOi2Grz80ramoUgy 8syEdPEawRV25VfQTK413ykqu/vSjvfX+Vv3uh1gAbU3BIM558o61v7tBn7M+Sp34ozF92XplI9hV eWS1AWDN1M9wEiIzykxA==; 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 1hHQC1-0003hX-LW; Fri, 19 Apr 2019 09:52:25 +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-0006aX-KF; 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 x3J9mDiQ012304; Fri, 19 Apr 2019 18:48:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x3J9mDiQ012304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555667302; bh=i5XCWis3VrTykYK/RrX/WLSMvw74LO5onG7SxOwG69A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oudVdW/dFWq56OuDzP6kKUzuEWhB1LghoeXto+rXOPNib4DV9Uy/SJlJzj1AbmWfp mevr0XhyqB2vZq4Cz+Z1v2JvWwOv56OiugvEABew3D+o/TOnkAQFO0IulE/o2RPA/B +sTZx4hUEh4VtZpZbGYRBLePR5ICQudFoYOaeslkPILaHXz1Ak62JsBLFHuo6nXW+A HdImamYXzb7Yk06Xdrpl/c4BLwIZGHF/XfL1anllWbvNDOtJizhoIHVpekzfvHeQsK kLoe+3N8CTYNLyxpT4B5He8gmcUsZrbdL7Q+2LWqM5b83Cr/r8gBn0MoV7tumFH5RV 2DmcgtWPSyNuw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Subject: [PATCH v2 05/11] mtd: rawnand: vf610_nfc: add initializer to avoid -Wmaybe-uninitialized Date: Fri, 19 Apr 2019 18:47:48 +0900 Message-Id: <20190419094754.24667-6-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_024853_140263_DE59B820 X-CRM114-Status: GOOD ( 11.04 ) 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 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. Kbuild test robot has never reported -Wmaybe-uninitialized warning for this probably because vf610_nfc_run() is inlined by the x86 compiler's inlining heuristic. If CONFIG_OPTIMIZE_INLINING is enabled for a different architecture and vf610_nfc_run() is not inlined, the following warning is reported: drivers/mtd/nand/raw/vf610_nfc.c: In function ‘vf610_nfc_cmd’: drivers/mtd/nand/raw/vf610_nfc.c:455:3: warning: ‘offset’ may be used uninitialized in this function [-Wmaybe-uninitialized] vf610_nfc_rd_from_sram(instr->ctx.data.buf.in + offset, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nfc->regs + NFC_MAIN_AREA(0) + offset, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trfr_sz, !nfc->data_access); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Masahiro Yamada --- Changes in v2: - split into a separate patch drivers/mtd/nand/raw/vf610_nfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/vf610_nfc.c b/drivers/mtd/nand/raw/vf610_nfc.c index a662ca1970e5..19792d725ec2 100644 --- a/drivers/mtd/nand/raw/vf610_nfc.c +++ b/drivers/mtd/nand/raw/vf610_nfc.c @@ -364,7 +364,7 @@ static int vf610_nfc_cmd(struct nand_chip *chip, { const struct nand_op_instr *instr; struct vf610_nfc *nfc = chip_to_nfc(chip); - int op_id = -1, trfr_sz = 0, offset; + int op_id = -1, trfr_sz = 0, offset = 0; u32 col = 0, row = 0, cmd1 = 0, cmd2 = 0, code = 0; bool force8bit = false; From patchwork Fri Apr 19 09:47:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162533 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1810495jan; Fri, 19 Apr 2019 02:52:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDelL+rf8EpPHAKlHdqzURfBilqU9pqvJmtbVyfSfWnN/cNrxrDtLfAo5B+1LMqDvd4tbd X-Received: by 2002:a17:902:7044:: with SMTP id h4mr2814946plt.274.1555667568377; Fri, 19 Apr 2019 02:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555667568; cv=none; d=google.com; s=arc-20160816; b=C2D18DyVbEWqtN7deXTX6nyK/776AHK2Iw6s5pm0i8g6ZKI0k256U+3KqltvdrZE5R n4W1bwrBPKQysY/T1EaCba4OYFl1yxGtJSlaixLmPv/hcWV+iBmoxPXQriV8b2T05jFh XWOIAZRw5lRY4FQNDsDjL1yglEh2rhVBdEkyOtVYnSjKiDYxRf1Z7GxoNl0vjybLn7a5 SRggGZDNgHmU33Yx/vTNAxIcgCrnsopUwf7Vsx8ElEx0FEsdDJPyps+nYHo7aHVP2nN2 XBLfHDpC0wnQtycw2eXLeyeAavalxP2+Z721W9vk/B9tzn4OAHdxr2LiZf2VWrcbyUzw mM8Q== 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=9lg+RyMw+Iy/3BJj4BUGtxC4UWSwLxzMPP75sSJG0Yc=; b=Dq2kcIyvX8v3PCgVnzeFCJ7k4SGU3aWAons8QinKvBBXBu4n/iCkIm7faN3XidBESz FrI3SDKzYbziRrMv9C/ggp3OCNk0igV3SSZxTOh2gZ2wOaskRM5907kL/i7u7skitgIW 650DKAdesXWQT4Sznf/fXLFPbom5XBWwTG4ZV5EMpjSm24DPe78MMmz4FWlR3/25LN51 gL5l3e1v34DDBIr2/gYdOIbNM08nlCIXws+OX/r9TUYwrsAmauspzOfpwmtMPfCgm/4c jdB8X73pyy2RCL2Npn68iYvz1u4U5U2cd/QZd9l9Ia5uZp2oABKu6xP0CrmOlnSXxs3h GFcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=Bc2Kdf6T; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=LZ5W5Sbt; 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 t2si3761801pgk.459.2019.04.19.02.52.48 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 02:52:48 -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=Bc2Kdf6T; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=LZ5W5Sbt; 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=9lg+RyMw+Iy/3BJj4BUGtxC4UWSwLxzMPP75sSJG0Yc=; b=Bc2Kdf6TdYheUOUvA6B9NwA5gw ixTyDbly/o8QDT6PObHIQ1G6MQjjNfNvVudYwmnzeYjn39khsmWdazeCj7tX2JGKgLCatSILC2MyV wZPwet/ZR8tQI6XFdyNgfUqfdiM6eA19pyp550/4uriRtyHrMQK407gihqf7fNkVUYX+ZwgAPs+hJ bEk9BRTN/0Ki2qw8Gl4Le8auVO3gUTwxTCKKZKyGlBirtWHy9Jf/QtB/YtWcNhI1PeRPU8CBP++YO qlRbGhpSvqmppe7+tCW560axFezWxL87pl2BoISeafi4fVjaOIEVXWE48o5KD+Sf/dPn+9Y1eHU25 oNAjXSsQ==; 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 1hHQCD-000422-0L; Fri, 19 Apr 2019 09:52:37 +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-0006aL-C2; Fri, 19 Apr 2019 09:49:00 +0000 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x3J9mDiR012304; Fri, 19 Apr 2019 18:48:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x3J9mDiR012304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555667303; bh=may15rFpYiMjCv7Gx5d6Hnsbnx9+yCkdoijkrZ87+8A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LZ5W5SbtA5B2oGV0h5lwznB9JKhiilqmHNUldJhrjUQTSZY9vxebvU3V7wW56NkbJ Rnc6SQfGcsB1yMXTT+NdVLIhmHL7U1Z4tH9i+YXCl33cqFQ7SJd9WsB/oZJXRgygOI YKzZqdsmMW2A3uMDwjeooQdN420x/jTTBNIWOjFmEDNg1gF3/PyTiLDOXwX8pu7ByU lEDznHHJXJN1BHX3WLczN7spS778ABE8MnFmpxa63+ccInS3ZWvDEHfu0ez4+mDf8B 8Xtzq+72fPoa1Remq9MZ6OTJJTm0MBQ7h8USCIRhuHh5oWB6nWd5uVtKxJPxM9yyu6 FUEmIviUowLIg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Subject: [PATCH v2 06/11] MIPS: mark __fls() as __always_inline Date: Fri, 19 Apr 2019 18:47:49 +0900 Message-Id: <20190419094754.24667-7-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_767318_E1A76629 X-CRM114-Status: UNSURE ( 8.62 ) 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 mips, the following errors are reported: arch/mips/mm/sc-mips.o: In function `mips_sc_prefetch_enable.part.2': sc-mips.c:(.text+0x98): undefined reference to `mips_gcr_base' sc-mips.c:(.text+0x9c): undefined reference to `mips_gcr_base' sc-mips.c:(.text+0xbc): undefined reference to `mips_gcr_base' sc-mips.c:(.text+0xc8): undefined reference to `mips_gcr_base' sc-mips.c:(.text+0xdc): undefined reference to `mips_gcr_base' arch/mips/mm/sc-mips.o:sc-mips.c:(.text.unlikely+0x44): more undefined references to `mips_gcr_base' Signed-off-by: Masahiro Yamada --- Changes in v2: - new patch arch/mips/include/asm/bitops.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/mips/include/asm/bitops.h b/arch/mips/include/asm/bitops.h index 830c93a010c3..6a26ead1c2b6 100644 --- a/arch/mips/include/asm/bitops.h +++ b/arch/mips/include/asm/bitops.h @@ -482,7 +482,7 @@ static inline void __clear_bit_unlock(unsigned long nr, volatile unsigned long * * Return the bit position (0..63) of the most significant 1 bit in a word * Returns -1 if no 1 bit exists */ -static inline unsigned long __fls(unsigned long word) +static __always_inline unsigned long __fls(unsigned long word) { int num; 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"); From patchwork Fri Apr 19 09:47:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162528 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1808250jan; Fri, 19 Apr 2019 02:50:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGyLdrz4oRTtFBL8slDoDW3OH0iiqWMmSRFSv8oj2ebrk17gCRfFlm6Na/rSd4aCyA6W6e X-Received: by 2002:a17:902:e48c:: with SMTP id cj12mr2726224plb.93.1555667405563; Fri, 19 Apr 2019 02:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555667405; cv=none; d=google.com; s=arc-20160816; b=LMYw79Mr9Ldo7f8KtAT127C4EcoEra88n5Rii+EA6t0C2DmyhdbIrbHI9A19q8EpGH z8Nvtoypfrw08gFPEToQ0uUk35Gf9Ede9s/SuMGoW4cO8hdXfIYsmVGGqH55Do+4Ntpb LzVch+xmvJmsMQsvEL3Kr1Jllz2YUW83DjIyRYgSinhm/lU6wCUh37jzA60P6TimiDzN +TSy7MuePS4vb91rD8+iD6RqQy1+WGjxDMpRLWQF1mAUU1V7XLe+kdFBCJ3RbJhbiwnG ySYhgwX2CwjYRA7an+BcOk30tiiGUE5Fm05//QpCH55HhT7ubjM/EuyJ9GOI33uE9AAB LhMw== 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=i1enIYmmeCuhJyKYHF1XaoMkDP/fT0Vdlv+SXOYO5p4=; b=Teb7cawXBGHeJ15ihLBpB/XP6OKFG+S5UPnSFnnh0zBy13wuzAXNR8S3f6964ylIxm pDecShU1HxGGp7TyL47IueV3+3BvQjTMp75niOgVNesX6GdMQt5GPumza+fM/ArmHfRN KFAfLpyyDH1suNpZER5ZFHbxQYljSiuTSXoOmbOhrIe/JxLU6c37SDBxJebv3Rq+PnZ8 I0fAfJ7W9XR/siDxZUBCKfNEebTyhGKgQVONx1/sNM0dUBw1Ulk5PxbV6KxP6EtFNQJb qDjbngvg3Jt3sFRO3bGMTZgpYVQGu7q8abucogLb58iWHDMhcJIXwFpPgdU7iDaA+T8I KmHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=UW08KhDG; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=xlbpCLxW; 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 y12si4862213plp.47.2019.04.19.02.50.05 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 02:50:05 -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=UW08KhDG; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=xlbpCLxW; 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=i1enIYmmeCuhJyKYHF1XaoMkDP/fT0Vdlv+SXOYO5p4=; b=UW08KhDGP/joIgcphtgoMEv1UF jOco3EMq3jSIZ0kakNN4TgQVoeYn9pOY+GnRw87V6uPmAHqKR820nuCBU+P+JFE1Y2vws01od7Am4 +eh9FBeI7/G/PUJGHALC/qVwdWWBZ/snOpfGsMT/F00TtkOjTIP/Saz9FJeuU026xAsxE55QCblX9 N5mknXxDiq+VnZ2JHohUkWUrokibr8TJEfAERjn1DmDjG9q1+wNxFt/WNpL/LGWH/3u6CYCEqPCYc EID1P5yb9whjxZWXLXUjh0kPNUmv3S/0o8E2QND/FmBP14Qt8Pcr9LwsJzR5uYJrwZpT3opWhQRhi xtCqcfSA==; 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 1hHQ9f-00082L-15; Fri, 19 Apr 2019 09:49:59 +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-0006aI-8e; Fri, 19 Apr 2019 09:48:55 +0000 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x3J9mDiT012304; Fri, 19 Apr 2019 18:48:25 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x3J9mDiT012304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555667306; bh=IOsaHpZ2TEvCn87/LKuhI8uONRrcYXXxxmJ0Uzy6UC0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xlbpCLxWCESSMUFlvymWfpdpzfmpBy5siuyjRgmVq4MOlmuBdkmCkRFunf/87D+Au 1teXLYsl6q34ChxzjyXvCzlsrJoL0QOmDdvA0PYKn2s1+aBZS8pV9I/KELak7OVTyN f+VByoV8WYlJ6z4urXSwQi4RsjLCqrlJSjUWFxWAb45SNg+iZ3uNlUqnCLxkfLrQG1 kxiV8SvJ3aboun9kg5RdF9krWujMw6/u9rYWCOyqvYXry6TeFjPgzW0890xmD08dSR elm5jorLBqWDwDRISFcXPZ/HHz5Wd55C/sWn9rwGPBvO8yd/UGH/PczDNCg0HckLw/ OS+qlLF7podNA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Subject: [PATCH v2 08/11] powerpc/prom_init: mark prom_getprop() and prom_getproplen() as __init Date: Fri, 19 Apr 2019 18:47:51 +0900 Message-Id: <20190419094754.24667-9-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_721487_B7B2B46A X-CRM114-Status: UNSURE ( 8.66 ) 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 powerpc, the following modpost warnings are reported: WARNING: vmlinux.o(.text.unlikely+0x20): Section mismatch in reference from the function .prom_getprop() to the function .init.text:.call_prom() The function .prom_getprop() references the function __init .call_prom(). This is often because .prom_getprop lacks a __init annotation or the annotation of .call_prom is wrong. WARNING: vmlinux.o(.text.unlikely+0x3c): Section mismatch in reference from the function .prom_getproplen() to the function .init.text:.call_prom() The function .prom_getproplen() references the function __init .call_prom(). This is often because .prom_getproplen lacks a __init annotation or the annotation of .call_prom is wrong. Signed-off-by: Masahiro Yamada --- Changes in v2: - split into a separate patch arch/powerpc/kernel/prom_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index f33ff4163a51..241fe6b7a8cc 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c @@ -501,14 +501,14 @@ static int __init prom_next_node(phandle *nodep) } } -static inline int prom_getprop(phandle node, const char *pname, - void *value, size_t valuelen) +static inline int __init prom_getprop(phandle node, const char *pname, + void *value, size_t valuelen) { return call_prom("getprop", 4, 1, node, ADDR(pname), (u32)(unsigned long) value, (u32) valuelen); } -static inline int prom_getproplen(phandle node, const char *pname) +static inline int __init prom_getproplen(phandle node, const char *pname) { return call_prom("getproplen", 2, 1, node, ADDR(pname)); } From patchwork Fri Apr 19 09:47:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162530 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1809852jan; Fri, 19 Apr 2019 02:51:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6J8v3iISRvtg5xru1ebdQvB93F/0dCVa1bClB3s97YxK8JT1EJX+vbDvu7BQ+c0cn+0QE X-Received: by 2002:a17:902:b717:: with SMTP id d23mr2814422pls.260.1555667518040; Fri, 19 Apr 2019 02:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555667518; cv=none; d=google.com; s=arc-20160816; b=Vw61cCq0VgKdE8knBs6T7SFc+SetnkwHVTsc5W5yXvTJsAzK/NHWxCF1oUB5M1USJa Co6x3wKyulMXxEzEgqDoj+ePz+L2+tQNxq26kcV2tpqU34vrIhG4dSRWxXRW8U+oepw+ PnvH9myPObkTBs7dXdGN110FwV5A1zcyPGec9XwOwbOwaHYOLLybq6TEjWoMFDKlxx0k QiUxyFn1NOSm4FKcu1pmppK+ApvyH10v1hImVRUUBD0Gvd5Io5T8ESjlVkayfPRkx+Br 6oLHwH2/3WAgb7glAFB0bzh4jowEAqA+UH/OYuULz4oQzawgWOry40goOGV8XYMZNe2j zJrA== 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=OYho5Vci0uG8k+QIXoOt+ITWJLeVs2PkQFvkRWuiOfk=; b=dxv8J1duhu2BahtPsc3ha9aXelI6H0ZIimD4/Z4KUvaaksb9faZUAFiqMVVisyiEVG 7/69mk0eJcwUw2HJu0gOWFkiS9ILSmv4hsfTRgTKR7D5OxkLlS6zQcyUpazXC1qTHfvZ FwCP8dB4ZdSYWwa7Ez05qOjH9xP6pRLPPYrSwq2Cg8kbus6RGf2eZh8in8NGSfkj0T0w HATH/p49xRU2BYt1+cE0o0NRLAAt9UHXN0kQJIcck0YxW2Gim7FhQJVrNV8xXkjoR/48 ygJ5jOGn5ek2+EgvNX4uHqNElu+F+awrLw8bxOPT6O5CI5LqFDn9odu0v3bHLrw/aei4 ywkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=Cod4pufH; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=jiH6HICA; 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 f13si5593893pfh.37.2019.04.19.02.51.57 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 02:51:58 -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=Cod4pufH; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=jiH6HICA; 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=OYho5Vci0uG8k+QIXoOt+ITWJLeVs2PkQFvkRWuiOfk=; b=Cod4pufHWI/LPUY4V31oosyRDB cLtFXm/tFLDM0gtlRot19A8Wrte45usen4vMCYGL2aj8mPbvfvVxvvjI9Iuhn9qRw9iRenA92gLFu b+4mx2PETtw8POA/fCxr23p9vphhVQ3hHNrnqfRTbNNyD8mhmGEpWnFi2mqxxAjaG7w43Q9M+ecQG hQrYrRu1S8Lk0oE61+euojKvoJs6v0CsDxh7VLuWMnnnrrEXZsGdrK4YP2SQPwAqcL+JObRfaRyDZ Pij6MNACXpNjEZWUNbEw46383DnZl5ldnLqQ9ia+SY5i/jth92fTkMooEeetfaB3kff2SjyNkcmSp X21fNZ1Q==; 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 1hHQBV-00031Y-B7; Fri, 19 Apr 2019 09:51:53 +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-0006aG-93; Fri, 19 Apr 2019 09:48:58 +0000 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x3J9mDiU012304; Fri, 19 Apr 2019 18:48:26 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x3J9mDiU012304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555667307; bh=ZmcBGqsNIopkSvb/z9Yz7Nb+RmV19Ubtd5G31RF7cjs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jiH6HICApN78Kk5hFdRE9UlFB3DbHyO32Exybcj2tFMz2jpLTLwgX2JIw8K1qWK4T E1O0Ew8v+k/nfXa5VI4SNERYU2iuWyUszoCaY8TIGwtXn/On+OQ6Cf6HlcF4EZFBOu QDInHPQIydJH4bbzuu6Xa9Ps+zAFaqOuDnY00oHB3JgAOWUEXovFVa0xxzWMI/qUqh 9sOeDdWNiIdD62ji12XR1RvY2JL7XWAKfttdTlSoHNIoaNkVqvDLCzimUvF2iPf2Z9 j2/vL15IZ64QIadnS1igjZWzEXPL/nGG8jrU+NfUOpmpPCXsyZoz4Ce0wDf84uAPVx cNXO0eCfrYgCg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Subject: [PATCH v2 09/11] powerpc/mm/radix: mark __radix__flush_tlb_range_psize() as __always_inline Date: Fri, 19 Apr 2019 18:47:52 +0900 Message-Id: <20190419094754.24667-10-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_732258_9B37A686 X-CRM114-Status: UNSURE ( 8.04 ) 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 powerpc, the following error is reported: arch/powerpc/mm/tlb-radix.c: In function '__radix__flush_tlb_range_psize': arch/powerpc/mm/tlb-radix.c:104:2: error: asm operand 3 probably doesn't match constraints [-Werror] asm volatile(PPC_TLBIEL(%0, %4, %3, %2, %1) ^~~ arch/powerpc/mm/tlb-radix.c:104:2: error: impossible constraint in 'asm' Signed-off-by: Masahiro Yamada --- Changes in v2: - split into a separate patch arch/powerpc/mm/tlb-radix.c | 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/powerpc/mm/tlb-radix.c b/arch/powerpc/mm/tlb-radix.c index 6a23b9ebd2a1..a2b2848f0ae3 100644 --- a/arch/powerpc/mm/tlb-radix.c +++ b/arch/powerpc/mm/tlb-radix.c @@ -928,7 +928,7 @@ void radix__tlb_flush(struct mmu_gather *tlb) tlb->need_flush_all = 0; } -static inline void __radix__flush_tlb_range_psize(struct mm_struct *mm, +static __always_inline void __radix__flush_tlb_range_psize(struct mm_struct *mm, unsigned long start, unsigned long end, int psize, bool also_pwc) { From patchwork Fri Apr 19 09:47:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162534 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1810532jan; Fri, 19 Apr 2019 02:52:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqydAfnqgsnlroshrJr3tlzZ9vF5Q4FKSxJhzK6Yf6RqGkEuTHjJdBAdhNs8YFaa6tJE1qon X-Received: by 2002:a65:408b:: with SMTP id t11mr2992571pgp.372.1555667571442; Fri, 19 Apr 2019 02:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555667571; cv=none; d=google.com; s=arc-20160816; b=SFutlLg6E6fOSu+QePYRXZqlKh02+2/vThzlY58S5eOmerdFo7/FkYyDFwblfNmI4P J/KkW3V5jg/jPQGSmthwavGFCfaR05gt5esv+vU/UtTPVrS5uEtJo6JrMPdpUEBaYb3o SulR/o3wAhhrocqykYRiQyAQJybdU3EWhLprqZj3TO+iTpbk7ZEbrR7LXiAqEy9jUoED 3MWEdvuuQhU+1xMEyLXW2cGmJrJ+JrqoDjgEQaDH9eYBi4dvPZmAkkmnCC9a089bEzki pLjzwlNUxicheKtLfxJmFvMdX915UnUTe2bJvrEcpF7w6JQjV7qrx9WZb/ROctlqhofJ j7Kg== 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=X2XSpxBMZnmIMeCR5WxckgwirhFzIAqVKtnZ0MSXXTw=; b=Ds/Gg5SAnFUOgLSh4a6lhM4Bitb2RfjUxe/ApwZY2LElyOBhmPyibVHwgsJiOgolqj rCpFS51+w+JHuqDm3sEwNjKzpaETvIb4x8EkGIqh8C72Kwa0vZ0OSAtY9HyHNsEUPzBz H2vLroCA+gqCtDYP6xgsgncqtYctHQDi3GX3gYXDlw9pCSjMddWa6b2YrHRJXKO2leH4 zefmoXFFPKpfDNHsrjPO5CgwDkwez9ZDy36LHQxgU2j+1Cxer6lnrzBgxTXrO6c44/Zr 2Z36yRgbsTcmzBCFx0KYZ+ZMpDwCuhdnjgCxWWYnrw5juczOtghNTjjiVLQfpgN7Gu8+ N04Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b="TPIKQ/NW"; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b="B0BQlA/P"; 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 y8si4755270plt.119.2019.04.19.02.52.51 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 02:52:51 -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="TPIKQ/NW"; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b="B0BQlA/P"; 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=X2XSpxBMZnmIMeCR5WxckgwirhFzIAqVKtnZ0MSXXTw=; b=TPIKQ/NWjwFQHknremckwL3oPf J+DRlzUHVaXpdtETPVpsN5Nu0RdIUTZhh9dfUiMT2GUw8p7A//stmOks3+KDRCnLOgsrwbUBTXp+o ll0N4pSFj+Sm5IleYECLE0pq2e1pYCuwfX/6wQ1ZnCLPGya3IqA9c+gzL6aUroB4v8GkHrzLdB9lj WR1mn/kQSa2mMg3HAy3lgFdGvnuXt1rbWBKYBQvBNmBGGyQPxUZ/Bl0Boxo9RwOo7iFXu5IQm+mou KzFN0gvSGzAFug1nkWPmkKfYmGpP9veLRrIGZ7xjDyGcgFial87tRCnQJ1PGYVPN4hFe5YnTxHj0p 5+vHjUJA==; 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 1hHQCN-0004Fg-M4; Fri, 19 Apr 2019 09:52:47 +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-0006aK-Bj; Fri, 19 Apr 2019 09:49:00 +0000 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x3J9mDiV012304; Fri, 19 Apr 2019 18:48:28 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x3J9mDiV012304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555667309; bh=sNr4ub5sQxS+0LMMMb+j8VzxalFAFd/JYoE5EUyoP38=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B0BQlA/PTYdRhr/cnabblYMwAYhKD6J8OBAnfSjQcaEkjG6yjSsJYkeL42KRC579r PNg66kXGfTKg1PT7Mcezea0Le+TIG2L3R4/go1gHcEczBgXpsHfXnTklxKr73FcJpB pgKBhSPoXPMW7FmxAXFP1oXRnpOJMTmVFfi2T1b21yJJ50Dxj8uphUr9arAF2VZ5Gt iFyTtCd7tSUQLuAgFMsInuQd7Zi7f4y+HfXk6okijLRI07aBA/2tsWZxCbHUU5cMYd OpHcQiZWhdNji5KDIWUGz0avKi8LtEztXO2FBxeNaT2m5466QUP8yjbxpOEGypVmOj xzYLsSTkB+gRA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Subject: [PATCH v2 10/11] powerpc/mm/radix: mark as __tlbie_pid() and friends as__always_inline Date: Fri, 19 Apr 2019 18:47:53 +0900 Message-Id: <20190419094754.24667-11-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_774096_446F838F X-CRM114-Status: UNSURE ( 8.05 ) 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 powerpc, the following errors are reported: arch/powerpc/mm/tlb-radix.c: In function '__tlbie_lpid': arch/powerpc/mm/tlb-radix.c:148:2: warning: asm operand 3 probably doesn't match constraints asm volatile(PPC_TLBIE_5(%0, %4, %3, %2, %1) ^~~ arch/powerpc/mm/tlb-radix.c:148:2: error: impossible constraint in 'asm' arch/powerpc/mm/tlb-radix.c: In function '__tlbie_pid': arch/powerpc/mm/tlb-radix.c:118:2: warning: asm operand 3 probably doesn't match constraints asm volatile(PPC_TLBIE_5(%0, %4, %3, %2, %1) ^~~ arch/powerpc/mm/tlb-radix.c: In function '__tlbiel_pid': arch/powerpc/mm/tlb-radix.c:104:2: warning: asm operand 3 probably doesn't match constraints asm volatile(PPC_TLBIEL(%0, %4, %3, %2, %1) ^~~ Signed-off-by: Masahiro Yamada --- Changes in v2: - new patch arch/powerpc/mm/tlb-radix.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/arch/powerpc/mm/tlb-radix.c b/arch/powerpc/mm/tlb-radix.c index a2b2848f0ae3..14ff414d1545 100644 --- a/arch/powerpc/mm/tlb-radix.c +++ b/arch/powerpc/mm/tlb-radix.c @@ -90,8 +90,8 @@ void radix__tlbiel_all(unsigned int action) asm volatile(PPC_INVALIDATE_ERAT "; isync" : : :"memory"); } -static inline void __tlbiel_pid(unsigned long pid, int set, - unsigned long ric) +static __always_inline void __tlbiel_pid(unsigned long pid, int set, + unsigned long ric) { unsigned long rb,rs,prs,r; @@ -106,7 +106,7 @@ static inline void __tlbiel_pid(unsigned long pid, int set, trace_tlbie(0, 1, rb, rs, ric, prs, r); } -static inline void __tlbie_pid(unsigned long pid, unsigned long ric) +static __always_inline void __tlbie_pid(unsigned long pid, unsigned long ric) { unsigned long rb,rs,prs,r; @@ -136,7 +136,7 @@ static inline void __tlbiel_lpid(unsigned long lpid, int set, trace_tlbie(lpid, 1, rb, rs, ric, prs, r); } -static inline void __tlbie_lpid(unsigned long lpid, unsigned long ric) +static __always_inline void __tlbie_lpid(unsigned long lpid, unsigned long ric) { unsigned long rb,rs,prs,r; @@ -239,7 +239,7 @@ static inline void fixup_tlbie_lpid(unsigned long lpid) /* * We use 128 set in radix mode and 256 set in hpt mode. */ -static inline void _tlbiel_pid(unsigned long pid, unsigned long ric) +static __always_inline void _tlbiel_pid(unsigned long pid, unsigned long ric) { int set; From patchwork Fri Apr 19 09:47:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 162535 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1815352jan; Fri, 19 Apr 2019 02:59:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHnaNoN1fnnLltqvXKdQfgkVYibt2mLDOppasTNuXO785SWfv4N5+d7qFXPha0Sf1hSISa X-Received: by 2002:a17:902:3283:: with SMTP id z3mr2905196plb.281.1555667989130; Fri, 19 Apr 2019 02:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555667989; cv=none; d=google.com; s=arc-20160816; b=ak2ziigv+m8K6c2I1dv5UvmawuKqXtRIwSPWUq7r8HAzsZYxntqyRcY5jevfGcqKLc 13v39fPWE81bunsGAg8KHVe7HnhtLaFo06m5pmUviSvFYhaOs2gW4LoWKs8LBShNXa+y dPGekByCOq6g+CCA5C3luwKPf1ET+VRYyOAgSxFpxTeuIJmnKxW7f2nLLv2hOiVQA5UJ Hw26j7NjhzO1gpC/SPiISHye+VvvJxmBPx397A/nkAYweQHUYx/YBNTz1z01oNZoIFKG GAnxS55gC7ruEXJG2nQCctyenuqWhwDLmo7Ff0zi+1AnLBY+ixSKq0OSEOfRIcZu3jTd xZ2g== 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=F3Tfhcwmlmh7O3Xd05mWaQKZwbsRyaui8UYkYQJPnAQ=; b=Pr+dqCs39odqs1weO7irIhz93rNK0rIO1e+E6CGBya3ohmiMxZ1AYNVjUud6ya1iTQ rCfbIQ1NqahUM616Jav7CL2aGP4ISp63nQC5lCQo37pYx16CyDq3oFaUe9Up9/TBVzHw 6GGkf+632Pl6vdYzTtyfLePrq+ZKsDfGz3maj+Ee8+3C98VmoqXtWyCR2O7uyQbMjJwC dZ3ATPv+ALwQcJK10R1NIazVMgeydGesqELFLUaiHMMaYkFcqBcxXsUT1s88a+O0di2I RB2YaPhFQgnjKyHMLkaBDpO7N+BhH9lLDJ83H6aJKCdbYYOtJTkxt6eItftEMQ1R79rB eRdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=BfwH6Uw2; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=PydnGSji; 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 w19si4749796ply.103.2019.04.19.02.59.49 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Apr 2019 02:59:49 -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=BfwH6Uw2; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=PydnGSji; 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=F3Tfhcwmlmh7O3Xd05mWaQKZwbsRyaui8UYkYQJPnAQ=; b=BfwH6Uw2l6KG6yhXVqQgogWR9V cYqvUtK4FCFOlGvluyMR5hXs3kby5aB02WflqONx428KkPV8urWAK5118C6TkX95ZWBbH9fa1pOiZ i34f9rKQAzYfOk8VupvR2Xs2UWBNMTNKw82fvrfN9ygsX7peS4deX8JF0iI8K2AB+ghDPhTnR634E UegQSlXsDJODppkxJ1JFOk5MEjcMLFlVQhLnyx0SmCcJRourzh2OC4k2QlPjzoC09m5U58ZK3nVzv 4p25y85tfFS62q2nE6yhc2AFE0BM/6hfJDl2/QaGDlslqAe6HDnvHZgLfYzxMY3uU5qZ+dQEecC5M dD3nG30g==; 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 1hHQJA-0006SP-1w; Fri, 19 Apr 2019 09:59:48 +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 1hHQ8w-00074J-0q; Fri, 19 Apr 2019 09:49:30 +0000 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x3J9mDiW012304; Fri, 19 Apr 2019 18:48:29 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x3J9mDiW012304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1555667311; bh=DZH3ndX+jwPMXyZB1kQ4OHEY2QeZuXlzmLdAIaBcM6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PydnGSjiKyIo14J4fAKaV6koaZeZ0EuTcw4Tq4V8uwNBifRf97/8NMU4AZxYotm6W h/czkyZ7MDVZ2xZhy6Byuv6Z4Ztq0jvEL+1rHQtL3Fe/LMX4RBELdDA3ZegwXjdj4m UqJDwhBzKD/pptPsi5aw/KnB/EONfPoQF8eebdfHJaMgBG170Y/dNM8a4ryp4EVyLX Js9Op5+csNk9r2v3z6G8n18zKMuFlHT/YDZazi9Kv9zGOPV9qNMg9QJWzNAvml8NMc aNwXmMoinYdq9Px4fC8i7300TKOZmLWc7fLIBYNhAM/kMZlHf9tWKsM00pZIZMM8B/ CMFiRyUCM3+HA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton , linux-arch Subject: [PATCH v2 11/11] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING Date: Fri, 19 Apr 2019 18:47:54 +0900 Message-Id: <20190419094754.24667-12-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_024914_935637_53971AB8 X-CRM114-Status: GOOD ( 12.80 ) 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 Commit 60a3cdd06394 ("x86: add optimized inlining") introduced CONFIG_OPTIMIZE_INLINING, but it has been available only for x86. The idea is obviously arch-agnostic. This commit moves the config entry from arch/x86/Kconfig.debug to lib/Kconfig.debug so that all architectures can benefit from it. This can make a huge difference in kernel image size especially when CONFIG_OPTIMIZE_FOR_SIZE is enabled. For example, I got 3.5% smaller arm64 kernel for v5.1-rc1. dec file 18983424 arch/arm64/boot/Image.before 18321920 arch/arm64/boot/Image.after This also slightly improves the "Kernel hacking" Kconfig menu as e61aca5158a8 ("Merge branch 'kconfig-diet' from Dave Hansen') suggested; this config option would be a good fit in the "compiler option" menu. Signed-off-by: Masahiro Yamada --- Changes in v2: - split into a separate patch arch/x86/Kconfig | 3 --- arch/x86/Kconfig.debug | 14 -------------- include/linux/compiler_types.h | 3 +-- lib/Kconfig.debug | 14 ++++++++++++++ 4 files changed, 15 insertions(+), 19 deletions(-) -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 5ad92419be19..9e93d109a6cb 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -310,9 +310,6 @@ config ZONE_DMA32 config AUDIT_ARCH def_bool y if X86_64 -config ARCH_SUPPORTS_OPTIMIZED_INLINING - def_bool y - config ARCH_SUPPORTS_DEBUG_PAGEALLOC def_bool y diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 15d0fbe27872..f730680dc818 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug @@ -266,20 +266,6 @@ config CPA_DEBUG ---help--- Do change_page_attr() self-tests every 30 seconds. -config OPTIMIZE_INLINING - bool "Allow gcc to uninline functions marked 'inline'" - ---help--- - This option determines if the kernel forces gcc to inline the functions - developers have marked 'inline'. Doing so takes away freedom from gcc to - do what it thinks is best, which is desirable for the gcc 3.x series of - compilers. The gcc 4.x series have a rewritten inlining algorithm and - enabling this option will generate a smaller kernel there. Hopefully - this algorithm is so good that allowing gcc 4.x and above to make the - decision will become the default in the future. Until then this option - is there to test gcc for this. - - If unsure, say N. - config DEBUG_ENTRY bool "Debug low-level entry code" depends on DEBUG_KERNEL diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index ba814f18cb4c..19e58b9138a0 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -140,8 +140,7 @@ struct ftrace_likely_data { * Do not use __always_inline here, since currently it expands to inline again * (which would break users of __always_inline). */ -#if !defined(CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING) || \ - !defined(CONFIG_OPTIMIZE_INLINING) +#if !defined(CONFIG_OPTIMIZE_INLINING) #define inline inline __attribute__((__always_inline__)) __gnu_inline \ __maybe_unused notrace #else diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 0d9e81779e37..f8f284f46c85 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -310,6 +310,20 @@ config HEADERS_CHECK exported to $(INSTALL_HDR_PATH) (usually 'usr/include' in your build tree), to make sure they're suitable. +config OPTIMIZE_INLINING + bool "Allow compiler to uninline functions marked 'inline'" + help + This option determines if the kernel forces gcc to inline the functions + developers have marked 'inline'. Doing so takes away freedom from gcc to + do what it thinks is best, which is desirable for the gcc 3.x series of + compilers. The gcc 4.x series have a rewritten inlining algorithm and + enabling this option will generate a smaller kernel there. Hopefully + this algorithm is so good that allowing gcc 4.x and above to make the + decision will become the default in the future. Until then this option + is there to test gcc for this. + + If unsure, say N. + config DEBUG_SECTION_MISMATCH bool "Enable full Section mismatch analysis" help