Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp509141pxb; Wed, 27 Jan 2021 13:23:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwW730x9Jw5x3PlZKS5ADRkBbmWvZ74vx+qNDeiXpifL7EmyScKG9MCnXiMauhpJ4hI+OfH X-Received: by 2002:a50:eb96:: with SMTP id y22mr11086152edr.159.1611782591416; Wed, 27 Jan 2021 13:23:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611782591; cv=none; d=google.com; s=arc-20160816; b=wc2NZSBiw54FkVznBm9WgdhKi6OJT48ePQYPNhtuAqVMdEEX+jUyPogOPD6u3rRFZw 7A9MtrMrFWb2wR7mo9mlOI2WPqvOFBQ9MNyVpHQ/xmDtRZ+Tl4gB8gAW7HnOFZib6POg Sp03ja7Zs/FvtKBqoPG/3bc/NGAnWo3vrZw98OuqO0iWY62JtXUmDd11fU5+Mtmh5I+n 4D4wSeEV4PMJpvvU/LMYIzwdmi5nQ/hcPS4WDDQZhoKzbUon/LVv8W4+CVrFm+zj+0Nf NNt9v1Mz6tCN/o8995SiJBZrycsh4dUNeBJ+LZqGa519Wo/RA1mXWaxhQqUJpeICXnmy GwbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :ironport-sdr:ironport-sdr; bh=viVfCtESzlzogSUCilr11l2BRuN16GxQKwGifdtUwSM=; b=sBdL6Hhl/sfEhiZmVWsp/0c1UZYE9DzbpanueV6NfbQvuqBrXy/XI7Hz36eQhEugkM UaQzPTkFteW6cMO7nafG+uaaDeya0mtpBtKQtIsU3I+ij9RbTBoY+uDyarw6ErkIRPcq xt1LIu0vkjOrT6Ie8DuKhSODZlKDyuMPv0wqygzZQPcy0LhrLhR24wxD5jt/cTVzg+Oa ymigCaAOiv3Lv3F4GtudPN3lhCIqnrnLA3QOOI7W6zmRm2Dlf7WgUAgxIj/2zqL7X6vl eSn+zPAVH4i0Qmr8lAPLpDHqvYAkOpnHBiVaG/HdxnUayv0M0jfG5QktvBxfobcXs1D2 5ujA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk14si1619420edb.128.2021.01.27.13.22.45; Wed, 27 Jan 2021 13:23:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235269AbhA0GDt (ORCPT + 99 others); Wed, 27 Jan 2021 01:03:49 -0500 Received: from mga18.intel.com ([134.134.136.126]:42570 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237608AbhA0Dzf (ORCPT ); Tue, 26 Jan 2021 22:55:35 -0500 IronPort-SDR: 4neyQmTp2DOKMZJuGVDs3fR8/QFsQotwmgwOREQAU85OiK5MfOIwuV+XwR5JHcDTr2yG/6QB5s H0aSLWKfJvhA== X-IronPort-AV: E=McAfee;i="6000,8403,9876"; a="167684743" X-IronPort-AV: E=Sophos;i="5.79,378,1602572400"; d="scan'208";a="167684743" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2021 19:54:54 -0800 IronPort-SDR: zUQpenv7S1YPTdoCBnbHAiu/wM0L/F0BKuoVZbQJ78z1FKrzRPZThfc/ZEYvVgPHqjCfKsTLBO yWxpBD5vmXPg== X-IronPort-AV: E=Sophos;i="5.79,378,1602572400"; d="scan'208";a="362253675" Received: from yuankuns-mobl.ccr.corp.intel.com ([10.249.169.180]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2021 19:54:53 -0800 Message-ID: Subject: Re: linux-next: build warning after merge of the pm tree From: Zhang Rui To: Stephen Rothwell , "Rafael J. Wysocki" Cc: Linux Kernel Mailing List , Linux Next Mailing List Date: Wed, 27 Jan 2021 11:54:50 +0800 In-Reply-To: <20210127124324.29b7c4d4@canb.auug.org.au> References: <20210127124324.29b7c4d4@canb.auug.org.au> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Stephen, Sorry that I missed this build warning in the first place, thanks for reporting. The patch below fixes it. BTW, Rafael, I think acpi_fpdt_init() also needs to be fixed to have proper return value. Do you prefer an incremental patch or a V2 of 208757d71098 ("ACPI: tables: introduce support for FPDT table"), which includes all these fixes? thanks, rui From 2b8ed148351875b4bf227602a97edba12d08af7e Mon Sep 17 00:00:00 2001 From: Zhang Rui Date: Wed, 27 Jan 2021 11:33:33 +0800 Subject: [PATCH] ACPI: FPDT: fix build warning Fix a build warning, In file included from ./include/linux/printk.h:7:0, from ./include/linux/kernel.h:16, from ./include/linux/list.h:9, from ./include/linux/kobject.h:19, from ./include/linux/of.h:17, from ./include/linux/irqdomain.h:35, from ./include/linux/acpi.h:13, from drivers/acpi/acpi_fpdt.c:11: drivers/acpi/acpi_fpdt.c: In function ‘acpi_init_fpdt’: ./include/linux/kern_levels.h:5:18: warning: too many arguments for format [-Wformat-extra-args] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ ./include/linux/kern_levels.h:14:19: note: in expansion of macro ‘KERN_SOH’ #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ ./include/linux/printk.h:373:9: note: in expansion of macro ‘KERN_INFO’ printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/acpi/acpi_fpdt.c:255:4: note: in expansion of macro ‘pr_info’ pr_info(FW_BUG, "Invalid subtable type %d found.\n", ^~~~~~~ Signed-off-by: Zhang Rui --- drivers/acpi/acpi_fpdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpi_fpdt.c b/drivers/acpi/acpi_fpdt.c index b8108117262a..64d5733dca0b 100644 --- a/drivers/acpi/acpi_fpdt.c +++ b/drivers/acpi/acpi_fpdt.c @@ -252,7 +252,7 @@ void acpi_init_fpdt(void) subtable->type); break; default: - pr_info(FW_BUG, "Invalid subtable type %d found.\n", + pr_info(FW_BUG "Invalid subtable type %d found.\n", subtable->type); return; } -- 2.17.1 On Wed, 2021-01-27 at 12:43 +1100, Stephen Rothwell wrote: > Hi all, > > After merging the pm tree, today's linux-next build (x86_64 > allmodconfig) > produced this warning: > > In file included from include/linux/printk.h:7, > from include/linux/kernel.h:16, > from include/linux/list.h:9, > from include/linux/kobject.h:19, > from include/linux/of.h:17, > from include/linux/irqdomain.h:35, > from include/linux/acpi.h:13, > from drivers/acpi/acpi_fpdt.c:11: > drivers/acpi/acpi_fpdt.c: In function 'acpi_init_fpdt': > include/linux/kern_levels.h:5:18: warning: too many arguments for > format [-Wformat-extra-args] > 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ > | ^~~~~~ > include/linux/kern_levels.h:14:19: note: in expansion of macro > 'KERN_SOH' > 14 | #define KERN_INFO KERN_SOH "6" /* informational */ > | ^~~~~~~~ > include/linux/printk.h:373:9: note: in expansion of macro 'KERN_INFO' > 373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) > | ^~~~~~~~~ > drivers/acpi/acpi_fpdt.c:255:4: note: in expansion of macro 'pr_info' > 255 | pr_info(FW_BUG, "Invalid subtable type %d found.\n", > | ^~~~~~~ > > Introduced by commit > > 208757d71098 ("ACPI: tables: introduce support for FPDT table") >