From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161009AbcFOUqu (ORCPT ); Wed, 15 Jun 2016 16:46:50 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35097 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751884AbcFOUqr (ORCPT ); Wed, 15 Jun 2016 16:46:47 -0400 Date: Wed, 15 Jun 2016 22:53:31 +0200 From: Emese Revfy To: Laura Abbott Cc: linux-kbuild@vger.kernel.org, pageexec@freemail.hu, spender@grsecurity.net, kernel-hardening@lists.openwall.com, mmarek@suse.com, keescook@chromium.org, linux@rasmusvillemoes.dk, fengguang.wu@intel.com, dvyukov@google.com, linux-kernel@vger.kernel.org, david.brown@linaro.org, yamada.masahiro@socionext.com, minipli@ld-linux.so Subject: Re: [PATCH v9 3/4] Add Cyclomatic complexity GCC plugin Message-Id: <20160615225331.abb990e0302757ea9a6a3500@gmail.com> In-Reply-To: <041e2196-2213-725d-64aa-8526b23bc618@redhat.com> References: <20160524000719.b456ed0cd2aafacb4e53f177@gmail.com> <20160524001035.081cbf822a62b274ad945dc1@gmail.com> <041e2196-2213-725d-64aa-8526b23bc618@redhat.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Jun 2016 12:29:59 -0700 Laura Abbott wrote: > On 05/23/2016 03:10 PM, Emese Revfy wrote: > 1) make mrproper > 2) make defconfig > 3) enable GCC_PLUGINS, GCC_PLUGIN_CYC_COMPLEXITY > 4) enable FUNCTION_TRACER (it will select other options as well) > 5) make && make modules > > ERROR: "__fentry__" [net/ipv4/netfilter/ipt_MASQUERADE.ko] undefined! > ERROR: "__fentry__" [fs/efivarfs/efivarfs.ko] undefined! > ERROR: "__fentry__" [drivers/thermal/x86_pkg_temp_thermal.ko] undefined! > scripts/Makefile.modpost:91: recipe for target '__modpost' failed > make[1]: *** [__modpost] Error 1 The patch below fixes this bug, but I think it is ugly. https://github.com/ephox-gcc-plugins/gcc-plugins_linux-next/commit/73e2d117daa7f3c6aee8935ecbb318354ff9cd82 If anyone has a better idea to fix this, please let me know. Thanks -- Emese