From patchwork Fri Aug 26 00:51:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74773 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp47112qga; Thu, 25 Aug 2016 17:52:26 -0700 (PDT) X-Received: by 10.66.155.202 with SMTP id vy10mr876396pab.104.1472172746710; Thu, 25 Aug 2016 17:52:26 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gp10si18139102pac.79.2016.08.25.17.52.26; Thu, 25 Aug 2016 17:52:26 -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=@linaro.org; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755198AbcHZAwS (ORCPT + 27 others); Thu, 25 Aug 2016 20:52:18 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33787 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752945AbcHZAwQ (ORCPT ); Thu, 25 Aug 2016 20:52:16 -0400 Received: by mail-pa0-f49.google.com with SMTP id cy9so772035pac.0 for ; Thu, 25 Aug 2016 17:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=BYsea9gaZTNz3LMJz7mrJoRQwXEz2CGHa6cHNqdUH90=; b=ZWP1vxNq46prWj15u4KK4jy3OpzK9TyuCIn0yTSRSdmW/KPb1mA6lutG77+YAZOYOY iI/PvLRQRaGCo4lPDBFNtLwKV82n+BV1Ad9bgJdsaxHkWqXcDMHzTANiTMyAr5pN57Ee 37OX+5dpJXpcfSf8QN6Aw/pqqhYpDpRHU+/7A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=BYsea9gaZTNz3LMJz7mrJoRQwXEz2CGHa6cHNqdUH90=; b=fqyG7XrPRmpYEGcyTeaKBNIKe1I3htVjoYdxsrki9++wYd2AWMdgw7dr6Qr1AueuRd K0hmj0j8Kb/VJvZnesxurWPcUhVLCCZhmWT128F3VclJB730vnurhfYTokjj3Y3qRY07 +aEgOdeVOTJ6K37CbXlYQfcGDh4EplxLFLKrqD4sLrFbk/c4+6zchy5m9z2sQnE9G0dH h13s07WKpY4z37ZtpDY3RHHQdZvoW5kglmf9RSfc76JAKFZj/aQ7ETnH8RRZLznMRjJB ++jfWzkppX/0M7h416U+lvQY5jUtAsPCAbsjxsmcverVfu+ohV96HwD9J1PXQwLU91+Z mkeQ== X-Gm-Message-State: AE9vXwMxyjGyARNpuwwpbdAw2paK/9GlKi1ujfr2kMZAd23YAGuvsQvrLx9AaA9YN/mJDzB5 X-Received: by 10.67.22.72 with SMTP id hq8mr798401pad.81.1472172714846; Thu, 25 Aug 2016 17:51:54 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.33]) by smtp.gmail.com with ESMTPSA id 72sm23521952pfs.51.2016.08.25.17.51.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Aug 2016 17:51:54 -0700 (PDT) From: Baoyou Xie To: tytso@mit.edu, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, xie.baoyou@zte.com.cn, baoyou.xie@linaro.org Subject: [PATCH] fix:random:add missing header dependencies Date: Fri, 26 Aug 2016 08:51:26 +0800 Message-Id: <1472172686-10703-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when biuld kernel with W=1: drivers/char/random.c:2126:6: warning: no previous prototype for 'add_hwgenerator_randomness' [-Wmissing-prototypes] In fact, this function is declared in hw_random.h, so this patch add missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/char/random.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/drivers/char/random.c b/drivers/char/random.c index 3efb3bf..155ea8b 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -262,6 +262,7 @@ #include #include #include +#include #include #include