crypto/nx: Remove 'pid' in vas_tx_win_attr struct
authorHaren Myneni <haren@linux.ibm.com>
Fri, 17 Apr 2020 09:11:14 +0000 (02:11 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Apr 2020 06:53:14 +0000 (16:53 +1000)
When window is opened, pid reference is taken for user space
windows. Not needed for kernel windows. So remove 'pid' in
vas_tx_win_attr struct.

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1587114674.2275.1132.camel@hbabu-laptop
arch/powerpc/include/asm/vas.h
drivers/crypto/nx/nx-common-powernv.c

index 6e427bc29b3a138d8101b02720aca0b9298bccf5..e33f80b0ea81952525a68d5cc8587517210730b3 100644 (file)
@@ -86,7 +86,6 @@ struct vas_tx_win_attr {
        int wcreds_max;
        int lpid;
        int pidr;               /* hardware PID (from SPRN_PID) */
-       int pid;                /* linux process id */
        int pswid;
        int rsvd_txbuf_count;
        int tc_mode;
index 651d2860de0d3e2263e7caac6bc735baeb862f34..13c65deda8e979f75ce4231240bf5549996000f1 100644 (file)
@@ -692,7 +692,6 @@ static struct vas_window *nx_alloc_txwin(struct nx_coproc *coproc)
         */
        vas_init_tx_win_attr(&txattr, coproc->ct);
        txattr.lpid = 0;        /* lpid is 0 for kernel requests */
-       txattr.pid = 0;         /* pid is 0 for kernel requests */
 
        /*
         * Open a VAS send window which is used to send request to NX.