Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1687791ybd; Sun, 23 Jun 2019 13:49:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYCPI7hY6Ix/zB7Xdjk4kLa79drCj7nvGL8GcMII2KVgllWOcs+kta6SLDsd5oc0yXDp8n X-Received: by 2002:a17:90a:71cb:: with SMTP id m11mr13064574pjs.40.1561322984529; Sun, 23 Jun 2019 13:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561322984; cv=none; d=google.com; s=arc-20160816; b=DSNzYnJfFBYVeJ0a4kVS/3XxlV2JUBTFBvd2e7aax13YP+SOwfjwK63B+wYknZ2J6H 9lQutiRNB5YNORWKGugOjMleYyXY4Iu/xRyoOOVZJKwA0qGd/VyHdaripa1zl0/Jlfu2 EDv5bUGlTwhxdRgbtI5Kes630b7R2GIhaFjHMtYbfVytr1//9arPxUZn5tljQnyaMFZB OmvlsPuGgmgaYh8IDTI9J/rVDeQ2+vkY49J6SrCZpx8xN/a/ucgzXuhNTJrur+uXORTF L4d12leY9D/3IDq8GKzD0mXnvWCxzNwUKlKR+9/jFPlsR9HbMNdaOiEcAJPQ6mCBYse8 9aSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=24hOpItNhK/ymwYcRBGGMKPMe+FsBE7AcNfpDjTqga0=; b=Ebuz2ZLmE5SRZ/jalZ3bGgb9tZf/CY9DX5EIKhdXQy8UNJvCS7VVxfAWFvsyEqx2Rw NoKJ1jFjMbYGJXNa+cRINFFmFUtt9ry9bcv/DMtx63Ivn9H9wSqOlgUFNO8CIOncXrux fuIoMGM6LvcGPJbhZGXY3XIDuzt+P/6vg5+rniLlh1ug5Bv49+YpmkcBxAUuTWmEfNQu 5bntwixrTeLOatCy0F9KjstnTDFyoEhD1WjI1kq0f+MniTy4IubK0ejSca4BsM5IUB37 rMS/JK78MYTCwCWup7R1QJUOIm4YO9qXhae00Ai14+jxoLVEobS3RlDW2aXAZZAcz1hC 9pIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PJ93p6US; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5si8369670pgh.430.2019.06.23.13.49.12; Sun, 23 Jun 2019 13:49:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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=@gmail.com header.s=20161025 header.b=PJ93p6US; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726311AbfFWUtK (ORCPT + 99 others); Sun, 23 Jun 2019 16:49:10 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:36451 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726299AbfFWUtK (ORCPT ); Sun, 23 Jun 2019 16:49:10 -0400 Received: by mail-lf1-f68.google.com with SMTP id q26so8523788lfc.3; Sun, 23 Jun 2019 13:49:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=24hOpItNhK/ymwYcRBGGMKPMe+FsBE7AcNfpDjTqga0=; b=PJ93p6USx5MCze63r9MLl5BKcVGBN4PwzPWbM3Yxe5ao2DMQwZRk6D+4/sveG+K1HM EaPFm1GjHi+Mc/8gQuUSPnqLhSw1A8/beFI18mTQX9MV5/fHS6I8SLYHUW0mmxpe6ESa NSUUGDO8FdTOtWFL/n10lbzizBLKw8Rn9ky7RREfdvZFFAVgvqGZEPy4PXadVnGJsn3A YL/MIpAa3xWB4kRrHaP8X1ewT5V8M9OhPK6eenN4qpKawY+QIw6BRFI9Q1HEPyl6CkBR ZxX99L/WWVutq5WrxnrRSn+6p6y1o+O/tVW3r7VSRYNj7ooNOrwJGJnTYV1/8L+4wHH1 AOlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=24hOpItNhK/ymwYcRBGGMKPMe+FsBE7AcNfpDjTqga0=; b=EoFO6oBYV9bRvkKWVqMqcH1D4QQ3i9ajxC/FJSsnDcFKLTF4ILQv7XZ/75Frrh8YW8 rjeRU25BvCoJ0P9FxKBcDaxRKQ+5FQRy+1bQDdIZB7IWsKRcAeL5AQi/nBSgm/JIAEPO xGGC7AyhtqvlCDVlowEPJu5/j2mZiqh5kEcPZinSEKUIi7ItDYwWYM3fUyaSqbfNeieQ FrSthOWI0945qULTpjAoXfREV7iUBD1fhR4fvlaCXcwYfFaaMdO0JdIxbwlQamUaOqLt vzATmFldPolfo+q+epmrBBONAJH0jNocrxbycAvOG4OLSc9EjIqHS1wZA9E3oQfnF84J 469g== X-Gm-Message-State: APjAAAUHtp+7KPkOHLQ/JMK9w6x0PExVJAaBqbjW0LYcyi5XOaQW23OS /eELfZ24yLeMM8/CF4BSofhWRkGq+aJxMQ== X-Received: by 2002:ac2:4891:: with SMTP id x17mr23934242lfc.60.1561322948389; Sun, 23 Jun 2019 13:49:08 -0700 (PDT) Received: from localhost.localdomain ([91.90.160.140]) by smtp.gmail.com with ESMTPSA id u11sm435094ljd.90.2019.06.23.13.49.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Jun 2019 13:49:07 -0700 (PDT) From: Vasyl Gomonovych To: gomonovych@gmail.com Cc: George Cherian , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: cavium remove casting dma_alloc Date: Sun, 23 Jun 2019 22:48:49 +0200 Message-Id: <20190623204849.22089-1-gomonovych@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Vasyl Generated by: alloc_cast.cocci Signed-off-by: Vasyl --- drivers/crypto/cavium/cpt/cptvf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/cavium/cpt/cptvf_main.c b/drivers/crypto/cavium/cpt/cptvf_main.c index 0f72e9abdefe..e9b5c4c70317 100644 --- a/drivers/crypto/cavium/cpt/cptvf_main.c +++ b/drivers/crypto/cavium/cpt/cptvf_main.c @@ -233,7 +233,7 @@ static int alloc_command_queues(struct cpt_vf *cptvf, c_size = (rem_q_size > qcsize_bytes) ? qcsize_bytes : rem_q_size; - curr->head = (u8 *)dma_alloc_coherent(&pdev->dev, + curr->head = dma_alloc_coherent(&pdev->dev, c_size + CPT_NEXT_CHUNK_PTR_SIZE, &curr->dma_addr, GFP_KERNEL); -- 2.17.1