Received: by 10.213.65.68 with SMTP id h4csp1157011imn; Wed, 4 Apr 2018 13:41:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/DRC1TT/HLMBlH+9Sbilk1pIWhGdmVgRHBYAaRGc4u7PZdfnfLTNk5rwlNU5dUgOHahIwK X-Received: by 2002:a17:902:9696:: with SMTP id n22-v6mr20595966plp.355.1522874483600; Wed, 04 Apr 2018 13:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522874483; cv=none; d=google.com; s=arc-20160816; b=f5a/7IILPvywlY9ZQ3j0Ih8R74Sk6aUfAQ/iZcSsDH20VlMShyYWZb7ZGIkqUTHqt4 5k6GqE4sl9lCtipYgiX+6/zMj5swFQrpMqlqQ2V5ih+SLOyc45ull1+7kEJErEZdXItv R6MaZP/fQfJlj9mE2sB4Lsr5vkyWioRdkdU0+7dE2QtBNTOhaFm2l/k4+75n63igR+WW KW/yFrQk+zIfoUdZMVPPmpwdr42FhiyBF0HbkjLWAz702+0Rs2OgMT1sQakPpvuxs9Tb LvLH7nwfHz19cl1mJ0xCdLaGgEqJnFlgJFhDk2OGIUYASUvL8oeqv2qeifynw9r21Ukv jFYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=B85N8A9zXldKHFRzik4dl68lTSNCealFF8Bmuf1me7E=; b=thDJak9PLQW0Mb2QzLfe8HNZyNc7nKL9XTGBGgmJ5EXx0tregHsSj8+vK2NEttghs+ YDS+kWhEz7yNRGPk6uUGCtTIKGo8xYZucn1cMi3r/NJQ+ncegO2U2eBfVzhEGQoXa+iI SILi3iA7OQ+WAjkHCALNs4dviKxaRvveKXiGu09N0J8igcLJhjovZD/Tw/Rl+O+8xrSO RB8M7nUSPEfIWSl32Sv96lNiNSahR+ovWgw3hnr2xPjqD9Ro1ROLFKyC3c6SY6xJXZl4 I/AQeKPjYeKI8EhCBZwZL6mRbq88J1/YdPv0wpHrpXjWSsjBi/aUF/th1cxbnuDz7nvy wcYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si4267188pgj.169.2018.04.04.13.41.08; Wed, 04 Apr 2018 13:41:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751994AbeDDUkE (ORCPT + 99 others); Wed, 4 Apr 2018 16:40:04 -0400 Received: from mga14.intel.com ([192.55.52.115]:2673 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754AbeDDUkC (ORCPT ); Wed, 4 Apr 2018 16:40:02 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2018 13:40:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,408,1517904000"; d="scan'208";a="39434344" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by FMSMGA003.fm.intel.com with ESMTP; 04 Apr 2018 13:40:00 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1f3pCJ-000CG0-N4; Thu, 05 Apr 2018 04:39:59 +0800 Date: Thu, 5 Apr 2018 04:39:52 +0800 From: kbuild test robot To: Al Stone Cc: kbuild-all@01.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Al Stone , Jassi Brar , "Rafael J . Wysocki" , Len Brown Subject: Re: [PATCH 3/3] mailbox: ACPI: erroneous error message when parsing the ACPI PCCT Message-ID: <201804050450.ecZCFiQT%fengguang.wu@intel.com> References: <20180404004211.6141-4-ahs3@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180404004211.6141-4-ahs3@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Al, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on pm/linux-next] [also build test WARNING on v4.16 next-20180404] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Al-Stone/ACPI-improve-function-documentation-for-acpi_parse_entries_array/20180404-151910 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next smatch warnings: drivers/mailbox/pcc.c:392 count_pcc_subspaces() warn: always true condition '(pcct_ss->header.type >= 0) => (0-255 >= 0)' vim +392 drivers/mailbox/pcc.c 374 375 /*+ 376 * 377 * count_pcc_subspaces -- Count the PCC subspaces that are not used in 378 * reduced hardware systems. 379 * @header: Pointer to the ACPI subtable header under the PCCT. 380 * @end: End of subtable entry. 381 * 382 * Return: 0 for Success, else errno. 383 * 384 * This gets called for each entry in the PCC table. 385 */ 386 static int count_pcc_subspaces(struct acpi_subtable_header *header, 387 const unsigned long end) 388 { 389 struct acpi_pcct_subspace *pcct_ss = 390 (struct acpi_pcct_subspace *) header; 391 > 392 if ((pcct_ss->header.type >= ACPI_PCCT_TYPE_GENERIC_SUBSPACE) && 393 (pcct_ss->header.type <= ACPI_PCCT_TYPE_RESERVED) && 394 (pcct_ss->header.type != ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE) && 395 (pcct_ss->header.type != 396 ACPI_PCCT_TYPE_HW_REDUCED_SUBSPACE_TYPE2)) { 397 pr_warn("PCCT count: useful subtype = %d\n", 398 pcct_ss->header.type); 399 return 0; 400 } 401 pr_warn("PCCT count: unwanted subtype = %d\n", pcct_ss->header.type); 402 return -EINVAL; 403 } 404 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation