Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp758319pxj; Fri, 14 May 2021 15:23:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPt8ZlqFy87UsPfuJjKT5o9091a+3qa7C/iYXt7dewZQGB25Nq4b9lmE4tC1zP8vNlrjc/ X-Received: by 2002:a05:6638:120f:: with SMTP id n15mr26620081jas.56.1621031007000; Fri, 14 May 2021 15:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621031006; cv=none; d=google.com; s=arc-20160816; b=rv7FCN57cTrDrGYiihf74itx9ldJ2YiAKFjfitGh4K1DdM8Cb8zvqZM4diz9Jzsnsm QUISCvbC5uCgKcdvfTrt7AGryCZrzfNMVup3YNfYhIyDwgKVDLUs/FW88Yd6AQf9BBCv +YktujlwYA5vA5r4p7qQxeFh+xud1DCvyqQFo0ez6gEVsmvIAVTUS//4bKAtNIXkpp1l WctApzwewGk6cuUWO58np2TafVfxKH/X6w/djPJnuqtUGgpgntxNc7MwMTADYsth30cC vUltWFzxr9DgFn6dcmkm/vEWumjzKzm9ObbdM68bpvZ2EWm0TBaTQdP6mr0iyBApS9kk d2pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0Nxy7Xlpzt2QAaXIetxrlxgQk9jtY2mWLK0b7dOuIHY=; b=Qmrhj0jyfqFTnT8oKU0DtE/WPNcNieV1+VT/zE4CFUD/FkZAm75VRYXAEhhVlF4n04 hEvxk1lV2UlmOfrCvovIZ6xbxcbVxnokI7AV9wz0oJGL5gYlCRJWTqfooPRObISnbSdB AmLJ40+Kcg2+O0ewe+fmCCVP4XC5DJtF3iWvRi/tBkJusty80+/5t7PdE0RA9d0fmp/V 9yZaGdQwKJhu0lYZD2MmKQk20fDEF8k1WQwmL151QuS6cG0ZNUHflnzfiMuN+PW2Lh4D TyusiYSBNeDUJJa59Kx8W9eMSdYfM28PZVJZTOxN9Vjklzlm8Oh/VnUwKFXvEDuCzrUk wk5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KXerAm9P; 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 u12si8327089jak.73.2021.05.14.15.23.13; Fri, 14 May 2021 15:23:26 -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=KXerAm9P; 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 S232887AbhENOLy (ORCPT + 99 others); Fri, 14 May 2021 10:11:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:33940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231373AbhENOLo (ORCPT ); Fri, 14 May 2021 10:11:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EC583613E9; Fri, 14 May 2021 14:10:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621001433; bh=GvOgMOa5ZuePNrd238Dh7TPxvxow4q6donvCFAtghLQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KXerAm9PrBDPzWTktpYwR4+YFKSIxBt4j3EvqLh2IX1ykHK6khxQKY40CFM+RfdAe r1lmypdoUs9Un+2Yz1kxaYhV1+cxiqq1ilYhdBsqOuzSv1RXm1TrgZ/6ZBe9LTn1S8 +h/oQwpoJRLhlS6Gei0wVLnAcSJ994NnUwHeAqIA= Date: Fri, 14 May 2021 16:10:30 +0200 From: Greg Kroah-Hartman To: Arnd Bergmann Cc: Marco Elver , Nathan Chancellor , Nick Desaulniers , "Paul E. McKenney" , Arnd Bergmann , Dmitry Vyukov , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] kcsan: fix debugfs initcall return type Message-ID: References: <20210514140015.2944744-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210514140015.2944744-1-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 14, 2021 at 04:00:08PM +0200, Arnd Bergmann wrote: > 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 > Reviewed-by: Greg Kroah-Hartman