From patchwork Thu Sep 7 10:02:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 9942019 X-Patchwork-Delegate: dvhart@infradead.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DFA14602CC for ; Thu, 7 Sep 2017 10:03:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F28FB28600 for ; Thu, 7 Sep 2017 10:03:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E76812860A; Thu, 7 Sep 2017 10:03:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62EC528600 for ; Thu, 7 Sep 2017 10:03:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754024AbdIGKDg (ORCPT ); Thu, 7 Sep 2017 06:03:36 -0400 Received: from mga05.intel.com ([192.55.52.43]:48552 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753828AbdIGKCr (ORCPT ); Thu, 7 Sep 2017 06:02:47 -0400 Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP; 07 Sep 2017 03:02:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,357,1500966000"; d="scan'208";a="148567864" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga005.fm.intel.com with ESMTP; 07 Sep 2017 03:02:43 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1dptir-000PdB-Fa; Thu, 07 Sep 2017 18:07:45 +0800 Date: Thu, 7 Sep 2017 18:02:24 +0800 From: kbuild test robot To: Corentin Chary Cc: kbuild-all@01.org, Darren Hart , Andy Shevchenko , corentin.chary@gmail.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drivers/x86: fix platform_no_drv_owner.cocci warnings Message-ID: <20170907100224.GA78930@lkp-wsx02> References: <201709071725.1hbpOsaR%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170904082110.30925-1-corentin.chary@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP drivers/platform/x86/thinkpad-wmi.c:1196:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Fixes: 3af63e23450d ("drivers/x86: add thinkpad-wmi") CC: Corentin Chary Signed-off-by: Fengguang Wu --- thinkpad-wmi.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/platform/x86/thinkpad-wmi.c +++ b/drivers/platform/x86/thinkpad-wmi.c @@ -1193,7 +1193,6 @@ static struct platform_driver platform_d .remove = __exit_p(thinkpad_wmi_remove), .driver = { .name = THINKPAD_WMI_FILE, - .owner = THIS_MODULE, }, };