From patchwork Sat Sep 24 04:21:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76906 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp181695qgf; Fri, 23 Sep 2016 21:22:08 -0700 (PDT) X-Received: by 10.66.23.69 with SMTP id k5mr18367111paf.144.1474690928059; Fri, 23 Sep 2016 21:22:08 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si11275363pan.276.2016.09.23.21.22.07; Fri, 23 Sep 2016 21:22:08 -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 S933047AbcIXEWF (ORCPT + 27 others); Sat, 24 Sep 2016 00:22:05 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33252 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750726AbcIXEWD (ORCPT ); Sat, 24 Sep 2016 00:22:03 -0400 Received: by mail-pa0-f49.google.com with SMTP id hm5so45938228pac.0 for ; Fri, 23 Sep 2016 21:22:03 -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=pnRqKUvrL+3hGrG0K0CIyzasZyUdu/wzZlaWlifyOpQ=; b=XRdZ8Stjbp3GxCye2VDIFUB3WKF6CwfimGOtaE/EBxp5h5jTMnYim4kdYUDD/V/FSp 0PJUbGkuwIgEX16DVEIHNbcVKxzo+uyqKWYPoyEhAb0ms5khcrW18bIAWTTBzGAS+G+h QCFOESC6eQz0GWuv1S1AjKDw6Y0Fya5R6QuvA= 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=pnRqKUvrL+3hGrG0K0CIyzasZyUdu/wzZlaWlifyOpQ=; b=ACNetXaVcLC7C3RayvkoPq4+8zyTS1PEkkfV8FsJob1seXTAXra046lf/RXPJ/Y8Rv y9yscWdbBqDyS6yXwKdFmfDUBuEv2+ZFVPZnGGlGCervfGfTGOCvR0R184fB2TBOmt5d c8UdBNMsQcwQt/LWWTce82UxbBIrlv20rixAWE+B6rtXfYNnLXmcQAiJlA4LaUX4yDvW 8osgAHIzVWIhi25YJOgUSv7H6S95ER9Gtiq3zGhWK/AIhmSnfzQf2cEteWSYIvKUE3kt 0o+GdmqujwjYdq7dkwRLAGjeIqsYbq7dGDPArhrZ6B/OoiU0MbZltwgxGmqztaKoAkoJ u/QA== X-Gm-Message-State: AE9vXwM+5wOEAevgdAO/53qg85AUDb98/nrXF2pUv+PFkzZ2b2DIOrNmOtJskF29xNV/5NKJ X-Received: by 10.66.249.134 with SMTP id yu6mr18666569pac.44.1474690923163; Fri, 23 Sep 2016 21:22:03 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id t16sm14654877pfj.76.2016.09.23.21.21.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 21:22:02 -0700 (PDT) From: Baoyou Xie To: arnd@arndb.de, gregkh@linuxfoundation.org, tytso@mit.edu Cc: linux-kernel@vger.kernel.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] random: add missing header dependencies Date: Sat, 24 Sep 2016 12:21:49 +0800 Message-Id: <1474690909-30158-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 building kernel with W=1: drivers/char/random.c:2140:6: warning: no previous prototype for 'add_hwgenerator_randomness' [-Wmissing-prototypes] In fact, this function is declared in include/linux/hw_random.h, so this patch adds 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 d6876d5..aa0950a 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -262,6 +262,7 @@ #include #include #include +#include #include #include