From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753734AbdEIURR (ORCPT ); Tue, 9 May 2017 16:17:17 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:59491 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751095AbdEIURP (ORCPT ); Tue, 9 May 2017 16:17:15 -0400 Date: Tue, 9 May 2017 13:17:14 -0700 From: Christoph Hellwig To: Randy Dunlap Cc: linux-kbuild , Dan Carpenter , LKML Subject: Re: sparse on scripts/kconfig/*.c Message-ID: <20170509201714.GA24001@infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 09, 2017 at 09:47:41AM -0700, Randy Dunlap wrote: > Hi, > > I've been attempting to run sparse on the kconfig/ C files -- without success. > > The kbuild files don't try to support CHECK in scripts/kconfig/ AFAICT, > and just running sparse on the C files has issues with not being able to > find header files. > > Has anyone done this? Any clues about how to do it? As a wild guess from using sparse on various userspace projects: have you tried simply setting HOSTCC to cgcc?