From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f169.google.com (mail-dy1-f169.google.com [74.125.82.169]) (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 8A48D34A763 for ; Thu, 26 Mar 2026 23:04:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774566290; cv=none; b=Z8aIjkJ3aCpuH1JMNBMOY1svplpikBbXFsv2QZshrai+Wu0k6ExftGglErbrDCQgbWlPRDyDTQTZD6Zal4+gr8t9ITLqD3QLpQm9/9w5aIsrARrx88OIHiBVbFHsN2xBNggZY6JP3Eqy7HjB17lFkNfHI5eOYUxpqVgFJHoy+UA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774566290; c=relaxed/simple; bh=8r9B0vRE6EiA181w2hcVDUmzOkvpGi+aSHWukcy3ilo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FY3dkubRpogQzdmwV3gmbmUMteplDK+JdZftBNB2Gand2dkQ//2uE2C/seb1bLjhyGoOJ+bS8wBKeYAGinWADKd8F+fYf9xjODyHL2d+/fu0kFItP6FtegCVmpDrnUfauZK7o0X++R185R9mO3Dfi/i9D7LkSNRVew/KD4ilmxg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UrWfkGcX; arc=none smtp.client-ip=74.125.82.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UrWfkGcX" Received: by mail-dy1-f169.google.com with SMTP id 5a478bee46e88-2c17d152c01so681096eec.0 for ; Thu, 26 Mar 2026 16:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774566288; x=1775171088; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NjHv67kGh2JehAb4kr7vwaSeF2kQTBFbihDLeYV9JV0=; b=UrWfkGcXPSJQhe6AJNX00VaAd/aw8R9wjyJEzxetOtmEU4+fwfAGAiwBX2YAOdGpYQ aCwB9iclNA7erB5nGbNSxXpEC6ygu6eQlHrXs/+YTmb2pd/iQuLeJ++HJERR0OmsfMV/ PTyvHORznojKkOOgJeOTMm9Bp1Z9W0tpBwaXpbUoIcK115pR/TojWQPKsAr/RaD8YnT5 uDWoPzeMHc68LqibBoUhGbHYoJQApeJZiqvToNjYZik6W/K238Ui1npP5AW3FYfcXKCf dtPMdATqcaNaPc5lYpNZhOjsk4EFBa3krxtN5N3b1Q0da9hbhH/Pw75stFA9nlSPWy0p AeoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774566288; x=1775171088; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NjHv67kGh2JehAb4kr7vwaSeF2kQTBFbihDLeYV9JV0=; b=iAu1u7bphEn5vimHxv/a8byu2Q9njD+G8C6sLseKliKZtvd7i7zPhDuDyVeu3DKUKt 0ZpkwR0C3ke5qWoRQ6DJIQ9vYsU8gk1a8qWrJ8SRyXQfhcdTeKgF7QuS1+16SMqwCDZf bC6j3ryZ8l2DlsSHby3WjgUdLpKgZaId6FsVSiQzRj5qSTM5x3k2ts48su0ZxvKnexaA 5DPmIU+ljk4MJme10ySY8mGq7rCsYhWPEG7Cye2twKaGddLjDze5ClPMd9YgIZmhFNes sawIl7bwQFcDpwqr928e9GoxFu15kaPV3tvPccbx02REHhA6WSrvr+EY5j3dpnPTDhg7 r3uA== X-Forwarded-Encrypted: i=1; AJvYcCXrvvEjIf6kB0hu1IOr61w9Tel2FLZDbZ3bzymyF0bvipju+u7kyordqxo0EXP66YWV4ShapocB8gNhEBk=@vger.kernel.org X-Gm-Message-State: AOJu0YxG1mAARATaR6cczQyEniIaSWWJeVMTWrJ1TCjiVf/TYQLWz0aW wxn4g9PmyANv6EM1JC2yA11wVf4sZG421UydSB3tNp0h6HCJgtBdviHe+X5Img== X-Gm-Gg: ATEYQzxQQ5ksgH32WWneAYgiIzsUjkD1OT+lxxTVma6gOuJTjOFW/VeCHbHpSVvlvai HULeeIE71hcqETbyxxCC7Wpo4KMXK+8Vnsg7ZnReWXgt6X7Du2nk7es+4whDB+p+sTCsjX8XGgP aXH0MTFdxiWQj7elMYOXhijjYLHcxg9ptoTO/eekXy3GYJE0jZP3MQRgeJVNaGBfH5IMw6UMctd tVYuzmf6JF1p3tw0kmnBi4TJ8mpD/mYip6g6QbBigqExTuN5I0Az7PLBMvS1hji6oVw+jsSYjWf 9jMoYRjuS+85TaLNCXvheIymBpbblyGeQ84CdoUHr1GqyNWrckWSZidUn8Xp2AaKdHm5F4szOZz 3RZeaEARnb030KihH6Q58D6XLD6iGvRi2+aZ4XoPFlhb3DbU4/xjsWM9PWzC5BuoP9ghHaVld2H OezcNBx1zktmjTWI0vvf3zXxf/iqnPg8Vb4na7isFNCqnaZrX26rsH+JfnVRoL8QVg5fZ5m57wW 3o= X-Received: by 2002:a05:693c:2c0c:b0:2c0:d04c:a6a6 with SMTP id 5a478bee46e88-2c185cdd1e9mr294650eec.6.1774566288057; Thu, 26 Mar 2026 16:04:48 -0700 (PDT) Received: from google.com ([2a00:79e0:2ebe:8:c497:6d9d:a11e:c553]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2c16ee01674sm4167539eec.27.2026.03.26.16.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2026 16:04:47 -0700 (PDT) Date: Thu, 26 Mar 2026 16:04:44 -0700 From: Dmitry Torokhov To: Joe Perches Cc: Dwaipayan Ray , Lukas Bulwahn , Andy Whitcroft , Jonathan Corbet , Shuah Khan , workflows@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] checkpatch: allow correctly handle full files on stdin Message-ID: References: <117b6a4c164a9f0ce348044152d00ac22b31b81b.camel@perches.com> <34318752a257b0f6b530eacf53d565de1ac84485.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: <34318752a257b0f6b530eacf53d565de1ac84485.camel@perches.com> On Thu, Mar 26, 2026 at 03:56:27PM -0700, Joe Perches wrote: > On Thu, 2026-03-26 at 14:42 -0700, Dmitry Torokhov wrote: > > > > Because when I am editing a file I am not saving it all that often. I > > > > want to have buffer diagnostic updated when I leave insert mode in vim. > > > > > > I believe you are able to keep your own version of checkpatch. > > > > As well as my version of the kernel, gcc, clang, editor, git and so on. > > > > Do you have any constructive feedback? > > I gave you feedback. You elided it. Could you please point me to it? All I saw is "just save it" and "keep your own copy". Neither of this suggestions are particularly useful. > > > Right now checkpatch is broken > > when using "-f" with stdin and I offer a fix. If you have a better way > > in mind by all means share it. > > Note the name. Feed it a patch. It works fine. It's not broken. This option is a bug then and should be removed: "-f, --file treat FILE as regular source file" right? In all seriousness, if you will not make use of this mode it's fine. But it allows keeping the source cleaner as one makes edits, so why not enable this? -- Dmitry