From patchwork Tue Oct 3 10:42:13 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: 114687 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp1720930qgn; Tue, 3 Oct 2017 03:42:43 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDHpWknh0eJ4X1LXsSXfMtP5ZLCw25z8KQYtliNr3HwPp5d6uZgDDpLThMBd0YeT46Wj5UZ X-Received: by 10.99.112.89 with SMTP id a25mr3460636pgn.277.1507027363099; Tue, 03 Oct 2017 03:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507027363; cv=none; d=google.com; s=arc-20160816; b=YYjXd3Dz9Ww5XvfUJ0NslqO46cHAyD11KVVDGQVpmVqxeTysmHU35j2B7gFk+twDrY W6IuvRy3dkM4Ykgsmy7VCax6RgDQFbakNUGwZj5eZ7fTDz2vBbPa+UJ7SwO0IqS4dM6b hEIfl11hQt9WJoXRYfaxaPTYYoWKe98w2jXwDhKrRkHoaJtHIKwr0/A5znKmO28RuBic bER0NRiTKnX6WXv1C5MKst/6K3WYNzQLHJ+W91RbL17HKfm3YPKmW51m4p+AF7QAllbk pUmKqJN45GictKaJPUIvb9Rhfcx9t5cLl29+B6LqCYhxZ4VUkx5RqMjD2OLERB1QaYRz 8GKA== 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=hekezs1ztLGxDyznMLIOFK5k6Vz2qlhs/OViQSD4gyg=; b=sZnv5tj+UQrQcAA2t0cBFJ78sTHngkhTtYp+H3Y3JULvE1u0xOkYCVLkutOwUehptE izJ0nVMx1mlms8kD+P6X73h8FumxM5vzfVhoy37rAaSn/ybUwS6piltTSjbYLBm6hjnN 4nI40DJ/8cvk+KU22IZGY+wtuXNGXtmcULq57dC/NT1hZh7LgXTS245KuCA5TqTkIXAo Z2vKGvdRXmYDj/aQ+nhK6lUOT+NMc9rxSCDqhwkpGJq//7uax3YxHwMoEDbItkeDEIAQ CHCTyT/ALbRtyxncMNjqjSByEtyorephaRe9PvlTnP3J7thExbpM3v4+jeqSUll8cJaw d+mA== 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 s73si4787606pfe.177.2017.10.03.03.42.42; Tue, 03 Oct 2017 03:42:43 -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 S1751442AbdJCKml (ORCPT + 1 other); Tue, 3 Oct 2017 06:42:41 -0400 Received: from foss.arm.com ([217.140.101.70]:46686 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751156AbdJCKml (ORCPT ); Tue, 3 Oct 2017 06:42:41 -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 AC7A680D; Tue, 3 Oct 2017 03:42:40 -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 B2A093F578; Tue, 3 Oct 2017 03:42:28 -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 v2 0/4] staging: ccree: logging related coding style fixes Date: Tue, 3 Oct 2017 11:42:13 +0100 Message-Id: <1507027339-23824-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 handling of memory and allocation 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 Changes from v1: - Turn DEV macro into drvdats_to_dev inline function as suggested by Joe Perches. - Fix a compile warning about an unused variable seen between after the application of the 2nd patch in the series before the 3rd. - Remove even more uneeded code in the memory allocation functions 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 | 19 +- 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 | 33 +-- drivers/staging/ccree/ssi_sysfs.c | 269 +-------------------- 13 files changed, 773 insertions(+), 1060 deletions(-) -- 2.7.4