Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp753432pxj; Fri, 14 May 2021 15:13:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx48Qgnr38gpitWeAOspb+ITIn0aduziV5F8fUDSjX52xd8iDcPS9RGwRgJlVUJBJEj3FLv X-Received: by 2002:a05:6402:1158:: with SMTP id g24mr22555041edw.134.1621030425374; Fri, 14 May 2021 15:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621030425; cv=none; d=google.com; s=arc-20160816; b=M9+PwehdZgw3i/4/yUI9vQ2inzbrKuadJppH+lfTzvQpOb+8+Pxz7QGs0UiJSqYZx7 JlRuKiswk9cyax6Q7fjwgPXUVB29Uvxxk3YhsrmZ9yEoqK+4RClwicgeaR3JPpYP8wTs neR3g8XlGZtQ36eQ8SK1Wk5PTLjfnDTgECzqOYeGtaJFm80Fx3wKqEysv8O7iP4i48Iw vKQge3eyPPWS6y+FLMmKg6ljWS76NAxprTUXE5YspL37bXlqlPgFu58V83rJoEUlxSl+ vtQDRAUD7klR5i2GrReC/ASzT6ecViRFPYFTU/4Dac4dqTdgiQxufe+rZ2Czl8qg1pmu wD8g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=LyHlpW2UlOKG0QIogMUPiiTW9+pWu5cPlFoocFtCwuA=; b=wUFE/OewckCweIDSPfwuJ/TufH27lCdddUUgUexqt0Zl/V7lDzQFz4DGeIcc7pMJ7I 381ARcn2jeni9DPWXqqGCLdo5PPvDQRn1A+eohaGi3aDMIQ75dhwMjDf0QbOgl3M8xlH zLZdEBHl/YYi9SdMOuzTUklz9swruCdiQa0HT+qm8OBp4YTbKl9epCBP6+gvx0lQ7D7m hBzpsrq68tiCndKvdqBnmspRPcRuBLEPWYyzcgNKSwa3If1fBTSlp3XOLZS0z335sLsZ PeKA5wSNqkEN8GL+AxDrQHoJE5Z3UbEoYcm6L4cvnzuMIbl/bzQTbozm25+BmTMc0Xd7 3fNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="DJxi/6vL"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl4si8595030ejb.17.2021.05.14.15.13.21; Fri, 14 May 2021 15:13:45 -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=@kernel.org header.s=k20201202 header.b="DJxi/6vL"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232650AbhENOCS (ORCPT + 99 others); Fri, 14 May 2021 10:02:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:59832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232397AbhENOCQ (ORCPT ); Fri, 14 May 2021 10:02:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5158561461; Fri, 14 May 2021 14:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621000865; bh=YBVxDA2n6V12Lg0MDx+EkiBQUWg1cEDOi3hovOPwyRU=; h=From:To:Cc:Subject:Date:From; b=DJxi/6vLAssmX79AjKCqNcNybte1yFq0SExBZ0p+CY8sOvqBFkK3BRK+FcHOJoEvn hiY8ZJph2Z9qckfU/R3neyXLvAhmqLuoYek79SJC1AffwfYqi0n4q9fl3bNNgbOZHU HSTC5+GMeZcu4XhHLkRc4kbGxfdkjEXrRPouOdtt3VmSLhGCGt+0LwZtABf087h4kV QFC4GYBEb8CIEakXkVGh1Pa8REff0/gutm7nCDzZfQqTOmjMHn0f/nn8YSMkxhccH+ NyMyFggQHl93St5DeTsLupFiDpXAXiGFPU4yCj5ga/I20NHsW29VMQAeQYxMEowrZk xcoHS9oxXtklQ== From: Arnd Bergmann To: Marco Elver , Nathan Chancellor , Nick Desaulniers , "Paul E. McKenney" , Greg Kroah-Hartman Cc: Arnd Bergmann , Dmitry Vyukov , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH] kcsan: fix debugfs initcall return type Date: Fri, 14 May 2021 16:00:08 +0200 Message-Id: <20210514140015.2944744-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann clang points out that an initcall funciton should return an 'int': 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") Signed-off-by: Arnd Bergmann --- kernel/kcsan/debugfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/kcsan/debugfs.c b/kernel/kcsan/debugfs.c index c1dd02f3be8b..e65de172ccf7 100644 --- a/kernel/kcsan/debugfs.c +++ b/kernel/kcsan/debugfs.c @@ -266,9 +266,10 @@ static const struct file_operations debugfs_ops = .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); -- 2.29.2