From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 891723009C8 for ; Mon, 23 Feb 2026 15:53:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771862011; cv=none; b=EHMJJ/lJn2casi5+tu0xK/wSDmRF3HMuklwesl4PQxvSfco/uhZAhi5ga4NZ2aS+9ZvRqmY2DbezuSXDYdS2ScDW6rLhdt3fOWlqGz2cBsfxuDz3PUTqQTydK5Lf+M4UeoLBM03R6iOTClCJIIsCSpuUmrergv+gKbN51M84YFI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771862011; c=relaxed/simple; bh=bCWBIMg577xv5L6Dcmzbyj3n7VMxx2znOd+/1gQM6w0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JEdPOVU+uar5WdRKq9oVHrVCKzYXQtPjAIoHO6QkODvxkD3GG0uX4IY15AZHgIEUoB81s9xHfy7JkBiJbuCIrdUHdbmlDN2iNHBzZvP85g8ldHpeDTgYKNBmQXK4T0p8PPhg8g+5D6qUQ4OCHlw/ncv1U4WRBFXyWBHGV/WxGqk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=VgiIUuOv; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=voJCfkHD; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=coWS97kL; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=5nuzYBbI; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="VgiIUuOv"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="voJCfkHD"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="coWS97kL"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="5nuzYBbI" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D922E5BE60; Mon, 23 Feb 2026 15:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1771862009; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bCWBIMg577xv5L6Dcmzbyj3n7VMxx2znOd+/1gQM6w0=; b=VgiIUuOv4eC+dXL/rV7wcUiHN0dGqEIUA60D7XF9GA5Yr0/DPNuOz0Cgp5sforLhE4FqvJ 2E6FRE7YQm7WtcNjBqjongm5FXehG/LU+I9r/108gHhm8YzhBBZoFnGfkLcKLZPvBoWAKf NiFTkucCJnXlJqwNSwjGZHnrSWN9DbI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1771862009; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bCWBIMg577xv5L6Dcmzbyj3n7VMxx2znOd+/1gQM6w0=; b=voJCfkHD05wV5ck2FOq52Puzqr60UkfwrWLfGwJjijERqGPmRfr6ejYuLIi9Ixq8k1KQS2 /huI7VgYu4ssS3Dw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1771862008; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bCWBIMg577xv5L6Dcmzbyj3n7VMxx2znOd+/1gQM6w0=; b=coWS97kLYzRFaEDLQNAHNCcpm98on+YicHh3Zn0Xf3fUuSKhEUSc6kp8i+/NwjYoYSS6oD zxLtzye1tgFCjXC77VkcpqQkJkXEOpnH55aimvBQ+yOYtDKcz1cL/ZU57G0+9OKYeB2Ifp oVytWs1tJ44A9j+6XwDXvzTv1WjyXLA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1771862008; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bCWBIMg577xv5L6Dcmzbyj3n7VMxx2znOd+/1gQM6w0=; b=5nuzYBbIYCZZEYF7rFjt3k7kMG4cDJlVsK9R56suZkP9NLvkddv2+4SptGdD07K8h3LjOg PHD1Gg6VAcrj4uBQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 60C6C3EA68; Mon, 23 Feb 2026 15:53:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id hUHUFPh3nGnbTQAAD6G6ig (envelope-from ); Mon, 23 Feb 2026 15:53:28 +0000 Date: Mon, 23 Feb 2026 16:53:26 +0100 From: Petr Vorel To: Joe Perches Cc: linux-kernel@vger.kernel.org, Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn , Kory Maincent , Tom Rini , Simon Glass , Kuan-Wei Chiu Subject: Re: [PATCH 2/2] checkpatch: Add --conf-dir option Message-ID: <20260223155326.GB19338@pevik> Reply-To: Petr Vorel References: <20260202144221.76765-1-pvorel@suse.cz> <20260202144221.76765-2-pvorel@suse.cz> <985cf97c90eb50cc6b205939b013fb16420243e1.camel@perches.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <985cf97c90eb50cc6b205939b013fb16420243e1.camel@perches.com> X-Spamd-Result: default: False [-2.00 / 50.00]; BAYES_HAM(-3.00)[99.99%]; SUSPICIOUS_RECIPS(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; HAS_REPLYTO(0.30)[pvorel@suse.cz]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; TAGGED_RCPT(0.00)[]; RCPT_COUNT_SEVEN(0.00)[9]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[vger.kernel.org,canonical.com,gmail.com,bootlin.com,konsulko.com]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.cz:replyto]; RCVD_COUNT_TWO(0.00)[2]; REPLYTO_EQ_FROM(0.00)[] X-Spam-Flag: NO X-Spam-Score: -2.00 X-Spam-Level: > On Mon, 2026-02-02 at 15:42 +0100, Petr Vorel wrote: > > ``` > > This allows to directly use project configuration file for projects > > which vendored checkpatch.pl (e.g. LTP or u-boot). > > Options from the configuration file has been read before processing > > command line options with Getopt::Long since the start (000d1cc1829f9) > > because options read from config file needs to be unshifted from command > > line arguments (@ARGV) before processing with Getopt::Long. Therefore > > parse --conf-dir with direct reading @ARGV. > nack. > Extend 'sub which_conf {' and the perhaps the code that uses it > if you really need this capability. Thanks for a hint. If there is a chance it will be accepted I'll have look on it. We would certainly appreciated not having to carry yet another checkpatch.pl patch in LTP. > Though I think it's not all that useful. We use LTP in makefile targets run from various subdirectories. For that we define our checkpatch.pl options (--ignore list and others) in certain Makefile. Then we have b4 configuration, where we also use checkpatch.pl options. Mixing cd to rootdir and passing path to the sources is of course doable (to reach config file in .scripts in project root directory) but quite ugly. Also, allowing to pass a configuration file (quite common feature for any software) would allow to run checkpatch.pl with different configs for different projects. Kind regards, Petr