Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2956551pxb; Mon, 17 Jan 2022 08:59:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfz2a0qFK1rv9RtnBgAjL3+P7EO/QFKfKtKwJ2ZuWvoVBs339tS6FAEmnr74rfHMxu7J5T X-Received: by 2002:a05:6a00:44:b0:4be:ac48:6341 with SMTP id i4-20020a056a00004400b004beac486341mr21934947pfk.44.1642438772903; Mon, 17 Jan 2022 08:59:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642438772; cv=none; d=google.com; s=arc-20160816; b=Coriv9v6cSeKyDmeAuSCYUl+wYR3IwlntE0RhQ9Q8fSWOJyTOTg9kK+5K3sxsoFTjh vcGsEcplolT9wMGLTzcEXnPIPYguTQEbE4qpWP7XVIprQnMzgZ0bkvFcvFrM2ZujDZJw k5XZfPZ31RT4OiYPeXhjYcjD2xfa09d8D/JdRCOkeHXpuhmEj5UM/Lh64vZo7qSrnIPM HYhyhZpFvgMHA5xrHF3gVklIuqEasxfU9gTVEhOAPft1aAc4X0+/2eXlrYG56q6tsjiA Y3YT/ztcWFap7xQcax4QprCf3m3JC102IdP+x8mue4Zr0yZz2Geyk4T3W+qgF+WJ45X9 GNPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=g9w7PulPPLRlTJVcQdu+QnSXqkryxLolbx56eUS2RH8=; b=pypz9wb477HmaYHpChHYKztE5nsuTuoK4BQSCfNeAVPJT27cJ94C3FK8IPSqYd9jct 3uZhUX7YQXG1PaIiIKato8FslE2UZcrg4U1KkyPXX5oZp+rcKP2ed6IXuleQstnDQ01u O6vwRKtPhFRQBC1k7pD4SWi7u6lNtcBxbgxhQaDYTR4YHwwUTpX+pM+9MOTJSsbVRSOj /Cgvl/Hsa0Y9TNtOC9p8PGqYv4eSOIXGzl4kbJVbr2Go0wHl5v5AQaN7/iILQMutZK73 YSggr9S41wDk8lYJAoEtkT9tZEpryg5OmrO0Eg9eA57ZR1TY4SUA0fgfMMZqBNdVWNKn yPHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=gXOLTME2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svanheule.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si16843487pfd.228.2022.01.17.08.59.20; Mon, 17 Jan 2022 08:59:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=gXOLTME2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svanheule.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235383AbiAQIDG (ORCPT + 99 others); Mon, 17 Jan 2022 03:03:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235363AbiAQIDG (ORCPT ); Mon, 17 Jan 2022 03:03:06 -0500 Received: from polaris.svanheule.net (polaris.svanheule.net [IPv6:2a00:c98:2060:a004:1::200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0651C061574 for ; Mon, 17 Jan 2022 00:03:05 -0800 (PST) Received: from vanadium.ugent.be (vanadium.ugent.be [157.193.99.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id AEA36292D68; Mon, 17 Jan 2022 09:03:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1642406584; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g9w7PulPPLRlTJVcQdu+QnSXqkryxLolbx56eUS2RH8=; b=gXOLTME2JjTs3VZRe1vx1jxwIInKgCKw2QbS1oo6f8z5oP8P9ZBKiMn4PALx//0XtDokTe aP0lvkoUzoLfCFnfCYGh7ArKp9ahfe2jSeABcCTPpHcQ65uviGkrYHsjvNSa0az+35NPtH S87R80QcKqiIn2UrIVI4O2aKcI0JUfKIVQLtbq1CLJsm3Ay2l6VivilTw0CWKvbP4Wqcu8 uQD12+qwggtjFFd1kltMrkQPzhHdQdpjUabZd8zNYZFe1fIUXScXqiTFZru2rJeHK2Chsm XlU3jCinX1R2WAiOV9IkyITQKNkyYol7UNT/nQLKGvu7XMIQ5dRHZl9Yy/5FWw== Message-ID: <722bbfb582ab948fd994de880e4fa98c49f8bece.camel@svanheule.net> Subject: Re: [PATCH 2/2] clocksource/drivers: Add Realtek Otto timer driver From: Sander Vanheule To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: kbuild-all@lists.01.org, Daniel Lezcano , Thomas Gleixner , Rob Herring , kernel test robot Date: Mon, 17 Jan 2022 09:03:02 +0100 In-Reply-To: <202201170911.q3u7GptA-lkp@intel.com> References: <2fb4aa29e8c581f5c7e97ab7678ccb34e99e5c6e.1642369117.git.sander@svanheule.net> <202201170911.q3u7GptA-lkp@intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.2 (3.42.2-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2022-01-17 at 09:28 +0800, kernel test robot wrote: >    drivers/clocksource/timer-realtek-otto.c: In function 'otto_tc_init': >    drivers/clocksource/timer-realtek-otto.c:182:16: error: implicit > declaration of function 'kzalloc'; did you mean 'd_alloc'? [-Werror=implicit- > function-declaration] >      182 |         ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL); >          |                ^~~~~~~ >          |                d_alloc > > > drivers/clocksource/timer-realtek-otto.c:182:14: warning: assignment to > > > 'struct otto_tc_ctrl *' from 'int' makes pointer from integer without a > > > cast [-Wint-conversion] >      182 |         ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL); >          |              ^ >    drivers/clocksource/timer-realtek-otto.c:212:9: error: implicit declaration > of function 'kfree' [-Werror=implicit-function-declaration] >      212 |         kfree(ctrl); >          |         ^~~~~ >    cc1: some warnings being treated as errors > > > vim +182 drivers/clocksource/timer-realtek-otto.c > >    176   >    177  static int __init otto_tc_init(struct device_node *node) >    178  { >    179          struct otto_tc_ctrl *ctrl; >    180          int err; >    181   >  > 182          ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL); I'll include linux/slab.h in v2. Best, Sander