Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756753AbcCXBqO (ORCPT ); Wed, 23 Mar 2016 21:46:14 -0400 Received: from smtprelay0247.hostedemail.com ([216.40.44.247]:60846 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752860AbcCXBqL (ORCPT ); Wed, 23 Mar 2016 21:46:11 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:152:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1963:2194:2198:2199:2200:2393:2559:2562:3138:3139:3140:3141:3142:3352:3622:3865:3866:3868:3870:3874:4321:5007:6238:7974:10004:10400:10848:11026:11232:11473:11658:11783:11914:12043:12048:12296:12438:12517:12519:12555:12679:12683:12740:13069:13161:13229:13311:13357:13894:13972:14659:14721:21063:21080:30012:30054:30064:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: slip03_8cc07b14c6941 X-Filterd-Recvd-Size: 2763 Message-ID: <1458783966.1762.6.camel@perches.com> Subject: Re: [PATCH 01/30] ACPICA: Linuxize: reduce divergences for 20160212 release From: Joe Perches To: Lv Zheng , "Rafael J. Wysocki" , "Rafael J. Wysocki" , Len Brown Cc: Lv Zheng , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Date: Wed, 23 Mar 2016 18:46:06 -0700 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1652 Lines: 47 On Thu, 2016-03-24 at 09:38 +0800, Lv Zheng wrote: > The patch reduces source code differences between the Linux kernel and the > ACPICA upstream so that the linuxized ACPICA 20160212 release can be > applied with reduced human intervention. In the very first patch fragment: > diff --git a/drivers/acpi/acpica/hwregs.c b/drivers/acpi/acpica/hwregs.c [] > @@ -152,7 +152,7 @@ acpi_hw_validate_register(struct acpi_generic_address *reg, >   * >   ******************************************************************************/ >   > -acpi_status acpi_hw_read(u32 *value, struct acpi_generic_address *reg) > +acpi_status acpi_hw_read(u32 *value, struct acpi_generic_address * reg) The second argument * style appears the opposite of normal style and a different style than the first argument * style. > diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c [] > @@ -582,7 +582,7 @@ static char acpi_os_name[ACPI_MAX_OVERRIDE_LEN]; >   >  acpi_status >  acpi_os_predefined_override(const struct acpi_predefined_names *init_val, > -     char **new_val) > +     acpi_string *new_val) And here: acpi_string pointer style 1: > diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h [] > @@ -96,7 +96,7 @@ acpi_physical_address acpi_os_get_root_pointer(void); >  #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_predefined_override >  acpi_status >  acpi_os_predefined_override(const struct acpi_predefined_names *init_val, > -     char **new_val); > +     acpi_string * new_val); acpi_string pointer style 2: There are varying styles for acpi_string * So far, this just looks sloppy. Should the rest be reviewed?