Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp359181rwn; Wed, 14 Sep 2022 22:50:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR5qDkJ1lJ+QhQIJTdWHXE5EQdKr5npMwPlCpcD8T2WuQU9/P+z/jPOgOLHyVmazPtiNv55o X-Received: by 2002:a05:6402:2989:b0:44e:90d0:b9ff with SMTP id eq9-20020a056402298900b0044e90d0b9ffmr32938284edb.110.1663221029631; Wed, 14 Sep 2022 22:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663221029; cv=none; d=google.com; s=arc-20160816; b=P2dD+mtXBxwgAB4QrpiqOd8fULNJbFRL3IAK1hvBUwN94j7EoA4BFzq/r9IW70oU1W qDBZY/5ialF1yPNpILbfmALn7cc1omfUYWQhEM/qU1alAOOyl1QQfrBatB1HJBJGe7Z7 j/uJDmDojW8Wa5yleCzWvSuSSzOzX0hYB9GLRAx9M3ZgCRYZajR1NAyzal4isWWdnMaV T5m5ufEAMsKcGIgejpUwu55aJkU768VCiLXRkRHS+PGVwKWISswQl5IxOCqEitB9/WQx 4ecl3hf9P1v6JwjNx18pua3vu2ne3UHCVpEReUvDzlEO3QcNNdLs8/bKj6GnM4CxvCJ5 qSgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OwyoYS06lb8K5ueyjwQeToIJtS9lHdd3+QNaMnDqvYU=; b=ONbLA+66U4mlrsRLZUGAdtNlq03asPfzeziHBCVlC6UfyOwH2nUuYQkrZedy5osc+Q ynU1AgssHersuqLFQb3ZBNyxQa7WggQ1SjVATHobJoWGCCQ3nCXl5cWEQbqwhKsY/v0D FxSrXxc6AZoH6mPf/rhyf6LAh576cQeUQx+wHaTxhwffyiZBl1BzZzREg9uqlvc6pZi3 AEL4XFk16MUwugag0nLcw07Ql0einlZBP7flcMMUmHyzoudDYb8gCyPnqRM44dgcSyS+ SBGIZvb0wgsXScIKz/GVP7fJPc+rmbtKxntdaLPNpovP+5QwexxisYlBYjPoS7iJyS8a 1w9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=lpmZBMXk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p5-20020a170906140500b0073314be475fsi12304289ejc.763.2022.09.14.22.50.03; Wed, 14 Sep 2022 22:50:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=lpmZBMXk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229617AbiIOFfW (ORCPT + 99 others); Thu, 15 Sep 2022 01:35:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbiIOFfV (ORCPT ); Thu, 15 Sep 2022 01:35:21 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16E9A6FA14; Wed, 14 Sep 2022 22:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1663220089; bh=4nieZw5geSNA7yue4365PqN3YDOxsAGZvwH9Xy/fnQw=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=lpmZBMXkb8xZxg++ZcaTNw+CSRUMScGrdWE8sOAunf+aFnybcaUcGjbBcleHYmci7 mSk03/pNWxNHzkjH3w/gm2bZT+XWW7b3VwSwvNm6lWdsR9PAlvEGY0y8MlD38jMxjr qjppofH7CVf83vqAGewFj7kVyBhCvGLsdEQ42Gz8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.174.140]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N0G1d-1pUdrS1RYt-00xNJf; Thu, 15 Sep 2022 07:34:49 +0200 Message-ID: <76919d92-0a85-8c83-c434-ba8998d19a07@gmx.de> Date: Thu, 15 Sep 2022 07:34:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH] parisc: remove obsolete manual allocation aligning Content-Language: en-US To: Rolf Eike Beer , linux-parisc@vger.kernel.org Cc: linux-kernel@vger.kernel.org References: <2442384.MTfJ8ztCV8@eto.sf-tec.de> From: Helge Deller In-Reply-To: <2442384.MTfJ8ztCV8@eto.sf-tec.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:tUEK0Er3yd2fxKJW47f5w/Osc1fKAlq9XXT7w8+50NDZXFdb/0O lCzSmXKoffQQktklPO77RrCRSMxgIPbkD5Eiddg+9elMH1ftuDRAWaiDT9HlqdLjwvSs3Oh nZZj6BgF2ACJaSC215OOKw7q0D4HLAb/2wHYm3pj1zgeuTFMVe5r2wZGQyjuEAFE2I6D3dW 6as0w2AW8SlMCM4w8VvCw== X-UI-Out-Filterresults: notjunk:1;V03:K0:39nUoAt6lQ8=:CamLCCfW77OJskz4k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a5Ihlqmi0KKTWj7+YgF45h+Gs vv50Xnolmau6bvoOJtvpAroA6Llk0/75ypuoSjZrafdqT7K3245YXmTYywkbgul5Ze2/y65+S fEvac= X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/14/22 16:23, Rolf Eike Beer wrote: > kmalloc() returns memory with __assume_kmalloc_alignment, which is > __alignof__(unsigned long long) for parisc. > > Signed-off-by: Rolf Eike Beer applied. Thanks! Helge > --- > drivers/parisc/iosapic.c | 11 +---------- > 1 file changed, 1 insertion(+), 10 deletions(-) > > I must confirm it's entirely untested. > > diff --git a/drivers/parisc/iosapic.c b/drivers/parisc/iosapic.c > index 3a8c98615634..bdef7a8d6ab8 100644 > --- a/drivers/parisc/iosapic.c > +++ b/drivers/parisc/iosapic.c > @@ -221,16 +221,7 @@ static size_t irt_num_entry; > > static struct irt_entry *iosapic_alloc_irt(int num_entries) > { > - unsigned long a; > - > - /* The IRT needs to be 8-byte aligned for the PDC call. > - * Normally kmalloc would guarantee larger alignment, but > - * if CONFIG_DEBUG_SLAB is enabled, then we can get only > - * 4-byte alignment on 32-bit kernels > - */ > - a =3D (unsigned long)kmalloc(sizeof(struct irt_entry) * num_entries + = 8, GFP_KERNEL); > - a =3D (a + 7UL) & ~7UL; > - return (struct irt_entry *)a; > + return kcalloc(num_entries, sizeof(struct irt_entry), GFP_KERNEL); > } > > /**