From patchwork Mon May 24 15:26:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 446460 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2b0d:0:0:0:0 with SMTP id gc13csp3788895ejc; Mon, 24 May 2021 08:56:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt1kyqpPD91RSsz/fsacBM6/Mba9qQhzWQNNA+4SsHFu3xjHNC507nlOhEGzuE833q6jVg X-Received: by 2002:a50:d69c:: with SMTP id r28mr26409727edi.64.1621871694940; Mon, 24 May 2021 08:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621871694; cv=none; d=google.com; s=arc-20160816; b=IjxbyMCk1/LAALOdi16j6K+lyaP1uYpOLDPr1X9pooZuJKhJvb0TkJSKsh8r5pN2tp WTV/V693WXr6z2E23+3ba84YQhXhw8ZzIWKh/7iaZg9Zv20/ckiWViBuD/cbCO0alBtp SKUr1vyctZRfArpBw9EPHz5AJMsdcquT3c+y+kmpglU3UXpz2/5owvC/xLaGEtlF+g01 LDJu8iLE0JyU6irL3v9SnNDk4P/J/UL5IV4nRpo/ocmGZSBRYt2X+DkhbN1atZClDcnn CoB7svglopmHPOWvvc+rdKROHGt5sKnjZ8nsEYadOtB6H89k/ONAhjo8GQOp5FCCooq3 X1eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=i4M1rimmnjquHBFo6SXnyeF45F6bbZStigwxCZ7P0fU=; b=RuXzxDQzymPhA+H40FKO3GVFeRQniyKEfjIbFJWKHjJXanKbCA+X5Zfo1rB8WZJ6dR YuihflyPRZUdbz7zhRXvCZyo7fre+F7CNZI25QQ/GD0ie56wKwvPnmmfCkyjoNRGYdaG p8EF5LyXreUHlCLDYJJVzafAenTK9JyqdlnN4YHeGvpc8e0zwJ+0bAauo7WPTCRo8Zvw xYFF+DecuMH2I7wJZUevsVcw8GuefoKlDZxMP/tfNadw+shAOKpGBo/xJqJ+F7ZLzs9L fQXNPMR1MobdO7i+udcsVaGY3WOThxQR4M1aXnfskBc2y8l5xUpBQh+/dT6ZUoPq8JTB XqpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=D6B7DmZS; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si4407336edc.332.2021.05.24.08.54.54; Mon, 24 May 2021 08:54:54 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=D6B7DmZS; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234958AbhEXPz4 (ORCPT + 12 others); Mon, 24 May 2021 11:55:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:38718 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235398AbhEXPzH (ORCPT ); Mon, 24 May 2021 11:55:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 622D96143B; Mon, 24 May 2021 15:41:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870870; bh=5mib4CZtgWgB8CCMyhXcqN7oYJH/iNBMul8UDElOprg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D6B7DmZSU1xMbq01m5yTt0Xa3KrCMOBXY4f75VPss8wFIiMUpIGVbi3iADu5hs0ek rdsnR69s43p99LkUTndGdHXHzVVjzczcsIbiwn+onUU7oZgvUIXgGNoC8N76pXmdux fqfLA+/jc953QtVyw/Rx5WP0PNPSHd95F59Cswb0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marco Elver , Nathan Chancellor , Miguel Ojeda , Arnd Bergmann , "Paul E. McKenney" Subject: [PATCH 5.10 072/104] kcsan: Fix debugfs initcall return type Date: Mon, 24 May 2021 17:26:07 +0200 Message-Id: <20210524152335.238157502@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152332.844251980@linuxfoundation.org> References: <20210524152332.844251980@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann commit 976aac5f882989e4f6c1b3a7224819bf0e801c6a upstream. clang with CONFIG_LTO_CLANG points out that an initcall function should return an 'int' due to the changes made to the initcall macros in commit 3578ad11f3fb ("init: lto: fix PREL32 relocations"): kernel/kcsan/debugfs.c:274:15: error: returning 'void' from a function with incompatible result type 'int' late_initcall(kcsan_debugfs_init); ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ include/linux/init.h:292:46: note: expanded from macro 'late_initcall' #define late_initcall(fn) __define_initcall(fn, 7) Fixes: e36299efe7d7 ("kcsan, debugfs: Move debugfs file creation out of early init") Cc: stable Reviewed-by: Greg Kroah-Hartman Reviewed-by: Marco Elver Reviewed-by: Nathan Chancellor Reviewed-by: Miguel Ojeda Signed-off-by: Arnd Bergmann Signed-off-by: Paul E. McKenney Signed-off-by: Greg Kroah-Hartman --- kernel/kcsan/debugfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/kernel/kcsan/debugfs.c +++ b/kernel/kcsan/debugfs.c @@ -261,9 +261,10 @@ static const struct file_operations debu .release = single_release }; -static void __init kcsan_debugfs_init(void) +static int __init kcsan_debugfs_init(void) { debugfs_create_file("kcsan", 0644, NULL, NULL, &debugfs_ops); + return 0; } late_initcall(kcsan_debugfs_init);