From patchwork Wed Dec 15 23:19:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 414911 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBFNJ68R030192 for ; Wed, 15 Dec 2010 23:19:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752864Ab0LOXTF (ORCPT ); Wed, 15 Dec 2010 18:19:05 -0500 Received: from smtp11.smtpout.orange.fr ([80.12.242.133]:28304 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752261Ab0LOXTE (ORCPT ); Wed, 15 Dec 2010 18:19:04 -0500 Received: from roazhon.bzh.lan ([90.32.149.237]) by mwinf5d34 with ME id jbK11f00657Zaoy03bK1vN; Thu, 16 Dec 2010 00:19:02 +0100 From: "Yann E. MORIN" To: linux-kbuild@vger.kernel.org Cc: Roman Zippel , Arnaud Lacombe Subject: [PATCH] Documentation/kbuild: add info that 'choice' can have a symbol name Date: Thu, 16 Dec 2010 00:19:00 +0100 Message-Id: <1292455140-5869-1-git-send-email-yann.morin.1998@anciens.enib.fr> X-Mailer: git-send-email 1.7.1 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 15 Dec 2010 23:19:23 +0000 (UTC) diff --git a/Documentation/kbuild/kconfig-language.txt b/Documentation/kbuild/kconfig-language.txt index 2fe93ca..a4bbaaf 100644 --- a/Documentation/kbuild/kconfig-language.txt +++ b/Documentation/kbuild/kconfig-language.txt @@ -268,7 +268,7 @@ separate list of options. choices: - "choice" + "choice" [symbol] "endchoice" @@ -282,6 +282,10 @@ single driver can be compiled/loaded into the kernel, but all drivers can be compiled as modules. A choice accepts another option "optional", which allows to set the choice to 'n' and no entry needs to be selected. +If no [symbol] is associated with a choice, then you can not have multiple +definitions of that choice. If a [symbol] is associated to the choice, +then you may define the same choice (ie. with the same entries) in another +place. comment: