Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2482652pxj; Sat, 19 Jun 2021 13:47:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSYDl7zv8dCG3B1/W8zu3cyyNZjZJhBxWMKIBtuuneuXHf7O/N/doxw8msSTB6tFQX797a X-Received: by 2002:a6b:f60e:: with SMTP id n14mr13536547ioh.179.1624135672749; Sat, 19 Jun 2021 13:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624135672; cv=none; d=google.com; s=arc-20160816; b=KY9oDZ6lyt3D7ASsChBQaHzrc1xT1HOVed5oZZkO0YpTEC2yvZmjP+Mq/mfW5WTI+l nXnhTdZugz8A7YNXDoSiLgEgfwh8YeeyqNTjWrovZqJ6vV2KGOvn1cj2hI/Eu/oWrnxQ SVrqS9GT4Owe57El4JW+RyjYAPS875JGlV3QTLqlqZb1/9UN6/bQtiUjg8oIXsgB0RMO B2AvHZCSITQKHpS9zoCHaQW+GSbns/zgIPr/B4/TsoxLuWl6s84sAuGPdBhe/vq1EWZ+ a/rlvtzvPurGrcfGEhWjp+QEuSlYhiZD25EMzX7hw4XpSycv5pmmSkyYZ2gEJqCllNB+ jsRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=Q7lis0HM5bATX+CBceMi5uQ2GKYkJP3dGDCc1k+uYQo=; b=HWrTb6Ku/rNBv+XGIxHCv1Uc3WXJXla7zxXkOw+WzVZnfidJEW7LbNpanB+W+tUiSM jaeFUbjV/lI1dhLKrk8UTDQgmlhRYDsAUNr7yzSR8Nc/GJg3ar32725zNy7Fku0qLlRK 5ixdODN/mj0U9g95YiMufNTOy55vJsb3BuItCwPHxQkjEq+GHtoEK3yidj1e9HGyn7Ds DpPgAacoVce0/d60rM3LHusvXEU+A832//ofxHptDThUvmCIJL+js8LpE9K7MszgVlHj kAF0cY+2mBfpGy6jo4WiPMNcrzZGMpqnr4dLDwNBFT0Z/wyw/X1Iim9m54VLy0T6pIr6 uxjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="Apcw83/c"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=4Q1lwhQp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m2si8573931ilu.120.2021.06.19.13.47.41; Sat, 19 Jun 2021 13:47:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="Apcw83/c"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=4Q1lwhQp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234808AbhFSQtl (ORCPT + 99 others); Sat, 19 Jun 2021 12:49:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234756AbhFSQtk (ORCPT ); Sat, 19 Jun 2021 12:49:40 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6414CC061574 for ; Sat, 19 Jun 2021 09:47:29 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1624121246; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Q7lis0HM5bATX+CBceMi5uQ2GKYkJP3dGDCc1k+uYQo=; b=Apcw83/ctUNF3Vv3Zya1JHa5bHpYdtU/HYr6GTKIwFb8i2pl4BdS+SivYldeb6QhZSH2YB Y6cQJSkDaoRHYIqB1Ijk386QM83la2CKx3AljaAovNhxEvPga6NWWPS0po90jc3J9DpEp/ 3t7BmSpmACrQuhdE7mIdGpHJxWCew3cm3/SkgYU7rQSxK9MIVkIDoP6pxMlMtv0LexaZ0b uZotgG6XqyNnJpz/6vwcT8BpNjoNi2FXcur7LYbwBdvFONsi08wYMXH/FGk0A7nngSyHxR jZedsNHiNqKk/4Oj/wd4ZRbdrZjrICwCqC3mesAmR4rXl9+Cw9kK0gWSCkAhwA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1624121246; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Q7lis0HM5bATX+CBceMi5uQ2GKYkJP3dGDCc1k+uYQo=; b=4Q1lwhQpzKeFr85B4caSNlZdfPXeoi5hMeoCkGDnma1Mmxn2/0DKpHDagjMSFDlE7D4KjN SOC7812k0zjSioBg== To: Stephen Boyd , Xin He , keescook@chromium.org Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] debugobjects: add missing empty function debug_object_active_state() In-Reply-To: References: <20210617071027.60278-1-hexin.op@bytedance.com> Date: Sat, 19 Jun 2021 18:47:25 +0200 Message-ID: <87wnqpdco2.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 18 2021 at 22:03, Stephen Boyd wrote: > Quoting Xin He (2021-06-17 00:10:27) >> All other functions are defined for when CONFIG_DEBUG_OBJECTS >> is not set. >> >> Signed-off-by: Xin He >> --- >> include/linux/debugobjects.h | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/include/linux/debugobjects.h b/include/linux/debugobjects.h >> index 8d2dde23e9fb..af0d73d8d29b 100644 >> --- a/include/linux/debugobjects.h >> +++ b/include/linux/debugobjects.h >> @@ -99,6 +99,9 @@ static inline void >> debug_object_free (void *addr, const struct debug_obj_descr *descr) { } >> static inline void >> debug_object_assert_init(void *addr, const struct debug_obj_descr *descr) { } >> +static inline void >> +debug_object_active_state(void *addr, const struct debug_obj_descr *descr, >> + unsigned int expect, unsigned int next) { } > > I suppose it's a landmine that may go off at some point, but this isn't > fixing anything that's broken at the moment, correct? The two users (RCU/i915) have it guarded with RCU/I915 specific config options which depend on CONFIG_DEBUG_OBJECTS. I have no problem with the patch per se, but it want's a proper use case. Thanks, tglx