Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp30628pxv; Fri, 30 Jul 2021 17:43:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7PFlZmSXWKNUlpsNAK1V1UBcMOqiKSxaIv2RV/n6sa1lLtFFvmY7ByrDQ3NEiHNUCpDT2 X-Received: by 2002:a17:906:fb11:: with SMTP id lz17mr5386757ejb.336.1627692221545; Fri, 30 Jul 2021 17:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627692221; cv=none; d=google.com; s=arc-20160816; b=hJXK8JUETgk2bWZfodWZSwnbeYXVcY7/BIlCWPC17Bl6zpC7skKuxc90b236+zbaQe U19PsS5H0WEQ9d1frYx+1lhHk8nnaKcIAEe1Q+73vv/Lxe7au3QKdpDivWPgD6p39mee ocuuHrZ2UA44f6XgqI0Jc4C1nnzODzdTeYwF+AlTOU3onvYGeIUrEkhLN+Pe5bO7UVkO HkYvDC5UCxlDvhpu/sqkJQc7GEPa8FMr90wGiAFkqK6R3HDWLdrAJjbZqj/Py0B7YD// gdiZKBOHPDIYnoSk6o6VSlaFC6JXFc3UzjmYu6gCKBXwjj9URZCtsVHawOjdQBduyVsN nFKw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=oUMC/HWfZqkiHf93j9StyYqXInLizeAPL6cTyex2TF0=; b=nKQenjp+X54+5ZM4r43fyg9YOwWg7gZQ3bNgUlQ7mif9KFslOSQdORqpLUn3tvKuoz J8EV7xc43wK/E/0hz+VI8QI6vBv71dRuVC7ogTKhjouKSSxSL5/OFHP0pO9uInl11VP0 sJ04EGfjcbRUvjJ6SIlE46iDJS/6zJw9m3SOZXx2+xTCb2ddkX0bd4ZKoX8BcCOndYzT lhckjmF+ZXpfUd1fC2Jvzc/QuImsGps7XwnyvPj4YFHYeE7MMLrLEuV3q1Jl607E5tD5 K+CGAlIpTSxInSb1g87HlQoN7uKNCpvF32B84e6H8bE7vEYEqqMR3aLxo0JBcN9NAjRB +KiQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gg11si3558375ejb.41.2021.07.30.17.43.18; Fri, 30 Jul 2021 17:43:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234742AbhGaAlE convert rfc822-to-8bit (ORCPT + 99 others); Fri, 30 Jul 2021 20:41:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:51124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234385AbhGaAlD (ORCPT ); Fri, 30 Jul 2021 20:41:03 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E5A176044F; Sat, 31 Jul 2021 00:40:57 +0000 (UTC) Date: Fri, 30 Jul 2021 20:40:50 -0400 From: Steven Rostedt To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, Matthew Wilcox , Ingo Molnar , Daniel Bristot de Oliveira Subject: Re: [PATCH] trace: eradicate noisy warning in trace_osnoise.c Message-ID: <20210730204050.46975ae2@oasis.local.home> In-Reply-To: <20210731000055.28876-1-rdunlap@infradead.org> References: <20210731000055.28876-1-rdunlap@infradead.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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 On Fri, 30 Jul 2021 17:00:55 -0700 Randy Dunlap wrote: > OK, I'm officially tired of this noise warning coming from > trace_osnoise.c, so shut it up. Also, adding new warnings is not OK. I agree adding "new warnings" is not OK, but this is a stupid warning. > > ../kernel/trace/trace_osnoise.c: In function ‘start_kthread’: > ../kernel/trace/trace_osnoise.c:1461:8: warning: ‘main’ is usually a function [-Wmain] > void *main = osnoise_main; > ^~~~ > > Fixes: c8895e271f79 ("trace/osnoise: Support hotplug operations") > Signed-off-by: Randy Dunlap > Suggested-by: Matthew Wilcox > Cc: Steven Rostedt > Cc: Ingo Molnar > Cc: Daniel Bristot de Oliveira > --- > kernel/trace/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > --- mmotm-2021-0728-1824.orig/kernel/trace/Makefile > +++ mmotm-2021-0728-1824/kernel/trace/Makefile > @@ -36,6 +36,8 @@ CFLAGS_bpf_trace.o := -I$(src) > CFLAGS_trace_benchmark.o := -I$(src) > CFLAGS_trace_events_filter.o := -I$(src) > > +CFLAGS_trace_osnoise.o := -Wno-main Why just add it here. It's a silly warning to have for the kernel at all. Should this not be added in a more global place? -- Steve > + > obj-$(CONFIG_TRACE_CLOCK) += trace_clock.o > > obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o