From patchwork Sun Jun 10 14:58:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiro TSUKADA X-Patchwork-Id: 10456681 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 BC1DF60247 for ; Sun, 10 Jun 2018 14:58:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A943D1FFEB for ; Sun, 10 Jun 2018 14:58:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A67723201; Sun, 10 Jun 2018 14:58:21 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, 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 0F2761FFEB for ; Sun, 10 Jun 2018 14:58:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753541AbeFJO6U (ORCPT ); Sun, 10 Jun 2018 10:58:20 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:46934 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753432AbeFJO6T (ORCPT ); Sun, 10 Jun 2018 10:58:19 -0400 Received: by mail-pg0-f68.google.com with SMTP id d2-v6so8527328pga.13 for ; Sun, 10 Jun 2018 07:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=OgajZhux4T4WOEiPHh+xk69FlFjmmVRvXlLNq6TyWgk=; b=eA03GNWv+462IfyfHfi6Excx5yXdNXEvUMQLEvxhb0441hs18v6Ti8MEUnYQMFKBqT lhOKbAYir1xZdRDcmL+z/qvNYsh3SFVthNQENGPYuTlGoWpfViNbZIS4fklbR5J6i095 rnT6v1LP+LQHz6uv0aOMEhRzE+/8oyDBE+NhcVfgtp8rB6RIMh0ZdmnPtZROQM3Qsqek OVNbZ34ZdxAK7RK2w5o/R/3yWB33YVbbjLSZYsDsGe9v7zCLfkPR9BlMxBAeiWNnJg37 W84/bDs7sejW6yMGkwUf2gn540rFJ6PzME0eCGmB8hZOZrDYHqAMVGAG8BVhjIlL1DUK zxsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=OgajZhux4T4WOEiPHh+xk69FlFjmmVRvXlLNq6TyWgk=; b=dseFKt4gGNBDyDos10JtT//fMAHiBPnVm9Pq9s2i5hOVoJQZJjUsrgwBm6+2cYuqe2 Y56CXG2Al/ZpNcb5ua3heKXrAW9y28gyfwIiLJERZUOOA1C7S0HeOGASJy8qVcTgCn7B wCVoozkp+PbDua9CW5Bk/tCi3cRS8AxcPF5zvl5BjaD01gwSTyhHaGb8hnfK/N0ffzTn GW2hdowahhZeqXWr7IibBJMPLjBA34Na4jtajhw6CKRwDW97CySSpQDKc+XvX7jjJ4Fm /R1nt0MA9DgCn3IQbWDWrQCT/Yk8MpqIkj2K+oOxu5+Hx2frQnV5yEu7qTeVXQkEex4v QHBg== X-Gm-Message-State: APt69E0Gv3m2xd2X4B5vteT+bwTIiqVJOMjObxOqKRIjPbEfdr3j3pJZ 25OyCTWceFIvCOimRpv7vJZg7Q== X-Google-Smtp-Source: ADUXVKJRSHW6NzshrIvs5a+h8u2Tuqg+LPlGk9SjvBX/5fvI8guwfwcVBNOxKsvNUNgPUQFlX28Qhg== X-Received: by 2002:a62:d2c3:: with SMTP id c186-v6mr13724133pfg.44.1528642698730; Sun, 10 Jun 2018 07:58:18 -0700 (PDT) Received: from localhost.localdomain (softbank219203027033.bbtec.net. [219.203.27.33]) by smtp.googlemail.com with ESMTPSA id k9-v6sm27820358pgs.49.2018.06.10.07.58.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 07:58:18 -0700 (PDT) From: tskd08@gmail.com To: linux-media@vger.kernel.org Cc: mchehab@s-opensource.com, Akihiro Tsukada Subject: [PATCH] pci/pt1: suppress compiler warning in xtensa arch Date: Sun, 10 Jun 2018 23:58:02 +0900 Message-Id: <20180610145802.8188-1-tskd08@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Akihiro Tsukada Found and reported by kbuild test robot: Message ID: <201805052003.MC007f9h%fengguang.wu@intel.com> and holding an address of an empty struct in .driver.pm does no harm when CONFIG_PM_SLEEP is not defined. Signed-off-by: Akihiro Tsukada --- drivers/media/pci/pt1/pt1.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c index 5708f69622c..362305c88df 100644 --- a/drivers/media/pci/pt1/pt1.c +++ b/drivers/media/pci/pt1/pt1.c @@ -1443,9 +1443,7 @@ static struct pci_driver pt1_driver = { .probe = pt1_probe, .remove = pt1_remove, .id_table = pt1_id_table, -#ifdef CONFIG_PM_SLEEP .driver.pm = &pt1_pm_ops, -#endif }; module_pci_driver(pt1_driver);