Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1487769ybn; Wed, 25 Sep 2019 19:38:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLEHo+Sbmh5V/9dk3gHXbGf1vxKs9BQQRmLKfzlOiu12qgLMBQs6diWehgANcZ39w/vU2e X-Received: by 2002:a50:9fe5:: with SMTP id c92mr1227738edf.280.1569465505526; Wed, 25 Sep 2019 19:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569465505; cv=none; d=google.com; s=arc-20160816; b=Qaj71dwLNNzfa6dJ82mzbSt3OcmLKW+rmlxYn7HAE+Jsm2JyoN6oDPKsQAg4GBKJxJ xx4KSPq40Gsd2XoEN0i/gUvR7ufFXne0Ys9TpozmS+1i16mqDnamY98AcPAS7csUbPrC l9+N+tJ2LueDOcuLJ/H059IHXpbmjXnPAwsPGOVeUkQSYUAJ3pX4kQGKYtaFhxYfSXcU 3/d96CTc8WxD4R+aOtvKHTAhFUkl3lZkqQyFoNfE9W+NeM9Tp4yMFX4vr8cKhfN5G9tq iLuadrzwBF5p2v9sp7+E+eifqB9WIqAI6WL6ePATqK2IfxlyZK4zLiwVsbdvC+2rZ+kq F3fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=yVPjcoNicqfT+qIZ1pcZCZib/k3G0SANGz5ufDaKTSs=; b=NAFWME5HULEBRGLAt7eDmrMMSiR1033MdJkUvT7HFC9YubIpuZrTQr/TmWG70VUX9q MJWoY5fr0FTB3AbMoepy+AH5bw7H0OUUCTMDIOKHQGp9Wk6oWg+e0KpgA9LJ5MpBaG9b IwLvfKBtiTbENYtV1JNKUUEcgHwpa/eTwATcWSHdX7v8Vs74j8CPx5hn8AxCF/6KrKsE u1F5RBfR2S5r6H7R97MaU/wZzmZqYkb8ZgCjS6jQFjgX0bq3Hqj6fzirRafdVRf+J+7x 4gz04V/2NTe6ce7D6E6mwMDZhWMOe5HTaHjWyi/iKuBL/Dr/n1rje1ut2w/xgiLNlbST FQeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=kcF0FIbA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w20si562266edc.202.2019.09.25.19.38.02; Wed, 25 Sep 2019 19:38:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=kcF0FIbA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726621AbfIWTBb (ORCPT + 99 others); Mon, 23 Sep 2019 15:01:31 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:43357 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbfIWTBb (ORCPT ); Mon, 23 Sep 2019 15:01:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1569265290; x=1600801290; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=yVPjcoNicqfT+qIZ1pcZCZib/k3G0SANGz5ufDaKTSs=; b=kcF0FIbAjUv7UmqXIu0+tcaTbhga/AJT25pdg1CMUCmEiq7sjNWsJDxD ilNwRGbtL9C8EPPzQtHdyk5xz8wPpd1Nu5++/EsjCAtMrXVY4o3jSiFjV cxBTCMiMk5wpOjwfV06c5malcy/4/fTFgEBpduFrFziQAvqW/U7oelnzu 8=; X-IronPort-AV: E=Sophos;i="5.64,541,1559520000"; d="scan'208";a="752652630" Received: from iad6-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1a-67b371d8.us-east-1.amazon.com) ([10.124.125.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 23 Sep 2019 19:01:28 +0000 Received: from EX13MTAUWA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1a-67b371d8.us-east-1.amazon.com (Postfix) with ESMTPS id 3511BA2BCD; Mon, 23 Sep 2019 19:01:25 +0000 (UTC) Received: from EX13D21UWA001.ant.amazon.com (10.43.160.154) by EX13MTAUWA001.ant.amazon.com (10.43.160.118) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 23 Sep 2019 19:01:25 +0000 Received: from EX13MTAUWC001.ant.amazon.com (10.43.162.135) by EX13D21UWA001.ant.amazon.com (10.43.160.154) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 23 Sep 2019 19:01:25 +0000 Received: from [10.85.96.103] (10.85.96.103) by mail-relay.amazon.com (10.43.162.232) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 23 Sep 2019 19:01:21 +0000 Subject: Re: [PATCH v3 2/2] edac: move edac_device_handle_*() API functions to header To: Robert Richter CC: "bp@alien8.de" , "mchehab@kernel.org" , "james.morse@arm.com" , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "dwmw@amazon.co.uk" , "benh@amazon.com" , "ronenk@amazon.com" , "talel@amazon.com" , "jonnyc@amazon.com" , "hanochu@amazon.com" References: <20190919171713.8060-1-hhhawa@amazon.com> <20190919171713.8060-3-hhhawa@amazon.com> <20190920064937.owwv5n663kwmnbb7@rric.localdomain> From: "Hawa, Hanna" Message-ID: Date: Mon, 23 Sep 2019 22:01:19 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20190920064937.owwv5n663kwmnbb7@rric.localdomain> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/20/2019 9:49 AM, Robert Richter wrote: > On 19.09.19 18:17:13, Hanna Hawa wrote: >> Move edac_device_handle_*() functions from source file to header file as >> inline funtcion that use the new API with single error. >> >> Signed-off-by: Hanna Hawa > > With the changes below it looks good to me: > > Acked-by: Robert Richter > > Thanks, > > -Robert > >> diff --git a/drivers/edac/edac_device.h b/drivers/edac/edac_device.h >> index 30dc5f5979c8..796ea134a691 100644 >> --- a/drivers/edac/edac_device.h >> +++ b/drivers/edac/edac_device.h >> @@ -285,29 +285,6 @@ extern int edac_device_add_device(struct edac_device_ctl_info *edac_dev); >> */ >> extern struct edac_device_ctl_info *edac_device_del_device(struct device *dev); >> >> -/** >> - * edac_device_handle_ue(): >> - * perform a common output and handling of an 'edac_dev' UE event >> - * >> - * @edac_dev: pointer to struct &edac_device_ctl_info >> - * @inst_nr: number of the instance where the UE error happened >> - * @block_nr: number of the block where the UE error happened >> - * @msg: message to be printed >> - */ >> -extern void edac_device_handle_ue(struct edac_device_ctl_info *edac_dev, >> - int inst_nr, int block_nr, const char *msg); >> -/** >> - * edac_device_handle_ce(): >> - * perform a common output and handling of an 'edac_dev' CE event >> - * >> - * @edac_dev: pointer to struct &edac_device_ctl_info >> - * @inst_nr: number of the instance where the CE error happened >> - * @block_nr: number of the block where the CE error happened >> - * @msg: message to be printed >> - */ >> -extern void edac_device_handle_ce(struct edac_device_ctl_info *edac_dev, >> - int inst_nr, int block_nr, const char *msg); >> - > > Just put in the inline replacement here. I'll re-arrange the functions in patches 1/2 and put the *edac_device_handle_* functions here instead of end of file. > >> /** >> * edac_device_alloc_index: Allocate a unique device index number >> * >> @@ -357,4 +334,18 @@ static inline void edac_device_handle_ue_count(struct edac_device_ctl_info *edac >> { >> __edac_device_handle_ue(edac_dev, count, inst_nr, block_nr, msg); >> } >> + >> +static inline void edac_device_handle_ce(struct edac_device_ctl_info *edac_dev, >> + int inst_nr, int block_nr, > > No need for this linebreak. It'll be more than 80 characters. > >> + const char *msg) >> +{ >> + __edac_device_handle_ce(edac_dev, 1, inst_nr, block_nr, msg); >> +} >> + >> +static inline void edac_device_handle_ue(struct edac_device_ctl_info *edac_dev, >> + int inst_nr, int block_nr, > > Same here. > >> + const char *msg) >> +{ >> + __edac_device_handle_ue(edac_dev, 1, inst_nr, block_nr, msg); >> +} >> #endif >> -- >> 2.17.1 >>