From patchwork Mon Apr 29 17:59:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 2500791 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C6A1A3FDC4 for ; Mon, 29 Apr 2013 18:01:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758243Ab3D2SAa (ORCPT ); Mon, 29 Apr 2013 14:00:30 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:53780 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757824Ab3D2R7L (ORCPT ); Mon, 29 Apr 2013 13:59:11 -0400 Received: by mail-wi0-f181.google.com with SMTP id c10so3094350wiw.8 for ; Mon, 29 Apr 2013 10:59:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references; bh=tT5Ufmcvqz5qAnupSA9ZzurgqFY+3IIBXNif5v2QpWo=; b=hr6xK7WuddRkA2oWiJoQDd9Nord5zy7q/eLg/86m9gk1mI2yQSnOv81RfXrKEEGIxT e/+GQUeDjaAh3+INV8XTsxUzQgAEJul7TI2ZX/eNXLRAo4j+CMDAdxTboMmrK6iX5iM6 jCAIJvlqls8hDpcnB9wFZArpQlv2k+KeSIinQtqYexw3gbB15WAn1onqH3J0rPWl6PtK nUtoGuAddnpzDj8zgB6J2VEEPQV2HjfbPswPg4nxl0zF0p0LwulWUlETDsWEIz1XpTq7 cvm1w0patIYS036oxmF4WeuI6d5Zaf7znkxdRopzvVy2dhLakO4Qzv5OPNhRrMuE8ag2 2NgA== X-Received: by 10.180.94.196 with SMTP id de4mr19562861wib.23.1367258349782; Mon, 29 Apr 2013 10:59:09 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id s1sm4556918wiz.2.2013.04.29.10.59.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Apr 2013 10:59:09 -0700 (PDT) From: "Yann E. MORIN" To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, Randy Dunlap , Michal Marek , "Yann E. MORIN" , Benjamin Poirier Subject: [PATCH 1/1] kconfig: fix lists definition for C++ Date: Mon, 29 Apr 2013 19:59:02 +0200 Message-Id: <21ca352b71ca252e1933b1538fe89da8a04395c3.1367258255.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: In-Reply-To: References: Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org From: "Yann E. MORIN" The C++ compiler is more strict in that it refuses to assign a void* to a struct list_head*. Fix that by explicitly casting the poisonning constants. (Tested with all 5 frontends, now.) Reported-by: Randy Dunlap Signed-off-by: "Yann E. MORIN" Cc: Randy Dunlap Cc: Benjamin Poirier Acked-by: Randy Dunlap --- scripts/kconfig/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/list.h b/scripts/kconfig/list.h index ea1d581..685d80e 100644 --- a/scripts/kconfig/list.h +++ b/scripts/kconfig/list.h @@ -125,7 +125,7 @@ static inline void __list_del(struct list_head *prev, struct list_head *next) static inline void list_del(struct list_head *entry) { __list_del(entry->prev, entry->next); - entry->next = LIST_POISON1; - entry->prev = LIST_POISON2; + entry->next = (struct list_head*)LIST_POISON1; + entry->prev = (struct list_head*)LIST_POISON2; } #endif