Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp96717ybh; Fri, 6 Mar 2020 16:52:27 -0800 (PST) X-Google-Smtp-Source: ADFU+vtC93KDs355Slk6rUKc3jkjAvpF70BZNQrqSi2ByvLsA8l6O0UM3XAKT3bLrIo9UI+0PatB X-Received: by 2002:aca:55ca:: with SMTP id j193mr4433096oib.94.1583542346967; Fri, 06 Mar 2020 16:52:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583542346; cv=none; d=google.com; s=arc-20160816; b=W9ERYOzLRk/00GmE7FA8G3lcuhKw4JRw6+g0mA5NF+zjkjQX1gaOckmZa2g0vLHhjf N0V22Vqsf4HwuYmMSAk3B0L+ad9L5CylLtwsGMOiWTKKPat4yGa/8b66PzofIaMCoEPA Y33epej1g/rTaRCc0yVbvAaNpL1MMwErtY6O0/R3iZNEiGSIHvtIf/x4HVLIfLnvObvd xB30Mh4FqTXs4Bho3FIT7WZpRO2WDs+8SmO5EveK9/YdjN1ruDCUsYSSg5JA+fo7l1lE 5AF6geRFQxnbqHMwJJReVXm5wlfa4Cn4E6NH2TZAQFgy33xBSt5xJSs9NbrYYI4fJ46i yZDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=skFcNwjthieJP7sfKB/M5QNBEnIrH81qXi4ZuvR5djg=; b=tz1Rp8z/is+9PnYOKi1J0XH/PFQXo5sWA0PtcHZBSRYWNXhuvzU4b234xXF+oKeUpW cAuxBqWBb/867NTgXdJfnrNO+bymyc3hOw04a9wa58BtB5ZxLeLwSc7rk3PInxZvleTX T8zLZqOxY5hNL/Xg7wRFLZEss4YdteG9kGoUgXANMK1AhQxmd86QONqQyKydrdEqLeEh SfFYT+e2BSYoKvEGMjJJN4gbngYqtCy2E0YIlqIgZ3zGyBB4PRMhruktljdwKZJAbjcx z1JNbCta83W5yMc1OY8ta+r01xXpp0bNRdtcQo9utfff5nwFK1QshwhT0qUlzHQfH/+l 4TGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l18WCI1T; 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 sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w123si562037oif.175.2020.03.06.16.52.15; Fri, 06 Mar 2020 16:52:26 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=l18WCI1T; 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 sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbgCGAvx (ORCPT + 99 others); Fri, 6 Mar 2020 19:51:53 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46696 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726231AbgCGAvx (ORCPT ); Fri, 6 Mar 2020 19:51:53 -0500 Received: by mail-pf1-f194.google.com with SMTP id o24so1902603pfp.13; Fri, 06 Mar 2020 16:51:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=skFcNwjthieJP7sfKB/M5QNBEnIrH81qXi4ZuvR5djg=; b=l18WCI1TN3rqxsUOpYhZQ3/fq9phH85TBCpcWGcQS49YSPYIQdrjc692qZ7FzTN+op 488oR7rShJN3X5O1mO4hc3n9t0Rjo11NlXKlVTCZFS/+nA7pZGzG9nV7GFg9LE+twuwz pIC37vtJMVP1EfDiGa0TIaCTxez9k16KJKwv5pykJVVBLvKGByl78TDJKrsDupfHLc17 TpPPMICQPP2sNqAtzAVJbJtj5f3WZleShFnso9bEYPBRMGZt7Ff1NM7iKj0JUSY+KvBF fXTh/d3jvMeBZYp00q9uLDcrlJxcdr/hQhVSTlH34p500BPtTfJQLZZOPW9URYjTeWSI 2vkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=skFcNwjthieJP7sfKB/M5QNBEnIrH81qXi4ZuvR5djg=; b=hBovPc0jyhqMuBdMQA4khUhzCJV+yJc5Am5FNIcEUxVZUqi5e3ybPs8+U50ymJ7PvZ uiYPv6pGqzIVhLGdeN2KRhT4zVcxgVa7dGndeFwG06+hMSZPLXFUkc9C0A9NK+AWqJu4 bdHyL7+oV3PSO5WMw969E0BQ2UJaUxDiCxaOrPB/JByY9U6Ap4zmBkupopiRBYe3Vo4W 5nghcEB6gFeAe2peu/xOgtLr9y72ndPko87YqC8/HNQYraL+t9DAUcj4yMxD+xcHvCZF hx+l3AoivXVyyfzZKNh603FeTohS/qYt80oFf2PYQ0odbzSC9MGa6C5OHE2d6RuuJvlU 7/3Q== X-Gm-Message-State: ANhLgQ1TJh0T7kJ2aAYQ9BwmFnFGWDqGeuANutE9ydUXUFag/90CNt9u rW90bwNPe+GXea8fVFGvuDs= X-Received: by 2002:a63:5401:: with SMTP id i1mr5547231pgb.181.1583542310016; Fri, 06 Mar 2020 16:51:50 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:3c2a:73a9:c2cf:7f45]) by smtp.gmail.com with ESMTPSA id 9sm32356910pge.65.2020.03.06.16.51.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2020 16:51:49 -0800 (PST) Date: Fri, 6 Mar 2020 16:51:46 -0800 From: Dmitry Torokhov To: Anson Huang Cc: Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , Alessandro Zummo , Alexandre Belloni , Zhang Rui , Daniel Lezcano , "amit.kucheria@verdurent.com" , "wim@linux-watchdog.org" , Guenter Roeck , Daniel Baluta , Oleksij Rempel , Greg Kroah-Hartman , Thomas Gleixner , Marco Felsch , Andy Shevchenko , Arnd Bergmann , Enric Balletbo i Serra , Ronald =?iso-8859-1?Q?Tschal=E4r?= , Krzysztof Kozlowski , linux-arm-kernel , lkml , "linux-input@vger.kernel.org" , "linux-rtc@vger.kernel.org" , Linux PM , LINUXWATCHDOG , dl-linux-imx Subject: Re: [PATCH 3/5] input: keyboard: add COMPILE_TEST support for KEYBOARD_IMX_SC_KEY Message-ID: <20200307005146.GM217608@dtor-ws> References: <1583509356-8265-1-git-send-email-Anson.Huang@nxp.com> <1583509356-8265-3-git-send-email-Anson.Huang@nxp.com> <20200306193310.GI217608@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 07, 2020 at 12:18:38AM +0000, Anson Huang wrote: > Hi, Dmitry > > > Subject: Re: [PATCH 3/5] input: keyboard: add COMPILE_TEST support for > > KEYBOARD_IMX_SC_KEY > > > > On Fri, Mar 6, 2020 at 11:33 AM Dmitry Torokhov > > wrote: > > > > > > On Fri, Mar 06, 2020 at 11:42:34PM +0800, Anson Huang wrote: > > > > Add COMPILE_TEST support to i.MX SC keyboard driver for better > > > > compile testing coverage. > > > > > > > > Signed-off-by: Anson Huang > > > > > > Applied, thank you. > > > > Actually, not: > > > > ERROR: "imx_scu_irq_register_notifier" > > [drivers/input/keyboard/imx_sc_key.ko] undefined! > > ERROR: "imx_scu_get_handle" [drivers/input/keyboard/imx_sc_key.ko] > > undefined! > > ERROR: "imx_scu_call_rpc" [drivers/input/keyboard/imx_sc_key.ko] > > undefined! > > ERROR: "imx_scu_irq_unregister_notifier" > > [drivers/input/keyboard/imx_sc_key.ko] undefined! > > ERROR: "imx_scu_irq_group_enable" > > [drivers/input/keyboard/imx_sc_key.ko] undefined! > > make[1]: *** [scripts/Makefile.modpost:94: __modpost] Error 1 > > make: *** [Makefile:1282: modules] Error 2 > > > > If you want to enable compile test coverage you need to provide stubs for > > the above functions. > > These i.MX SCU drivers depends on IMX_SCU, I already add the COMPILE_TEST > to IMX_SCU driver as well, that is why I put these patches in a patch series. Adding "|| COMPILE_TEST" you are removing hard dependency on IMX_SCU, which as you can see can result in broken build. > Maybe > I can add stubs as well to make sure build passed even when IMX_SCU is NOT compiled? > Will send V2 to add stubs, it makes more sense. It is up to you whether you make IMX_SCU buildable with COMPILE_TEST and leave the sub-driver as is, or add the stubs and make sub-drivers buildable even without IMX_SCU being present. Thanks. -- Dmitry