Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2050321imm; Thu, 23 Aug 2018 13:16:27 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwyRe+JHPlHI6fiO7WkkX7Pc7KA1LnzBhHJaNZi+yofLYJXRFpWdbyp97bWmcxqWwT43g7P X-Received: by 2002:a62:2e02:: with SMTP id u2-v6mr64432902pfu.134.1535055387830; Thu, 23 Aug 2018 13:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535055387; cv=none; d=google.com; s=arc-20160816; b=z46G+jwE2OTeUO63I66igant9K2SATosWkxRIUxqFhjrlBZc2oapU3s5m9cJ1EHMh2 YuSkt/7hEE51QEz3ufKt/3WZLVu2p+oI2ZEb6V0Z5bdcEXw1qbDa+WP4XqEHFOpT0bal YBt4SaWCgaNHGiIA4BBKDN6tO41e6sLoS+Y5hmviBU6L2MsLUFDXMeU/6CYjG8JZ78PZ dFgkIEUWIHl6QgrT/YvgOlFpn8y6Hbp3p3pxwRFNEDigyutDeAEUt1KQIAExOl9eJ8p+ Tl/VAUq9UcqyAQnShsp8wRV1Z4bUDrhBB2DW3n8iMA69avBTh5jbGbpLv5ETgv/BCsPy HYwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=tg7L/KvBOb6HqqKyoePchPFyxqu00W4b2R5FRO7xXPM=; b=pbiixWdF3rhsEyWu7JECUHuWvx2NZVeieCH7lfgVsWh3YdfK8j7pAfCX6I3Fahsogj 3sm9jsVSFx8d8XAY1RvvqdwIksLleFzkkQLGZnIwyV7vs6EuZk8xFKIGq1yGZa6lWhW1 ZI/Di5prDhygMbiOm9Fu5YF/8r0LcWIvUc7qfB9dnV8LR/RVeZ6ZDo6+qG6xXXJTFpzS t2jsyfKlNBvBBwqzXeXkbUmrMYTDgGJVqnDev1YINTk6EsC6jfu4Ro8Q3ufPPn2aEIRl p+jGhKHMCpk0OL1iLi69OSMctNeRRz3OWp0cj4rE31dObL8jCTOXHF1ryh8sNZcwm9mi P0aA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l67-v6si5563393pfl.167.2018.08.23.13.16.11; Thu, 23 Aug 2018 13:16:27 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727100AbeHWXqY (ORCPT + 99 others); Thu, 23 Aug 2018 19:46:24 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:34490 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726478AbeHWXqY (ORCPT ); Thu, 23 Aug 2018 19:46:24 -0400 Received: by mail-ua1-f68.google.com with SMTP id r15-v6so4025088uao.1; Thu, 23 Aug 2018 13:15:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tg7L/KvBOb6HqqKyoePchPFyxqu00W4b2R5FRO7xXPM=; b=T8lyGbmrwWI6vkDXI4lbUD3LolSy2oEETkRuW/0k3MuDEMtTWZJROvh83wjHA3D6G+ ITd8SVsNlY5qkKOM2EjdJ+D3aQ3V/OWhBqpyy/s+DYrSTv4IDE5MDOsGjxVhr/0Jv4f1 +DtVFhpJy0gBVLXCohngLJ71wuSMXtBBfrhqf9huvLwie5v14bYTipXZMYTTBNA8r6ui X0mKaU3Rlyv8pDf2dCgMrw+6Ufo1EpHPck9gJzlRZPnhnUw3j/D10MNOpIz1QI36043r lQcRogaRNS+ACb4iun0OcGnFg4i6M9v666QVbr+L1S3BIsLhxEJr82NNRR3dpjdEkj8C n96Q== X-Gm-Message-State: AOUpUlHL0crzOkJD7oYsso4/4aPfhR6WJnOV/KGnLFdBTZpuKayOybUi W6HlvWghqyCMiWOottjCmMozC6Dn/du0d8U/0IU8Z6q8 X-Received: by 2002:ab0:48a4:: with SMTP id x33-v6mr40510536uac.138.1535055306048; Thu, 23 Aug 2018 13:15:06 -0700 (PDT) MIME-Version: 1.0 References: <20180817095425.2630974-1-arnd@arndb.de> In-Reply-To: <20180817095425.2630974-1-arnd@arndb.de> From: Geert Uytterhoeven Date: Thu, 23 Aug 2018 22:14:54 +0200 Message-ID: Subject: Re: [PATCH] media: camss: mark PM functions as __maybe_unused To: Arnd Bergmann Cc: Todor Tomov , Mauro Carvalho Chehab , hansverk@cisco.com, Linux Media Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 17, 2018 at 11:54 AM Arnd Bergmann wrote: > The empty suspend/resume functions cause a build warning > when they are unused: > > drivers/media/platform/qcom/camss/camss.c:1001:12: error: 'camss_runtime_resume' defined but not used [-Werror=unused-function] > drivers/media/platform/qcom/camss/camss.c:996:12: error: 'camss_runtime_suspend' defined but not used [-Werror=unused-function] > > Mark them as __maybe_unused so the compiler can silently drop them. > > Fixes: 02afa816dbbf ("media: camss: Add basic runtime PM support") > Signed-off-by: Arnd Bergmann Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds