Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=jae.hyun.yoo@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.intel.com Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 47ffLW10w8zDqnK for ; Sat, 21 Dec 2019 06:43:28 +1100 (AEDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Dec 2019 11:43:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,336,1571727600"; d="scan'208";a="210912225" Received: from maru.jf.intel.com ([10.54.51.77]) by orsmga008.jf.intel.com with ESMTP; 20 Dec 2019 11:43:24 -0800 From: Jae Hyun Yoo To: Joel Stanley , Andrew Jeffery Cc: openbmc@lists.ozlabs.org, Jae Hyun Yoo Subject: [PATCH linux dev-5.4] peci: fix a build warning Date: Fri, 20 Dec 2019 11:43:29 -0800 Message-Id: <20191220194329.19897-1-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Dec 2019 19:43:32 -0000 This commit fixes below build warning when CONFIG_OF_DYNAMIC is enabled: expected ‘int (*)(struct device *, const void *)’ but argument is of type ‘int (*)(struct device *, void *)’ Signed-off-by: Jae Hyun Yoo --- drivers/peci/peci-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/peci/peci-core.c b/drivers/peci/peci-core.c index 61a2a59a9fe4..9aedb74710e6 100644 --- a/drivers/peci/peci-core.c +++ b/drivers/peci/peci-core.c @@ -1703,7 +1703,7 @@ static void peci_of_register_devices(struct peci_adapter *adapter) { } #endif /* CONFIG_OF */ #if IS_ENABLED(CONFIG_OF_DYNAMIC) -static int peci_of_match_node(struct device *dev, void *data) +static int peci_of_match_node(struct device *dev, const void *data) { return dev->of_node == data; } -- 2.17.1