From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5C701ADC83; Mon, 4 May 2026 14:06:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777903596; cv=none; b=h1Q0jWwmF+24o+5pYAI971RqYll+M59P58B17mR9WOwsBL+6pkFowHXoTnZ4VWgLBI7mCUkaJiNls2eoXCfmRE/v7SKYvNQlNuLUhmkCQWhH3/FBMnYu/ivyePkTjWZ/AO0b7DXPJt3wjTZ8QFtsmmlzmSM3DlIvVDnwbTmOdDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777903596; c=relaxed/simple; bh=IAMko6E2p6vwN3uDLEWi70cyC7IxViSwRH0Ga3UC+H0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tgYwN66HZbWl3aRcg4ot/I8QCJ5chjYgGnwCfV6f8NltTGeDQvvwL8fdj4enNFnX1De1ss+wZo5naX4D69Ewl4/mKPNEGxdEbIYCup2SWoLPRvbZc07m8wxmVdAURN6LAS6ML/huTmf2y4P8I0PdWRVNl3Eqmifz/QOU8GdFlSQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MuZdqIZK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MuZdqIZK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B51BC2BCB8; Mon, 4 May 2026 14:06:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777903595; bh=IAMko6E2p6vwN3uDLEWi70cyC7IxViSwRH0Ga3UC+H0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MuZdqIZKdz5baHnd0m3cN2tpIEBBB/kgEtY13gu/cStc/r80U/dB7QwLizSoX4FLj xXBsF9AJhKO7iWeyx8Z94V9r2H22dgHXQkuzWVsKokRMdGlkf1NuusUNKvnPc1WicN wLzq35MQJKJf/WS2CuCRWmA5a3YsUsKw19+0xrjc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Randy Dunlap , Douglas Anderson , Danilo Krummrich Subject: [PATCH 7.0 295/307] driver core: Add kernel-doc for DEV_FLAG_COUNT enum value Date: Mon, 4 May 2026 15:53:00 +0200 Message-ID: <20260504135153.885235906@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260504135142.814938198@linuxfoundation.org> References: <20260504135142.814938198@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Douglas Anderson commit 5b484311507b5d403c1f7a45f6aa3778549e268b upstream. Even though nobody should use this value (except when declaring the "flags" bitmap), kernel-doc still gets upset that it's not documented. It reports: WARNING: ../include/linux/device.h:519 Enum value 'DEV_FLAG_COUNT' not described in enum 'struct_device_flags' Add the description of DEV_FLAG_COUNT. Fixes: a2225b6e834a ("driver core: Don't let a device probe until it's ready") Reported-by: Randy Dunlap Closes: https://lore.kernel.org/f318cd43-81fd-48b9-abf7-92af85f12f91@infradead.org Signed-off-by: Douglas Anderson Tested-by: Randy Dunlap Reviewed-by: Randy Dunlap Link: https://patch.msgid.link/20260413195910.1.I23aca74fe2d3636a47df196a80920fecb2643220@changeid Signed-off-by: Danilo Krummrich Signed-off-by: Greg Kroah-Hartman --- include/linux/device.h | 1 + 1 file changed, 1 insertion(+) --- a/include/linux/device.h +++ b/include/linux/device.h @@ -466,6 +466,7 @@ struct device_physical_location { * * @DEV_FLAG_READY_TO_PROBE: If set then device_add() has finished enough * initialization that probe could be called. + * @DEV_FLAG_COUNT: Number of defined struct_device_flags. */ enum struct_device_flags { DEV_FLAG_READY_TO_PROBE = 0,