Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1166238pxk; Fri, 25 Sep 2020 07:51:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5bHNg9o9IWOrjcuJsE7SHvtTyDC8CcPaom9CnyccwXmES+sRv+AMMaFqOvUpOwG4f0Upk X-Received: by 2002:a17:906:fa01:: with SMTP id lo1mr3209779ejb.394.1601045502898; Fri, 25 Sep 2020 07:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601045502; cv=none; d=google.com; s=arc-20160816; b=rBWGZ7m6cE5P9E2pQ7dhX8Tq3CCCEZ/jxeo9GDJKiCACeMvxg2eOqMWrHSh6e93Pcu gMz1zK99NoV+mmoK+jSaPDQx9HXYlhbab5XJzv8CRQIlvtUUJlqTtaf20+B52yd0NxuF Y3yd0hBTi9m+Rq9oDj+iCu8WwS+x2Act0gorwPgVSdodGpyA4UoEcwEqrM4EsgtJoKRp kAWbLp7b+ibDbgeaUrC/ypQMkFYHtq573w0LV7McLavyY8VV896m2OMkEdnfYc1PXCA9 5aXv1GYAe6ubJSci+dN/v4Zlr40a7TG+iMBSUIkCuMUiqxSQj8sHbL5kNfwQ3vjqB7E0 q8qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=BsWW9pU5MswQhy1JP70uEVOdz7PmEL0zmFwKSLZlWjI=; b=dFtqFqGdx02KudksomIaulJKzLA8tV9lMZUhiTZ/UuRHPsmT1u8pD+Fgx8bBvV/Gcb mCDHeqMaAcacZYhQGu+Z1cSn6lL3qIM1ES6ZYsayET7Psl8hCb5Zu4mMSZJiQE+X6tGv de1laH/cbGh5Z3wcZZsaK0WrI9LB1H/RIKawM+5t4AOOLtFP1ulZhgxxBD0QZlN3tx1P u2vf7LiZnV7lNWAHV5c/tPUMdf7lKV7V2CgtFqMhuZ6r9xDIvnd/i6x87WVaNnoyAw0o n8ua7Y7iEvGf1hAKy6u1UljcoluApnsSny044dL2iRdyrYIm0Lv/CymaXiVWO5zHD8D6 VnIg== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp27si1895109ejb.668.2020.09.25.07.51.19; Fri, 25 Sep 2020 07:51:42 -0700 (PDT) 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729023AbgIYOuK convert rfc822-to-8bit (ORCPT + 99 others); Fri, 25 Sep 2020 10:50:10 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:33712 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbgIYOuK (ORCPT ); Fri, 25 Sep 2020 10:50:10 -0400 Received: by mail-ot1-f67.google.com with SMTP id m12so2559979otr.0; Fri, 25 Sep 2020 07:50:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=DD9KHkrgEjO85INACg+anC10SVaoGdHKojOeKrOBrvY=; b=sZfRJyCOWwXR43jrtJK+Edk4UkiU6vWAeYuyL8DGSuUrJUYX1wZMmnzBaEOKQ6lWxk Ba7zr5v9Wr0i8hDx/2pFE4hxYT9FVawfBOIP7ni/2ku6wcSIxjXhhgvnpjuTq4to5MYe ByvYZdAoqZ/bs0uL+izonl5nP8L+eaFcjNrN/Tj1WtZlBF38TKT09IZmDpIcC59TlS+U 89FNS5Z2SL1v3yni9FvFQpUqCUjI1rzql/Y+s8X3XC3tQ5N0Mf21+apAsj56LG8/bQDN NIT6xuMmF61oStIFrUZfZIpCHfJZo9UvpMoLv/KRWM5tlwrBWi5WTDBM8xHinlZVgAcB dfDg== X-Gm-Message-State: AOAM531vqOYdcmMCW3pCU4znbRjY+GF7lyl3da7e4NH4za8kulNbTjBs wmSNk3pR9r+yk5pBn/pdHaDZ5ZYsWimmIeBmbJo= X-Received: by 2002:a05:6830:150a:: with SMTP id k10mr502542otp.167.1601045409451; Fri, 25 Sep 2020 07:50:09 -0700 (PDT) MIME-Version: 1.0 References: <20200922044652.3393-1-shipujin.t@gmail.com> In-Reply-To: <20200922044652.3393-1-shipujin.t@gmail.com> From: "Rafael J. Wysocki" Date: Fri, 25 Sep 2020 16:49:58 +0200 Message-ID: Subject: Re: [PATCH v4] powercap: include header to fix -Wmissing-prototypes To: Pujin Shi Cc: "Rafael J . Wysocki" , Linux PM , Linux Kernel Mailing List , Herrington , Pujin Shi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 22, 2020 at 6:47 AM Pujin Shi wrote: > > Include the linux/idle_inject.h header to fix W=1 build warning: > > drivers/powercap/idle_inject.c:152:6: warning: no previous prototype for ‘idle_inject_set_duration’ [-Wmissing-prototypes] > drivers/powercap/idle_inject.c:167:6: warning: no previous prototype for ‘idle_inject_get_duration’ [-Wmissing-prototypes] > drivers/powercap/idle_inject.c:179:6: warning: no previous prototype for ‘idle_inject_set_latency’ [-Wmissing-prototypes] > drivers/powercap/idle_inject.c:195:5: warning: no previous prototype for ‘idle_inject_start’ [-Wmissing-prototypes] > drivers/powercap/idle_inject.c:227:6: warning: no previous prototype for ‘idle_inject_stop’ [-Wmissing-prototypes] > drivers/powercap/idle_inject.c:299:28: warning: no previous prototype for ‘idle_inject_register’ [-Wmissing-prototypes] > drivers/powercap/idle_inject.c:345:6: warning: no previous prototype for ‘idle_inject_unregister’ [-Wmissing-prototypes] > > Signed-off-by: Pujin Shi > --- > drivers/powercap/idle_inject.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/powercap/idle_inject.c b/drivers/powercap/idle_inject.c > index 4310901a074e..6e1a0043c411 100644 > --- a/drivers/powercap/idle_inject.c > +++ b/drivers/powercap/idle_inject.c > @@ -43,6 +43,7 @@ > #include > #include > #include > +#include > > #include > > -- Note that the contact information in the S-o-b tag should match the From: header exactly. I've fixed that up manually this time and applied the patch (as 5.10 material), but please be more careful about it in the future. Thanks!