Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp960712pxb; Fri, 13 Aug 2021 10:06:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPljRoQWyTNHyYMFZA9BqA/Sa7ApATAD+bdmxBcSLNEVsldZksFzRLIedgDZ3zm2YqZ3IJ X-Received: by 2002:a05:6e02:1aa2:: with SMTP id l2mr2355722ilv.224.1628874370379; Fri, 13 Aug 2021 10:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628874370; cv=none; d=google.com; s=arc-20160816; b=BLCCXsEO7ITEQSuWsi33+5kXUunNqGHHgjCXY0vXzHwVLqMmv1vfvcmvMprowvECQt we6DlVEehYABoV1zEbznPWCPJDdq1Kt2TUzkdtve4e19VBX+F1bCubiJv8NVaOPLpYBt NeF95ApYbXfvue7PeNWUo2Uo9LSvEBv5Zp9WxtN0Cr030yMygf1Bp2FKQ7Cu3DdQFwa5 YFh9DaBGhOn560vVz3TciYMIKah9Kpox1WqQAT2L4v23euptMDFC0HvyVJe1qmPLFxJP e5p/W1kAJ/gTNlcE74BUgrT2rJuhrxoDMw4Vh3hEUnhi292O9l2nozGbB62U+NwiOTAO ADkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9Jq9OYg9EXI1aRB5/mW+60AZEjUGr9kH6BUneFaePHw=; b=YcvCYRqMxs54RRCj9mWlubimPZChUEW75K+OFmOcKewBbrxhvYYREV7Lk6PwmI0Ps8 F4rD3avtBBwxyjYdr59Tbeu3VW4IpiLcv1/0o8fVRBF3vF42QIv6z7vpjVDG2KkU8aYt 5vAKxs91yfxgjSTGGfj16cGeySdJ8ECIYGOc7MLC8G3L9wxh69oIM2h1337q0xF8uay3 XLxhXT7Yk696Tj9+WKTHPZa7cVFLARXpcJ1dgkBut5Q3P63a5zamKFXDkojIJjIzYgNa XSOzWSObvdzvASa9HVc5U8+VIJvPvg84fjNruqJl+FNqckUFHX0w2O56sYGU/r178yTj EKUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=srU2gOhl; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si2166520ilt.132.2021.08.13.10.05.59; Fri, 13 Aug 2021 10:06:10 -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=@infradead.org header.s=casper.20170209 header.b=srU2gOhl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232859AbhHMQOM (ORCPT + 99 others); Fri, 13 Aug 2021 12:14:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232602AbhHMQOJ (ORCPT ); Fri, 13 Aug 2021 12:14:09 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7C64C061756 for ; Fri, 13 Aug 2021 09:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=9Jq9OYg9EXI1aRB5/mW+60AZEjUGr9kH6BUneFaePHw=; b=srU2gOhlF1tA35b57YG0YNmQxP Bu7cAtaISOcIQ5NX4BIk/TfOlOHPn82r4hLbjJIY3Kk+5STCK2yycxhkCFjMHMTuPyOtY5mPtiWNu 8PHYiam1b2H2D5UTeByA4eT4hYZqxpnTD0gI4LS3RPWD4zhiBBYdhekex0P6p0SwZZnA1Mk3vivuw xZsJSC70p0qDfbsiYBbd79goLwWxx4ahK+itkfJyAiFkIg/M1Yzxt0y5EVeoTaCw6l5+FpwtajKn/ kqW98BeM4RU3mYmkl5oFkchdxpk8NQpZxkj/oV2ihrSsq0bv5lQRgq7SbOM5b2CPcMbVs6WEqLE2l JJZoY3wQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mEZjj-00FqgB-G6; Fri, 13 Aug 2021 16:09:06 +0000 Date: Fri, 13 Aug 2021 17:08:47 +0100 From: Matthew Wilcox To: Andy Shevchenko Cc: Jim Cromie , gregkh@linuxfoundation.org, seanpaul@chromium.org, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , "Pan, Xinhui" , Harry Wentland , Leo Li , Zhenyu Wang , Zhi Wang , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Jason Baron , Hawking Zhang , Tao Zhou , Huang Rui , Kevin Wang , Chengming Gui , Likun Gao , John Clements , Ashley Thomas , Qingqing Zhuo , Aurabindo Pillai , Wyatt Wood , Johan Hovold , Jessica Yu , Joe Perches , Miguel Ojeda , Nick Desaulniers , Andrew Morton , Masahiro Yamada , Peter Zijlstra , "Paul E. McKenney" , Tetsuo Handa , Thomas Gleixner , Vitor Massaru Iha , Sedat Dilek , Changbin Du , Marco Elver , Jarkko Sakkinen , Alexander Potapenko , Zhen Lei , Albert van der Linde , Johannes Berg , Arvind Sankar , Patricia Alfonso , Arnd Bergmann , Palmer Dabbelt , Jiri Olsa , Andrey Konovalov , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Subject: Re: [PATCH v5 3/9] dyndbg: add DEFINE_DYNAMIC_DEBUG_CATEGORIES and callbacks Message-ID: References: <20210813151734.1236324-1-jim.cromie@gmail.com> <20210813151734.1236324-4-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 13, 2021 at 06:51:05PM +0300, Andy Shevchenko wrote: > On Fri, Aug 13, 2021 at 09:17:11AM -0600, Jim Cromie wrote: > > +int param_set_dyndbg(const char *instr, const struct kernel_param *kp) > > +{ > > + unsigned long inbits; > > + int rc, i, chgct = 0, totct = 0; > > + char query[OUR_QUERY_SIZE]; > > + struct dyndbg_bitdesc *bitmap = (struct dyndbg_bitdesc *) kp->data; > > So you need space after ')' ? More importantly, if ->data is of type 'void *', it is bad style to cast the pointer at all. I can't tell what type 'data' has; if it is added to kernel_param as part of this series, I wasn't cc'd on the patch that did that.