From patchwork Tue Jun 28 19:34:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 12898823 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C912BC433EF for ; Tue, 28 Jun 2022 19:43:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229770AbiF1TnB (ORCPT ); Tue, 28 Jun 2022 15:43:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbiF1TmC (ORCPT ); Tue, 28 Jun 2022 15:42:02 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0975712AF1; Tue, 28 Jun 2022 12:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1656444898; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=/1MnTYWyt51NXn6RgxCYe0CkzHXPTLpl2a2hNvaqk80=; b=Cmse+StQGkXxjJjvRcjdNUVdl7CUTH5cxiE8maefVCspFiqAube0HwghR3xy8k8/2kTvYL Ai1AaFphQPAlkJ5GZelF5UrIm7fbDGj6PhBDkNIPrypafBbMV32XyyRYFpNgh9djSlZNTc 3QzwLJ56nhff4M1Ru2hRMn18DUCyF7w= From: Paul Cercueil To: Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH 0/8] watchdog: Remove #ifdef guards for PM related functions Date: Tue, 28 Jun 2022 20:34:41 +0100 Message-Id: <20220628193449.160585-1-paul@crapouillou.net> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org After my work [1] to introduce a new set of macros to be used with PM callback functions, update the few watchdog drivers that do still protect their .suspend/.resume implementations with a #ifdef guard to use the new macros instead. These macros allow the suspend and resume functions to be automatically dropped by the compiler when CONFIG_SUSPEND is disabled, without having to use #ifdef guards. Not using #ifdef guards means that the code is always compiled independently of any Kconfig option, and thanks to that bugs and regressions are easier to catch. Cheers, -Paul [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/pm.h?id=c06ef740d401d0f4ab188882bf6f8d9cf0f75eaf *** BLURB HERE *** Paul Cercueil (8): watchdog: bcm7038_wdt: Remove #ifdef guards for PM related functions watchdog: dw_wdt: Remove #ifdef guards for PM related functions watchdog: mtk_wdt: Remove #ifdef guards for PM related functions watchdog: s3c2410_wdt: Remove #ifdef guards for PM related functions watchdog: sama5d4_wdt: Remove #ifdef guards for PM related functions watchdog: st_lpc_wdt: Remove #ifdef guards for PM related functions watchdog: tegra_wdt: Remove #ifdef guards for PM related functions watchdog: wdat_wdt: Remove #ifdef guards for PM related functions drivers/watchdog/bcm7038_wdt.c | 8 +++----- drivers/watchdog/dw_wdt.c | 6 ++---- drivers/watchdog/mtk_wdt.c | 10 +++------- drivers/watchdog/s3c2410_wdt.c | 9 +++------ drivers/watchdog/sama5d4_wdt.c | 8 +++----- drivers/watchdog/st_lpc_wdt.c | 9 +++------ drivers/watchdog/tegra_wdt.c | 14 +++++--------- drivers/watchdog/wdat_wdt.c | 7 ++----- 8 files changed, 24 insertions(+), 47 deletions(-)