From patchwork Wed Sep 7 11:07:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75634 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp266241qgf; Wed, 7 Sep 2016 04:07:24 -0700 (PDT) X-Received: by 10.66.171.197 with SMTP id aw5mr80705565pac.36.1473246444781; Wed, 07 Sep 2016 04:07:24 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o192si9824638pfg.228.2016.09.07.04.07.24; Wed, 07 Sep 2016 04:07:24 -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 S965005AbcIGLHV (ORCPT + 27 others); Wed, 7 Sep 2016 07:07:21 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:34570 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934860AbcIGLHT (ORCPT ); Wed, 7 Sep 2016 07:07:19 -0400 Received: by mail-pa0-f41.google.com with SMTP id to9so5497786pac.1 for ; Wed, 07 Sep 2016 04:07:19 -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=sJoo1ZkQSh60x7BJnzk9OqNJ0F6ouSrkhBsH0+DGXsQ=; b=hsurculOk2MIxB2x5NzYisSX6ETVARJ29oQkkSKwhjK1VaXE1H9vgOfEnCPpZwmOuH +qZqiY0krgZZJJ47/CSeY4QS+uq/BY7kR82sAnv/DxtKSdihSI90LMsETCxoE8o4ywFA mqRSb/y9XcF+QMu5eP+RPzF+L7e16eGZ28SjM= 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=sJoo1ZkQSh60x7BJnzk9OqNJ0F6ouSrkhBsH0+DGXsQ=; b=d3llg91iQ689LaxaTxxW8JIB+ioRWWhoy5i6TorKnQ19ai28X0nw9sMFE3euXH/Lwi 1wSTogOqjXXsNMvj2cxQTHV9crnj0gpvwYhbRXu6dX7rRIz5ucCI3fFdZJJsUw4oOYdj oAQ4VEY4oxbR0zXW+Ua2u7gbWE87ReEFn539S+zFfNtjn0EbHtTO/yu5mHHN7QYzLa/a 4kdZEyPFS+Fsrvg0vNvy3y7F+53e8ekb1tGQgnrgTi1hKCbTMIrAk4pW2szYBiBV7dkQ Tx68P747HQa0QyBW7MaobM+gXT4/0iUN1Rsg0ssQX8TTaHn9oTWI3Zgdwzoaw0P6MPXw 6uzA== X-Gm-Message-State: AE9vXwOAGgP8mSKjxzOkYx7aA1+HTQp/ILkbxgfPJV86YA8jsHfCXvxnwKA+zsPV0ttO5ct3 X-Received: by 10.66.217.132 with SMTP id oy4mr81449744pac.46.1473246438541; Wed, 07 Sep 2016 04:07:18 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.64]) by smtp.gmail.com with ESMTPSA id u75sm40403197pfa.43.2016.09.07.04.07.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 04:07:18 -0700 (PDT) From: Baoyou Xie To: Yuval.Mintz@qlogic.com, Ariel.Elior@qlogic.com, everest-linux-l2@qlogic.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] qed: add missing header dependencies Date: Wed, 7 Sep 2016 19:07:00 +0800 Message-Id: <1473246420-1035-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 4 warnings when building kernel with W=1: drivers/net/ethernet/qlogic/qed/qed_selftest.c:6:5: warning: no previous prototype for 'qed_selftest_memory' [-Wmissing-prototypes] drivers/net/ethernet/qlogic/qed/qed_selftest.c:19:5: warning: no previous prototype for 'qed_selftest_interrupt' [-Wmissing-prototypes] drivers/net/ethernet/qlogic/qed/qed_selftest.c:32:5: warning: no previous prototype for 'qed_selftest_register' [-Wmissing-prototypes] drivers/net/ethernet/qlogic/qed/qed_selftest.c:55:5: warning: no previous prototype for 'qed_selftest_clock' [-Wmissing-prototypes] In fact, these functions are declared in qed_selftest.h, so this patch add missing header dependencies. Signed-off-by: Baoyou Xie --- drivers/net/ethernet/qlogic/qed/qed_selftest.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/drivers/net/ethernet/qlogic/qed/qed_selftest.c b/drivers/net/ethernet/qlogic/qed/qed_selftest.c index a342bfe..9b7678f 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_selftest.c +++ b/drivers/net/ethernet/qlogic/qed/qed_selftest.c @@ -2,6 +2,7 @@ #include "qed_dev_api.h" #include "qed_mcp.h" #include "qed_sp.h" +#include "qed_selftest.h" int qed_selftest_memory(struct qed_dev *cdev) {