From patchwork Tue Mar 12 11:26:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Valdis_Kl=C4=93tnieks?= X-Patchwork-Id: 10849123 X-Patchwork-Delegate: andy.shevchenko@gmail.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ADEC214DE for ; Tue, 12 Mar 2019 11:26:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A302295F5 for ; Tue, 12 Mar 2019 11:26:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D923295F7; Tue, 12 Mar 2019 11:26:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D578295F6 for ; Tue, 12 Mar 2019 11:26:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726496AbfCLL0R (ORCPT ); Tue, 12 Mar 2019 07:26:17 -0400 Received: from outbound.smtp.vt.edu ([198.82.183.121]:53454 "EHLO omr1.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725792AbfCLL0P (ORCPT ); Tue, 12 Mar 2019 07:26:15 -0400 Received: from mr2.cc.vt.edu (mr2.cc.ipv6.vt.edu [IPv6:2607:b400:92:8400:0:90:e077:bf22]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x2CBQEkC013444 for ; Tue, 12 Mar 2019 07:26:14 -0400 Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mr2.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x2CBQ9OC028461 for ; Tue, 12 Mar 2019 07:26:14 -0400 Received: by mail-qk1-f199.google.com with SMTP id e25so1824770qkj.12 for ; Tue, 12 Mar 2019 04:26:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:mime-version:date :message-id; bh=TpQefdt0lzXk2W48fTvI4qjBnypEJQTELJXvmGPo0hA=; b=h9WyBQYfRov9RgtZBPNb9y3bE1J4vlWRDqz5ljUEcCCpmYc6nfakL84lewQ3zxgh2p XkE964nvGYflrh6lhBjFBfnfS2DIuVfnLbvMY7GQfGXXa23JXYDRI2tv/L0c2gwjjVSB 1rv5OpW+ITBkde+pEubSRw9EQ4smqAGQedKQkrEIh/jUDQJ64JlGGDQaX/i7RSki+KII p2QOC6c8qD/i9QNMyW0Qt6TiCZvCLm9OA/MxP7baXOhkmwA85zbcI8cDIMGLNwODWhv1 xn8NZjzbd16HeEIogFDUp/IqxRrAf082+dL86Co9n7q2NOmWLp0Klc/qwbEZIiRPlqjg q4jg== X-Gm-Message-State: APjAAAWvcFEZP+kYvMSFDorxqxrdQtK2tqL8kTjai301sIyHZI/t5/ZD bA8YHu3Y1jqBrFnWkJAPsaYSMGNQ8a67iKv9YFy6i+25tsGVIqo2sVAsNvqcXgXIhOVK1USQhLT SjerUyIsfRhuXvv86gwYFw3uECZcQxmWa75gy26AeIxdK X-Received: by 2002:aed:3988:: with SMTP id m8mr30088824qte.177.1552389969179; Tue, 12 Mar 2019 04:26:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHzJGfVKGRIM4BKeM6MPwGfgyGUpUwlKHq0at22SsHalDBFlJ7gMCPHeG7QQTqPMS4bi8xZw== X-Received: by 2002:aed:3988:: with SMTP id m8mr30088799qte.177.1552389968789; Tue, 12 Mar 2019 04:26:08 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:4341::3b7]) by smtp.gmail.com with ESMTPSA id h8sm5661119qtc.29.2019.03.12.04.26.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 04:26:07 -0700 (PDT) From: "Valdis Kl =?utf-8?b?xJM=?= tnieks" X-Google-Original-From: "Valdis Kl =?utf-8?b?xJM=?= tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: pali.rohar@gmail.com, Darren Hart cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drivers/platform/x86/dell-rbtn.c - add missing #include Mime-Version: 1.0 Date: Tue, 12 Mar 2019 07:26:06 -0400 Message-ID: <17631.1552389966@turing-police> Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Building with W=1 complains: CC [M] drivers/platform/x86/dell-rbtn.o drivers/platform/x86/dell-rbtn.c:345:5: warning: no previous prototype for 'dell_rbtn_notifier_register' [-Wmissing-prototypes] 345 | int dell_rbtn_notifier_register(struct notifier_block *nb) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/x86/dell-rbtn.c:371:5: warning: no previous prototype for 'dell_rbtn_notifier_unregister' [-Wmissing-prototypes] 371 | int dell_rbtn_notifier_unregister(struct notifier_block *nb) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The real problem is a missing include. Add it to keep dell-rbtn.c and .h in sync Signed-off-by: Valdis Kletnieks diff --git a/drivers/platform/x86/dell-rbtn.c b/drivers/platform/x86/dell-rbtn.c index f3afe778001e..d50ca96d99f0 100644 --- a/drivers/platform/x86/dell-rbtn.c +++ b/drivers/platform/x86/dell-rbtn.c @@ -17,6 +17,7 @@ #include #include #include +#include "dell-rbtn.h" enum rbtn_type { RBTN_UNKNOWN,