Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp489022imm; Tue, 9 Oct 2018 22:43:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV61zYeZytB6VoCH9cWs9WAjiX6eZcD/BIMYPaydmK1MyMmlRvqxB7P30McrhMBbO21t4pB7z X-Received: by 2002:a17:902:a509:: with SMTP id s9-v6mr12242986plq.209.1539150228578; Tue, 09 Oct 2018 22:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539150228; cv=none; d=google.com; s=arc-20160816; b=XLiubcUi7H8IhUoTDorCwllrJZylI4RuXefM4E52ibIcQ+6kGn8a7D77/73w4rFT1J eW5mCb5O73+3UBuYPeDd+oFObluD+CTL5hTkNuETdI4lD0Ebm4KOYdQHcrCFXooX4ZTv MsPgEwrqMaC+nHbPAGfsKNM1vgQV/IlDu0rcSjy/GEg3xGe91Ln5JmJVOjVmwGuRTotm rRnh+WhZhVTOL6XTxj+tQlkax6Kc9x/vetkZUS4eOzqQOqBf99aJh6UjhL9Rm+cbqd95 mrVfFxXvZD5s575k80YO1OGbiSL55Wov+eXNEAMnc7pqxItkvTypkM1GOzsC3oFhc0vE sGRg== 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:dkim-signature; bh=ce30p6IP0CNtU2k9Km56sWT812Iuu5DUxbwZv5Lylts=; b=nqM2Xj/AwZjNUCo1o75DV95Ppo6fSj7vx9V335i8Zyc+byiRb9Ewhs4gfNUJtEltcD 8UjTLaO3kIg9iwaROMG+790WDBctJbwzoam/GnKQhY2cbimEGzDiGuXeowe168HLV7mA F7JHGtaRWxPfkGx/niqO7nyMC/DQ/0YqJamS8i+nKaqQRCPurRcK8GmdSfLxjVKH7baD 6vuSG2/Rs5qH24dOFtC9roOHe9zOBolwOkEJwk/nFO/l0O/7527+w5Ksreui6fyVIm+C zT/uS+2Rfch+uRriVC7AJD+cNiFLAGWqSNKgkA3x2X3p0JtVypkdz1R2r5WJXHuW22sH DNyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=IQE+Gog2; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b41-v6si23790782pla.306.2018.10.09.22.43.32; Tue, 09 Oct 2018 22:43:48 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=IQE+Gog2; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726488AbeJJNDj (ORCPT + 99 others); Wed, 10 Oct 2018 09:03:39 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43066 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbeJJNDj (ORCPT ); Wed, 10 Oct 2018 09:03:39 -0400 Received: by mail-pf1-f193.google.com with SMTP id p24-v6so2032046pff.10 for ; Tue, 09 Oct 2018 22:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ce30p6IP0CNtU2k9Km56sWT812Iuu5DUxbwZv5Lylts=; b=IQE+Gog2plFwsLUhHwCnZKO+6tcsipozQR5YHJIbhhlGDkT9VN+xCpNRO8ug4FY/G1 rQmum+12wNFV4VBinoEk2AJiRA5Bfz7wkE28+JQkCfboumYDtAXtwxVEV3k4EVhaDzHt wLvXBVxdJd8KZjuTTLU27LvDGDqqKxRs28xc79z6BNy2xMv2UnE592bj90EG8WAecl3J 0wANbM8cwhA/fKMAdB8BajGxym+IEAl1JeMN6yCkWhwhQR94eizDymAWHZ3Vn1VtNrNd OO0/aN5OeaOjEkVk2GT5Gl4yxZBk5ngKUG1drAIKIKVinnpyGaoGp9u5mPie2cyWOyj1 4pyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ce30p6IP0CNtU2k9Km56sWT812Iuu5DUxbwZv5Lylts=; b=WVzwZtzxAoi5yhyvEKqZcGbMVO7y2W/TIRqdXNZ1c/MYS1rjB0HG3m2PBPfcBdzgHl ydwp04pz7Eiz5bXogUUMifXO5PFQrklCA2iJmVmetmulY6Ynb2+JyJ2VAmPXV/2cWFpD ZQKpO4sGuZ99lkLcIgm5WgHqv1hjsqmAPZe/aFoIi5FXkjwb4XD64c/075UFSYJnA7vR 2zVDT9wKuthCMWrpB0iPDs/2GloPzls/LpjE3TIAAdco/oXsWyHkELWVTn1tVotFPi7w a4p5sL79sdbCPQNJkR3tpSpUF77f5HgJN9dOigHyq6Edz+iTsy2z+NTjTXQ7I7LA364F Qskg== X-Gm-Message-State: ABuFfoj3IgUh2R4ereTKQ0yyiDYyPQPhHfd5eCGmdKfSOmTAxMjPpM7C p5FBfzmFGr45KoDNd6c9QKjPfg== X-Received: by 2002:a62:1095:: with SMTP id 21-v6mr32756591pfq.227.1539150189680; Tue, 09 Oct 2018 22:43:09 -0700 (PDT) Received: from decatoncale.mtv.corp.google.com ([2620:15c:202:1:c562:226a:6d78:2ae4]) by smtp.gmail.com with ESMTPSA id u21-v6sm35949811pfa.176.2018.10.09.22.43.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Oct 2018 22:43:08 -0700 (PDT) Date: Tue, 9 Oct 2018 22:43:06 -0700 From: Benson Leung To: Nathan Chancellor Cc: Benson Leung , Olof Johansson , linux-kernel@vger.kernel.org Subject: Re: [PATCH] platform/chrome: chromeos_tbmc - Remove unneeded const Message-ID: <20181010054306.GA231593@decatoncale.mtv.corp.google.com> References: <20181008222041.7713-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <20181008222041.7713-1-natechancellor@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Nathan, On Mon, Oct 08, 2018 at 03:20:41PM -0700, Nathan Chancellor wrote: > Clang warns: >=20 > drivers/platform/chrome/chromeos_tbmc.c:102:14: warning: duplicate > 'const' declaration specifier [-Wduplicate-decl-specifier] > static const SIMPLE_DEV_PM_OPS(chromeos_tbmc_pm_ops, NULL, > ^ > ./include/linux/pm.h:365:56: note: expanded from macro > 'SIMPLE_DEV_PM_OPS' > #define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \ > ^ > 1 warning generated. >=20 > SIMPLE_DEV_PM_OPS is already declared as const, this one is unnecessary > so remove it. >=20 > Signed-off-by: Nathan Chancellor Applied for 4.20. Thank you. Benson > --- > drivers/platform/chrome/chromeos_tbmc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/platform/chrome/chromeos_tbmc.c b/drivers/platform/c= hrome/chromeos_tbmc.c > index 1e81f8144c0d..ce259ec9f990 100644 > --- a/drivers/platform/chrome/chromeos_tbmc.c > +++ b/drivers/platform/chrome/chromeos_tbmc.c > @@ -99,7 +99,7 @@ static const struct acpi_device_id chromeos_tbmc_acpi_d= evice_ids[] =3D { > }; > MODULE_DEVICE_TABLE(acpi, chromeos_tbmc_acpi_device_ids); > =20 > -static const SIMPLE_DEV_PM_OPS(chromeos_tbmc_pm_ops, NULL, > +static SIMPLE_DEV_PM_OPS(chromeos_tbmc_pm_ops, NULL, > chromeos_tbmc_resume); > =20 > static struct acpi_driver chromeos_tbmc_driver =3D { > --=20 > 2.19.0 >=20 --=20 Benson Leung Staff Software Engineer Chrome OS Kernel Google Inc. bleung@google.com Chromium OS Project bleung@chromium.org --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6gYDF28Li+nEiKLaHwn1ewov5lgFAlu9kWkACgkQHwn1ewov 5ljQ1w//VHQx5XuQYO9p4QO7cu8gXQ0vHrfBw1IZgt1zmpgtvAmfj1tCrW9bKok6 j/SRkBybsKr0ld3LKrQpiySzNj57f6HfXdZKMJq8uGQ3n9K2U9hPnCzeydD5fmNk VFk2oCsR0mQl+F871wlXs68jvD21NvaWXWWR/5gO2JuxrZMizmmna6tTviPVRhPD IQhDnwF6RLcR6TZ7yxb9c+xUr5/GoeooZRl7Gzd7z6+DTZ15YWnkJQaF7LmedBi6 bCyn0696SRx9MTcvzW++Wjme9N5jtNJUcF/haeVAqdXwHrNFW9ppiBz0dgX4Gc2P ZI8esipsBFaBv2SPDaCqg05mZ16YcwScDVQTnMQ9xUWc0Ya1juKvtfhDBdn5NwPg wTJKui1BD+6qi+3Q563jprx1GMzaQv7m7p5G/8tqf7F6PzjZyWtLaXiJsdaiIGWm QY4i0dYprg3EOpIy2RWB2Co/IsFfH3Mvkg0dtk8tbf4HbyzTxGIauy8VqI6DYMon 9827p80BI7J47Ci4DGw6Z2/QqStktk8vFzVREZkOyF+IxD94kA2T5XFxscgNM1jZ 8i4Po8vxVwiCMt2FrhkSdRgfVc9TBdKhAcjMiGLZKgih047wL/W39RziimGw+4Lh yL2hfcZwaGMJEKMjtcX7DnwcdPfqu7snyMspVzrYazHkV0ChFYU= =V6lN -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--