From mboxrd@z Thu Jan 1 00:00:00 1970 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 EA608C433EF for ; Sun, 23 Jan 2022 19:19:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239566AbiAWTTj (ORCPT ); Sun, 23 Jan 2022 14:19:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233294AbiAWTTh (ORCPT ); Sun, 23 Jan 2022 14:19:37 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 666A3C06173B; Sun, 23 Jan 2022 11:19:37 -0800 (PST) Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 8EC531EC0104; Sun, 23 Jan 2022 20:19:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1642965570; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=2+PHYFr09/Oh98ANEvj4yzndpd/gXrp2phgkiFnwhAI=; b=oi7xsbvCjsTm3P4q3KKiqS4XGVN4MlweB+FjapipuEY7ZEkWEBYokdu92Pq5KF68G8dKvY u9TV5M+ATfk98gaS27QfKEdyLlMfTDOI/A+xVDTwCR8Pa93/n5MWmE7ugjxxCXoOFiIONT R364vpbuIODRY3lb94LV2XLdbBExR+s= Date: Sun, 23 Jan 2022 20:19:25 +0100 From: Borislav Petkov To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Tony Luck , James Morse , Robert Richter , linux-edac@vger.kernel.org Subject: Re: [PATCH v2 1/2] EDAC: use proper list of struct attribute for attributes Message-ID: References: <20220104112401.1067148-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220104112401.1067148-1-gregkh@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org On Tue, Jan 04, 2022 at 12:24:00PM +0100, Greg Kroah-Hartman wrote: > The edac sysfs code is doing some crazy casting of the list of > attributes that is not necessary at all. Instead, properly point to the > correct attribute structure in the lists, which removes the need to cast > anything and the code is now properly typesafe (as much as sysfs > attribute logic is typesafe...) > > Cc: Borislav Petkov > Cc: Mauro Carvalho Chehab > Cc: Tony Luck > Cc: James Morse > Cc: Robert Richter > Cc: linux-edac@vger.kernel.org > Signed-off-by: Greg Kroah-Hartman > --- > v2: do the same thing in edac_pci_sysfs.c > > drivers/edac/edac_device_sysfs.c | 28 ++++++++++++++-------------- > drivers/edac/edac_pci_sysfs.c | 24 ++++++++++++------------ > 2 files changed, 26 insertions(+), 26 deletions(-) Both applied, thanks. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette