From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) (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 7592A364E9C for ; Mon, 19 Jan 2026 13:10:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768828213; cv=none; b=YSDbVtfr9g+IiSKthTMk8FcvWgXm7dAmA14E13D3p04bXg6iukU6cRnIrb36fVqcsIIWnfgI/uQdyyqm6zMMYCWGlATHglEkLfZX7EzsNH7nWxcaMRvnaT9BBR6gxzcnsAcJaGR9e62UOlDL3UL5cIumShx2N941ZX7z40BWRv0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768828213; c=relaxed/simple; bh=7Zau4Q3L+wZoTMe0dwbmPaGjdSy92gfx9V0yzD0gCIM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bxtfs8oi2u/VR0qr2hddLKYQLdUkdvkYb97A9l/A1ZLLHSOeYCC3j35edWuNZPmDAW0I63DZiD6h3c76VprdTwH51Aj6AUavAZuuntYyTpsSlYTzD6IKJcYfyR4z1JeTIjaPOhs6B+NlpPHzCFIWHA24TQSuqkJKaHpTZpXcS3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.160.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-4041500d9c3so2790748fac.2 for ; Mon, 19 Jan 2026 05:10:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768828211; x=1769433011; 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=pcJjT+zAvg6W3xCA74ueew1cpFbuijNuFU3eUN6vwuI=; b=JacTe3F46xR9I+NH5hDl6FMsv1RYFkxCYkeHU6jK5w7m8kA5cZPgK5NRJZKL9QBxf7 s9XCDEotUDK+6cbUplzBejf0XUF2TVa1ODRtDxZLNxD5d1U2+UTLHZfOmjhe8Vcb/ct6 0OH1bG8e2WCUuaBm/IyMwt9/8btlF/fxUq8/u4j7NCRX2lSkvx+1bp8UTvSpdLAmHDB6 f66425uOyQzDUbd+vZ9rMuz0ngSnJR4vh4RGNM30p+lLNEHp9OVOXR4wf+1p3qbuCMZN PL5m84BZstDEBFFQJt4frOdPZ4zm5Yfx266B9BG7o/0Vsg62j1QuGqP/PwDcJJpC4Im7 PM8w== X-Forwarded-Encrypted: i=1; AJvYcCWtL0CnOWXM3sH9OKhCkymkQBF63y1+hT627++/iPx0F9Jpr6C45W9S7NVXeRQTvSJiZZTqLjRo3GhOZzs=@vger.kernel.org X-Gm-Message-State: AOJu0YyzToZosWNOi54L+x3VR16LmgFFIMY+5BinVnDuLEXe2UdxXy89 c+mO4jYPEEnjTH10HTNSIUgzqZfMs4UmVC0hd6jF13TnRjNVSAW+rMvU X-Gm-Gg: AY/fxX5Gx3KpjJKWP+TkBTYIum1oAyyLCG7KBoZv1rTgYscySYq446Tro9DIcJFPde3 Cg6P18a6JHsJPUxf8Gd5xcuFTWP+3VO6556Yesu16PviIWNfH3wIx2h76lRK2FDD8kwbW9Wndzv 33tLhpgXHt1Q9rTM7n1eLZ8LzGcFi1S78j8Vy/NmIxdusCJ3deFq6IF9BOBf/lf/JaOS82MZkvB FJulRXye4tNSP5+ybxujKOpc9Cbj8bCk9ZJP7JlCFXhdXgw2qGqXuQC6ysU/Qe7DEiyA6LASPZf 7b4sjQH9IQsp7vI2aMTfaqcR2mag0jLuEVdTnDzcg6JAi7JIDAfl3jbyk6SGEUELAiPd6Z8XUc3 bpSBKrX3VuoARSF2eMhcj1lTwPqOhveEEeZHEfzAB0VP5XceEMALHt9bmZf7FYxJr+B+BODDQpS eIWQ== X-Received: by 2002:a05:687c:2719:b0:3ec:2fc8:97a2 with SMTP id 586e51a60fabf-4044c1cf3d4mr3903361fac.19.1768828211425; Mon, 19 Jan 2026 05:10:11 -0800 (PST) Received: from gmail.com ([2a03:2880:10ff:48::]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4044bb51d4csm6787856fac.6.2026.01.19.05.10.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jan 2026 05:10:11 -0800 (PST) Date: Mon, 19 Jan 2026 05:10:09 -0800 From: Breno Leitao To: Andre Carvalho Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH net-next v11 5/7] netconsole: introduce helpers for dynamic_netconsole_mutex lock/unlock Message-ID: References: <20260118-netcons-retrigger-v11-0-4de36aebcf48@gmail.com> <20260118-netcons-retrigger-v11-5-4de36aebcf48@gmail.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: <20260118-netcons-retrigger-v11-5-4de36aebcf48@gmail.com> On Sun, Jan 18, 2026 at 11:00:25AM +0000, Andre Carvalho wrote: > This commit introduces two helper functions to perform lock/unlock on > dynamic_netconsole_mutex providing no-op stub versions when compiled > without CONFIG_NETCONSOLE_DYNAMIC and refactors existing call sites to > use the new helpers. > > This is done following kernel coding style guidelines, in preparation > for an upcoming change. It avoids the need for preprocessor conditionals > in the call site and keeps the logic easier to follow. > > Signed-off-by: Andre Carvalho Reviewed-by: Breno Leitao