From patchwork Mon Oct 2 09:03:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 114562 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp451297qgn; Mon, 2 Oct 2017 02:03:38 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBst0gN2KlJ+r50vPI+Q/Ed/X5b3bZ1/FMpMIOzwNP6Qfhx4KLRoizgEeReGh/ntp0fCRBF X-Received: by 10.84.134.35 with SMTP id 32mr13855230plg.20.1506935017935; Mon, 02 Oct 2017 02:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506935017; cv=none; d=google.com; s=arc-20160816; b=scZE8Qciu5E2F6J/qnnlz8XjJ2wQQbxcKWNgQWFtEbL1C9gvZtJEVDWFRiHnSHW+2G VcsJr4jHaZtNFOJVELjENHIin1XX/r+7svw93nBbEsrGgscegGczyouZPIdpvtWBab4s H9D74bsySauFt0AWOBCjbpiLerSu6nnrizk77rBfUZehKXYMfHRmfKJ2adpVlO5ftuUw SkQbIqsuBozN+6A3nxBhHF1Wc7sVUmEuJQ9bfIYrSPl1QtRXek487woAFnn+hKb66jph Yt8ZXj/yZtvokXIVr8A57awBzZBZEJJbYcJlb93VzXyL83VJwYuwDPyZMnsD/4oZULd9 3zbg== 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 :arc-authentication-results; bh=irTXkbjLMWCuZ4MkOEU/ND8cAlCDD80OgmN8wFxlFpY=; b=kEzGVl+oVKBlIGbsmueUyZKhYKFQZYCqzmCfm44L7w3TO7cAUFykeuHs/lvpbI2obg mEt9z4mnS4Z2WVjLVHqMbewyRKbz5ZHKyGQCxgOny1J8LQ4HTxmrsqXfJ2dBI1y6PTRA NjT1mZbJ+nF59vJ2asb6gIFzhGztdywjQflVD26zwqeUtkoSQ4MAJyxiMrgtu8uFjOSm RTWC/Vo3WK6WUEJKbO4h0vWpt3o8ZMd6hhbmhmVn0QlxkK1jac8FIVgH+lfZ4NEtyQtF 9XMK022As8zo/la2BSDxOzxuomR0SbFiag0Qlh4H7r4o9Dq1EhwllBenbucIK1uaecEs i/gg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j184si3299884pfc.41.2017.10.02.02.03.37; Mon, 02 Oct 2017 02:03:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750922AbdJBJDg (ORCPT + 1 other); Mon, 2 Oct 2017 05:03:36 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:34110 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750891AbdJBJDg (ORCPT ); Mon, 2 Oct 2017 05:03:36 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 839041529; Mon, 2 Oct 2017 02:03:35 -0700 (PDT) Received: from sugar.kfn.arm.com (unknown [10.45.48.132]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E07463F53D; Mon, 2 Oct 2017 02:03:33 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] staging: ccree: logging related coding style fixes Date: Mon, 2 Oct 2017 10:03:21 +0100 Message-Id: <1506935008-14240-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The following patch set cleans up some code and builds upon this to replace ccree custom logging macros with the generic device dev_* facilities, handles the resulting fallout and further simplifies logging handling in some OOM error handling code path exposed by checkpatch following the change. Patch set based upon commit 1cd5929ab675 ("staging: greybus: light: remove unnecessary error check") in the staging-next tree. Signed-off-by: Gilad Ben-Yossef Gilad Ben-Yossef (4): staging: ccree: remove sysfs if of deleted code staging: ccree: simplify access to struct device staging: ccree: move to generic device log infra staging: ccree: simplify OOM handling drivers/staging/ccree/ssi_aead.c | 237 +++++++++++-------- drivers/staging/ccree/ssi_buffer_mgr.c | 408 +++++++++++++++----------------- drivers/staging/ccree/ssi_buffer_mgr.h | 5 +- drivers/staging/ccree/ssi_cipher.c | 158 ++++++------- drivers/staging/ccree/ssi_driver.c | 163 ++++++------- drivers/staging/ccree/ssi_driver.h | 14 +- drivers/staging/ccree/ssi_fips.c | 12 +- drivers/staging/ccree/ssi_hash.c | 374 ++++++++++++++--------------- drivers/staging/ccree/ssi_ivgen.c | 18 +- drivers/staging/ccree/ssi_pm.c | 30 +-- drivers/staging/ccree/ssi_request_mgr.c | 107 +++++---- drivers/staging/ccree/ssi_sram_mgr.c | 30 +-- drivers/staging/ccree/ssi_sysfs.c | 269 +-------------------- 13 files changed, 771 insertions(+), 1054 deletions(-) -- 2.7.4