Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2190883pxa; Mon, 17 Aug 2020 03:31:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDj2YeHZ5H6YIhRdk4U6/sPH2eyK4Fv/dLLs7TAVYZh2SpXpWHYm+ZeDqKVNn6WwPH8p3O X-Received: by 2002:a17:906:8286:: with SMTP id h6mr14055955ejx.341.1597660302520; Mon, 17 Aug 2020 03:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597660302; cv=none; d=google.com; s=arc-20160816; b=CSQjof+yqAALrr+DIwFNrL3Oqgyq+DdHeepxKg1KNre/sTsT1FnXnk0HAu3H4AyMio aEnWLT7OYtOFiV7WDZ076N5L+4R/2hSIPntth4bmS7PHtyQdndDbQ+mWmIab7YyYOYBH aOHzGRrUCX33oaX958fKSQztyIWpjgQK8vwenEhpEAyofc+AyGBLoYL4/yuLu1F84iwf gdLwOetL7C1csCV4OP4FNtwP3SMaReabWlFrOkDRIHYQY5+O09m50GiK4ZaqjRixFHyi o1m9B4v7Qu01uGec2QHxe45miQQHDDdkbRfN/8WbEV86Urj54W4Emu8FnEsi5rIRbX9X 6xTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0uSq9qk/RW8bveLRIOi0gn3aCCuOfz0gR3ySVhVswAI=; b=OJNGWb8e6FMeZvO0unj96yM505vap+HyiaResbMnToz6yOcXyhHsiF5RYpZX6NSGZG ln7uPUp1YGdGXtz8X8rPJSs190PS+/ZwB/JDuoGT1YgxNKiliSq1XQeXVvgWwSwUtDZJ dLp8CghcXtGfOwBFaE5pPQuSmOo6yi+jdn+uQHLa+fA0mZIMDSBEdu6a/WOwmRFpsnWM os61Zr8+0W43B9O71h8mouSpckux884bGGjEH+oUXRE0IoPmYE7pgltPE3+KNXBiTixC hwFUQd8TSzDK2WCjd9zBptbZOIY6nflcQYhkSSvZck9CEe4E3oxgLxzU7h1wEB8M9AWk SlMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=pGAVTOhB; 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=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 38si11340111edq.297.2020.08.17.03.31.19; Mon, 17 Aug 2020 03:31:42 -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=@alien8.de header.s=dkim header.b=pGAVTOhB; 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=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726817AbgHQKaa (ORCPT + 99 others); Mon, 17 Aug 2020 06:30:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726596AbgHQKa3 (ORCPT ); Mon, 17 Aug 2020 06:30:29 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1888C061389; Mon, 17 Aug 2020 03:30:29 -0700 (PDT) Received: from zn.tnic (p200300ec2f26be0071e1cf3fa1f5ba15.dip0.t-ipconnect.de [IPv6:2003:ec:2f26:be00:71e1:cf3f:a1f5:ba15]) (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 53FBC1EC02C3; Mon, 17 Aug 2020 12:30:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1597660225; 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=0uSq9qk/RW8bveLRIOi0gn3aCCuOfz0gR3ySVhVswAI=; b=pGAVTOhBS76mB5TZG2zXGksNaiYoOycCZ+tjVARYWosgItgDF9WcPI8PQSEnQTOxhXnwL9 H5lr8ShVXvmRyDz6urOoJcGC4BSN6hdvaggbOxLdTDoZ64Ph5dauUntDo+IRixwDOMd0C+ A9loz87jTm8P7dy54ny19aYqi0SWlnU= Date: Mon, 17 Aug 2020 12:31:21 +0200 From: Borislav Petkov To: Qinglang Miao Cc: Greg Kroah-Hartman , Tony Luck , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] RAS/CEC: Convert to DEFINE_SHOW_ATTRIBUTE Message-ID: <20200817103121.GF549@zn.tnic> References: <20200716085834.11484-1-miaoqinglang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200716085834.11484-1-miaoqinglang@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 16, 2020 at 04:58:34PM +0800, Qinglang Miao wrote: > From: Yongqiang Liu > > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Yongqiang Liu > --- > drivers/ras/cec.c | 17 +++-------------- > 1 file changed, 3 insertions(+), 14 deletions(-) > > diff --git a/drivers/ras/cec.c b/drivers/ras/cec.c > index a992bb426..ed47b59e4 100644 > --- a/drivers/ras/cec.c > +++ b/drivers/ras/cec.c > @@ -435,7 +435,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(action_threshold_ops, u64_get, action_threshold_set, "% > > static const char * const bins[] = { "00", "01", "10", "11" }; > > -static int array_dump(struct seq_file *m, void *v) > +static int array_show(struct seq_file *m, void *v) > { > struct ce_array *ca = &ce_arr; > int i; > @@ -467,18 +467,7 @@ static int array_dump(struct seq_file *m, void *v) > return 0; > } > > -static int array_open(struct inode *inode, struct file *filp) > -{ > - return single_open(filp, array_dump, NULL); > -} > - > -static const struct file_operations array_ops = { > - .owner = THIS_MODULE, > - .open = array_open, > - .read_iter = seq_read_iter, $ test-apply.sh /tmp/01-ras-cec-convert_to_define_show_attribute.patch checking file drivers/ras/cec.c Hunk #2 FAILED at 467. 1 out of 3 hunks FAILED Apply? (y/n) n Where did this .read_iter come from? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette