Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3550257pxj; Mon, 24 May 2021 09:10:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLnCeLxmJR2EKGH2JZcuJ69Arz8WFXKHd8JqYEd+WDC4x9tziLnfZS4syAszyJKDLsghcn X-Received: by 2002:a17:906:4e0d:: with SMTP id z13mr24439828eju.343.1621872608911; Mon, 24 May 2021 09:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872608; cv=none; d=google.com; s=arc-20160816; b=lDMuqHIG45XVFI+i2/cqo0KqscwePssEEkMv0zxg+QJM+lIGZJ4TRhlyZHhByAu6yQ tpmiRTS6QorlWOKx7X1yBG5ACOWkayvjGdxdDLG/IYB1eyo6vEcGSuk1aGYWwqfTn3a/ oLWy4SSjO/8bGg20aXnf7W8OFcVqgUv5+C8pMh1Jg+gwU/VdkYBm0mKt+aftr1k0+F4V SyZQjgu2vXYOJBPpl611goVCF0TAFd+ykWODulvrsHZ7SzV+LPg7QxyjmraOemo8S+I1 0JmO5hwE6ipFAmYVZhXtMADuV5uIxUEQXCCu0RX6fIqplY92Xmh8Gq7U9NtwynbEkQBc SbMw== 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=Iy6vPtxUn2WD/WM9lwTmui8fUUuM4gn/ADCAVpqJ0V5jhE96q1p8bQwlhJRsA7y5j1 Ah7y28hwTxStQrZWGDmKYiGozKh221dU+zoB968onuBQYUpwRYWWDYgtqV/fltmb9w9q z6U/+7xtEc/j3W9S5L4qz0of6cQGwwAHZCDXZOvNm+nF3Wum5tJ7flq+SwhfUqH9JyZF uqW5TGK7Cyn5fiI644LLFd+Tf5Ga2WIyUw7331aLtyJl6T3QkdNXmAGACdUw7rzGOeLl ynee4IvUYiOWvNh3zglrpH1sIp7dAOXavQMcSvV5npN8jl+2CPH6CHh8+lprj29xPHwk B9Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hPjj0ok6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 u2si13382138edc.210.2021.05.24.09.09.46; Mon, 24 May 2021 09:10:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=hPjj0ok6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S237404AbhEXQHv (ORCPT + 99 others); Mon, 24 May 2021 12:07:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:45006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235751AbhEXQAJ (ORCPT ); Mon, 24 May 2021 12:00:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9FDF561465; Mon, 24 May 2021 15:45:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621871151; bh=5mib4CZtgWgB8CCMyhXcqN7oYJH/iNBMul8UDElOprg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hPjj0ok6ZbgCTFfYRUD2ygl8ZwvU80NiXVbR9RUA0FdN6AvKFd860vqNqvHK6NR0L 3TSYWv0f2NcRuF5LkMCq3yKP4hdPHGd0IyEmdWCaa+TOkXxRnTqsjcLkLfJtCPdSnZ T9BstwoT2sxVNTyZjcqv8986TQjpyj67qcuYLpSY= 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.12 095/127] kcsan: Fix debugfs initcall return type Date: Mon, 24 May 2021 17:26:52 +0200 Message-Id: <20210524152338.068283646@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152334.857620285@linuxfoundation.org> References: <20210524152334.857620285@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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);