Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp220285rwe; Fri, 26 Aug 2022 03:59:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Ti1M03uewwrrmBeiAica6XUSlxoscPpC9WDQDfNdWca5tSGBjnDqhd/Lk5bfhVv9g2hcD X-Received: by 2002:a05:6402:540c:b0:434:d965:f8a with SMTP id ev12-20020a056402540c00b00434d9650f8amr6304683edb.30.1661511559259; Fri, 26 Aug 2022 03:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661511559; cv=none; d=google.com; s=arc-20160816; b=rIuhttHzg/p6C05cO0LnxyQvYFlSt+/AccEbV/X53wQNLGbfmT9tf+NO7VMfvoOZqf 1revt7+DowMxRoKsGTSFbcuvkpkOD4pTcarpopW6OnxM4SfkG7WiiCnO8G/yoek3IBI5 wbZSdx320d5DBWHavbFAy8RgD/82ZQ3qTVN8QeSic/L5KOgI/09Qjjw8Uo4iYBRsh2Qa nuygdfgH4zXzViEsnMJ4ErqmqvqCRGk9NZ0/zQoYIeirqe49IlIj2zgvJ5UBGKt4J5AW WTFL/hrrCVMqCr3+/L6NkbypHlJmglpIwocIFscm6E6dMnXsLvltkX7YiAt5JbNmFtBM ghEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=VrRRN/TMXcwhmP4Ndk+7ox3KUu5EPxu+Iqamn4v0Kz8=; b=gQcsf/ExYUUZQd7OrYHgglY0OSQqN983Ycq+k9AMkFmzMnBXeL1nZ95El6+0ttgsXN K65CN58GcB7Cfrlwo8u3Cp/qGCqIwKFhoS1h9B0QbicbNxq/uZmkl90Hu0jav6dLHV0L gYCTqa8sNiBsTS3ZvvhvJSTHWLCssO42dokgyhmesFCP02AthV5/2yoFCoHitDuZ8hHW 0oQXsL1NqxzjZGTmPjomo8RrkoLmLhleeodPguEFxw9OjWKqYbTRso+fesf6kOd8ghmi EMi/2pevsOOti2kWfgphhMShyZ35uY0qQrMSVYuRLUdzsPnc/SqEArUJ/FBe+P7sG7HG NDnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nIY/moor"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du5-20020a17090772c500b007310a8a4116si1083140ejc.30.2022.08.26.03.58.53; Fri, 26 Aug 2022 03:59:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nIY/moor"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245404AbiHZKPN (ORCPT + 99 others); Fri, 26 Aug 2022 06:15:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245581AbiHZKPC (ORCPT ); Fri, 26 Aug 2022 06:15:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1109D46DBD; Fri, 26 Aug 2022 03:14:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8C26061408; Fri, 26 Aug 2022 10:14:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0438C43140; Fri, 26 Aug 2022 10:14:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661508898; bh=NK190jfdx00jTrDCv7zIYGo0wJWl8l2X9W8c9twpJWM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nIY/moorJ/m4y8AsNO48CqLsfSNmDBPVeSgxPLfk52PP7Y6aYXueV2aNABvSfDMUi PDsp5ZmnBW+jFnyUjB+NFpeEaud2aDjGAhL/0GP4P7NeL/sMVy9bfp90MrRO4zY8m3 aab6J1R5XG4vEQ86+OsqWJAsQyDOSWHH0r7wlUYV87Z1shvS3i2IxpzQA9EK0vCAfP mXRq/ZxVseBpULo8TA1iBO4iSt4FYmZg6Pt3c42fJBWPbpuChX7CTEq8XOz1wQJvH5 3T+i8q/2bsnuufE2Wetp7tEPW5GiTGzTQNKXS7ymuEskEsAhQC7Ky/ZfbW1GE3yc0I f9SCR3FYOGWyQ== Received: by mail-wr1-f50.google.com with SMTP id e13so330836wrm.1; Fri, 26 Aug 2022 03:14:58 -0700 (PDT) X-Gm-Message-State: ACgBeo33rVA+TcAduSoD2aTtHLvMe5Kzl9+XuoxaUrJPyJBM3/66UD2l HqS/rUfslS9akDI1371pDPA43yP5HmBnRGAk0OY= X-Received: by 2002:a05:6000:782:b0:225:3e46:3dd5 with SMTP id bu2-20020a056000078200b002253e463dd5mr4249270wrb.103.1661508897137; Fri, 26 Aug 2022 03:14:57 -0700 (PDT) MIME-Version: 1.0 References: <20220825111715.3025694-1-sakari.ailus@linux.intel.com> In-Reply-To: <20220825111715.3025694-1-sakari.ailus@linux.intel.com> From: Ard Biesheuvel Date: Fri, 26 Aug 2022 12:14:45 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] acpi: Remove default association from integer maximum values To: Sakari Ailus Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, sbinding@opensource.cirrus.com, andriy.shevchenko@intel.com, patches@opensource.cirrus.com, rafael@kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 25 Aug 2022 at 13:17, Sakari Ailus wrote: > > Remove the default association from integer maximum value checks. It is > not necessary and has caused a bug in other associations being unnoticed. > > Fixes: 923044133367 ("ACPI: property: Unify integer value reading functions") > Signed-off-by: Sakari Ailus Acked-by: Ard Biesheuvel > --- > drivers/acpi/property.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c > index 91d0e75859d37..d4c168ce428ca 100644 > --- a/drivers/acpi/property.c > +++ b/drivers/acpi/property.c > @@ -1046,8 +1046,7 @@ static int acpi_data_prop_read_single(const struct acpi_device_data *data, > u8 *: U8_MAX, \ > u16 *: U16_MAX, \ > u32 *: U32_MAX, \ > - u64 *: U64_MAX, \ > - default: 0U)) { \ > + u64 *: U64_MAX)) { \ > ret = -EOVERFLOW; \ > break; \ > } \ > -- > 2.30.2 >