From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f176.google.com (mail-dy1-f176.google.com [74.125.82.176]) (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 39F7F3491CD for ; Thu, 26 Mar 2026 23:04:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774566290; cv=none; b=PHsiKT5p9E0P42KM6ON23vSKRVYcsLVVM9vM3o5aNB2j1s1xa/zr8wbu09jOXX5b1OaSEv6VU4cXoc2MklhMcza2ZnRQVL8qXCNOVuzWz/wAlduMld2D1Fnz15pZs5pNCsebbzyY6Ka0nhCozUuVnPlrdIFfiD/HrvtIxbdRGo8= 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.176 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-f176.google.com with SMTP id 5a478bee46e88-2b6b0500e06so2134689eec.1 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=RNMo+RLvmdVawu9cUeM0U2BkEokxx/GV6f4a6jiH1otqyk/46lA2SzfgBKuT0hI7Wx /HEiQMRSBM4vv6BuKFCaNQpaIfbS578m0bQUlAByIlvwTxrjjna22YoqxQYJbm1NYhOF DOipLJSkm1t1VAXeUU5myWGwXgdADd3wNyewWvwSgIkZBeZKhTfIF09lWztHb3s4kqGU X3s6GPVU9Q0+niy8ulLrwRz+4D5ax7zilW4d1/FWvT2bNtewctozuCFFJYE4Qc8xAHdS 14WTrvlNFIZH4rEunIGBGiUG7K1jGW/42xckH3TY0XviOUXSquAZCF7jxRqx5Gq9BMlu jsqQ== X-Forwarded-Encrypted: i=1; AJvYcCVctVYOJcfdRrnDGOJY+23qho8ytWkxhxoVBYeWwl7eWCVBix+PGjXQJPMuLRxv7Xs77SYB1KIEgg8=@vger.kernel.org X-Gm-Message-State: AOJu0Yw3zoJvewCukmvK7vpd8rH9tlOXBz10Cpk09i/xuQ7ZPmot7Drk nUVy/SFcrUbHA6IZmXm6PaQOUmGbCt0sLBISEZ5xwiKaXdNogXJeCHSs X-Gm-Gg: ATEYQzx8e2XsAHoaDFkOcb3kKLArigdAkQkSkOF0aXYheq14JiQ4C2+UOnblB+l+Gmr F+kus9E1O3xMtVqsW0Q+5fzpQ+TZgG7XzjcLf5F0yeYJUmtcasnq58Lt+8WWZTZBc+hW18ItEWG YFXkG2uvzoJ7Etvs1G7SiFW7gUBDeoKj2CgH7ZUDq2hxNQiOutaD5cP5uLRmNc+zn6VWqexxNl3 DzvMeZee2nfd4PYcxLRgGNdB2DNS2H69rrFRMg02+e/uy/zUU0wyn9WlADrJU6GaOI1F/NBPOdG XbRJhoOUJGhGyGZCCzZMJrm691JC6qzqgKhLcsYDxVsNDGeZ85Rgo33jVorvqZ5SCB/bqPpjlD4 EpyVj3Zojg58NtygyHiz3uUmifXz6NJIlBADpQWBKehZ+86aOeqzdYQ8Xx5C7ksvyhMakh7nfaQ f5DAtOc3nXJZGpK+jXrYlKNS6K7Z9QLPiD3IKEf+KQfW0SxEMWF8qdJVN0E3A91WhEG+ujgz0bK +A= 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: workflows@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