Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5538930pxb; Wed, 26 Jan 2022 14:30:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzb9NNwK0DgEJCK+NAJABfxr0DRg57OQTx57LqHJzTBhHNVzt4EoH/5dXoAKRT/SPUXLZsH X-Received: by 2002:a05:6402:616:: with SMTP id n22mr1105876edv.56.1643236205294; Wed, 26 Jan 2022 14:30:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643236205; cv=none; d=google.com; s=arc-20160816; b=nP/pawIDSUms9les87Fw6+wTVH7wsN1uY00LBU72N9TTAy633Yl4UCaUVXm41T3A8s rnZgKSXinoePQRoCpB3X+rxzWqzB/syYBVJXLGRBn7cNck6fYCxRh0Wgn8Yx/EO+H3bq KsXG8ASueW5F6n7Exvyeocxxz1lSr0rdLVoK9DeT0GHPT/Jh2KeyhcYKmVEIJNJuVXbi u3Y0L00akvWx5BqlpsG2TkZ36soM9QrXaFVZpKolT59HNe8uY6j7YksfhJbCDddUN1+U EFYfyduNPvOD8iAab5zq6ezuoTV+l/rTSruFCQ9/00Ce064kOfmUnLDCOstbDW6TKxW2 sgOw== 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=QHoPLG69qOcnOcG4+SmdqeMupwE5W4oefihpmsVWEe0=; b=M56oWwlRgdR0Fgs3l/BfQagRQ8OvR0X5jSpp0spmmNHaeV/jLKxzNq0fBaNMCZ5b/l SRNCczc3YSf0Kghy3eLmk+GZJ6XMiu5aIu8QrBQRbDNtLQ7F1MT7P2HVL5LzuB5bj3DQ cXpuKQUo8d3A5MNUacwETTj5Yel0kOMIpbt4AlycykYvgt9WglFtws58zia4nyoJa3L+ nzE85aDhovehouorTY8n2yXWSaMapO1wFXlraK/XEZFG08cmPmVLVyLbif7YxwJDKOv/ lWvQMWa0myV9d7Pl91crdjOo+bhFWLUYjO8XjNEs/irKR/7/9SS5aFUn+14e/6x1phwL VZjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=QjOpLqww; 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 gn27si251512ejc.879.2022.01.26.14.29.39; Wed, 26 Jan 2022 14:30:05 -0800 (PST) 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=QjOpLqww; 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 S244284AbiAZSqL (ORCPT + 99 others); Wed, 26 Jan 2022 13:46:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbiAZSqL (ORCPT ); Wed, 26 Jan 2022 13:46:11 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBD05C06161C; Wed, 26 Jan 2022 10:46:10 -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 87EA81EC053F; Wed, 26 Jan 2022 19:46:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1643222765; 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=QHoPLG69qOcnOcG4+SmdqeMupwE5W4oefihpmsVWEe0=; b=QjOpLqwwBSEX6kR47KO5PFM9UoiaXg6rJ4xLP4Rxn/TvxRQA1BH+pNg0aEwMwzfHx5J/YH 8kFhg3p99sJSpxB//vsXL1yOpHWtFv/KXFWRGrokzuijMSBBi6exT/1nVXiudEEVymTgo1 nk66aHb4AmX3hIfGdrpIEZppGIk/yAY= Date: Wed, 26 Jan 2022 19:46:02 +0100 From: Borislav Petkov To: Eliav Farber Cc: mchehab@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, ronenk@amazon.com, talel@amazon.com, hhhawa@amazon.com, jonnyc@amazon.com, hanochu@amazon.com Subject: Re: [PATCH 2/4] EDAC: Remove unnecessary cast to char* in edac_align_ptr() function Message-ID: References: <20220113100622.12783-1-farbere@amazon.com> <20220113100622.12783-3-farbere@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220113100622.12783-3-farbere@amazon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 13, 2022 at 10:06:20AM +0000, Eliav Farber wrote: > Amend commit 7391c6dcab30 ("drivers/edac: mod edac_align_ptr function") > and change all return path to use void* instead of char* according > to the new signature. > > Signed-off-by: Eliav Farber > --- > drivers/edac/edac_mc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c > index 61d72bd96754..8b9b86a7720a 100644 > --- a/drivers/edac/edac_mc.c > +++ b/drivers/edac/edac_mc.c > @@ -263,12 +263,12 @@ void *edac_align_ptr(void **p, unsigned size, int n_elems) > else if (size > sizeof(char)) > align = sizeof(short); > else > - return (char *)ptr; > + return ptr; > > r = (unsigned long)ptr % align; > > if (r == 0) > - return (char *)ptr; > + return ptr; > > *p += align - r; > > -- Applied, thanks. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette