From patchwork Mon Dec 20 15:11:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Marek X-Patchwork-Id: 421171 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 oBKFC01P016083 for ; Mon, 20 Dec 2010 15:12:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757948Ab0LTPLu (ORCPT ); Mon, 20 Dec 2010 10:11:50 -0500 Received: from cantor2.suse.de ([195.135.220.15]:60337 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757947Ab0LTPLu (ORCPT ); Mon, 20 Dec 2010 10:11:50 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id 12A0F8738D; Mon, 20 Dec 2010 16:11:49 +0100 (CET) Received: by sepie.suse.cz (Postfix, from userid 10020) id D64D06034D; Mon, 20 Dec 2010 16:11:48 +0100 (CET) Date: Mon, 20 Dec 2010 16:11:48 +0100 From: Michal Marek To: Arnaud Lacombe Cc: linux-kbuild@vger.kernel.org, Catalin Marinas Subject: Re: [PATCHv2] kconfig: simplify select-with-unmet-direct-dependency warning Message-ID: <20101220151148.GC20492@sepie.suse.cz> References: <1291663669-13077-1-git-send-email-lacombar@gmail.com> <20101220151047.GB20492@sepie.suse.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20101220151047.GB20492@sepie.suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) 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]); Mon, 20 Dec 2010 15:12:00 +0000 (UTC) diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c index 65531a7..0010034 100644 --- a/scripts/kconfig/expr.c +++ b/scripts/kconfig/expr.c @@ -64,7 +64,7 @@ struct expr *expr_alloc_or(struct expr *e1, struct expr *e2) return e2 ? expr_alloc_two(E_OR, e1, e2) : e1; } -struct expr *expr_copy(struct expr *org) +struct expr *expr_copy(const struct expr *org) { struct expr *e; diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h index b267933..76ee319 100644 --- a/scripts/kconfig/expr.h +++ b/scripts/kconfig/expr.h @@ -193,7 +193,7 @@ struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2); struct expr *expr_alloc_and(struct expr *e1, struct expr *e2); struct expr *expr_alloc_or(struct expr *e1, struct expr *e2); -struct expr *expr_copy(struct expr *org); +struct expr *expr_copy(const struct expr *org); void expr_free(struct expr *e); int expr_eq(struct expr *e1, struct expr *e2); void expr_eliminate_eq(struct expr **ep1, struct expr **ep2);